2017-08-24 67 views
0

增量大小表格內

<table class="table table-hover table-striped" border="5"> 
 
       <tbody> 
 
        <tr border="5"> 
 
         <td border="5">Local IP Address</td> 
 
         <td border="5"> 
 
          <input type="text" class="form-control" aria-describedby="basic-addon1"> 
 
         </td> 
 

 
        </tr> 
 
        <tr border="5"> 
 
         <td border="5">Local Netmask</td> 
 
         <td border="5"> 
 
          <input type="text" class="form-control" aria-describedby="basic-addon1"> 
 
         </td> 
 

 
        </tr> 
 
        <tr> 
 
         <td>Default Gateway</td> 
 
         <td> 
 
          <input type="text" class="form-control" aria-describedby="basic-addon1"> 
 
         </td> 
 

 
        </tr> 
 

 
       </tbody> 
 
      </table>

你好我嘗試遞增表內行,但我只是讓外線遞增的大小...

即時通訊使用

  <table class="table table-hover table-striped" border="5"> 
       <tbody> 
        <tr> 
         <td>Local IP Address</td> 
         <td> 
          <input type="text" class="form-control" [(ngModel)] ="LocalIpAddress[1]" aria-describedby="basic-addon1"> 
         </td> 

        </tr> 
        <tr> 
         <td>Local Netmask</td> 
         <td> 
          <input type="text" class="form-control" [(ngModel)] ="LocalNetmask[1]" aria-describedby="basic-addon1"> 
         </td> 

        </tr> 
        <tr> 
         <td>Default Gateway</td> 
         <td> 
          <input type="text" class="form-control" [(ngModel)] ="DefaultGateway[1]" aria-describedby="basic-addon1"> 
         </td> 

        </tr> 

       </tbody> 
      </table> 

和我正在此:

table

我該怎麼做才能得到一個增量在內線的大小..?

+0

哪裏CSS? –

+0

@NawedKhan css文件爲空 –

回答

1

試試這個:

<html> 
    <style> 
    .table-striped td { 
     border: 2px solid #000; 
    } 
    </style> 
    <table class="table table-hover table-striped" border="5"> 
        <tbody> 
         <tr> 
          <td>Local IP Address</td> 
          <td> 
           <input type="text" class="form-control" [(ngModel)] ="LocalIpAddress[1]" aria-describedby="basic-addon1"> 
          </td> 
         </tr> 
         <tr> 
          <td>Local Netmask</td> 
          <td> 
           <input type="text" class="form-control" [(ngModel)] ="LocalNetmask[1]" aria-describedby="basic-addon1"> 
          </td> 
         </tr> 
         <tr> 
          <td>Default Gateway</td> 
          <td> 
           <input type="text" class="form-control" [(ngModel)] ="DefaultGateway[1]" aria-describedby="basic-addon1"> 
          </td> 
         </tr> 
        </tbody> 
       </table> 
    </html> 
0

在tr或td標籤中使用style =「border:5」。 TR是行和TD列相信

+0

不工作:/。 –

+0

檢查我剛剛添加的代碼段代碼! –

+0

對不起,我已經使用html了。試試這個 - > style =「border:5」< - 在帶有箭頭的tr和td標籤內 –