2010-10-11 27 views
1

是否可以更改邊框設計......抱歉,我點擊了發送按鈕如何改變邊框設計

<html> 
    <table border="1"> 
     <tr> 
      <td style="padding-left:5px;padding-bottom:3px;"> 
       <strong style="font-size:12px;">Test A : <br/></strong> 
       Test1 
      </td> 
      <td style="padding-left: 5px; padding-bottom:3px; padding-top:4px;"> 
       <strong style="font-size:12px;">Test B:<br/></strong> 
       Test2 <br/>  
      </td> 
     </tr> 
     <tr> 
      <td style="padding-left:5px;padding-bottom:3px;"> 
       <strong style="font-size:12px;">Test A : <br/></strong> 
       Test1 
      </td> 
      <td style="padding-left: 5px; padding-bottom:3px; padding-top:4px;"> 
       <strong style="font-size:12px;">Test B:<br/></strong> 
       Test2 <br/>  
      </td> 
     </tr> 
    </table> 
</html> 
+0

你的問題是沒有確切你在做什麼很清楚試圖完成。 – 2010-10-11 14:11:23

+0

你需要確保你的問題被格式化爲**問題**! – Justin 2010-10-11 14:16:18

+0

它仍然不是一個問題。你在說什麼邊框設計?桌子?改變如何? – 2010-10-11 14:30:00

回答

1

不能看到任何問題在你的職位,但根據標題:是的,有是不同的邊框設計,請看this。一個表,你可以做這樣的事情用CSS:

table{ 
    border 1px solid #000; 
    border-collapse: collapse; // for don't having double-lined borders between table-cells 
} 
table td{ 
    border: 1px solid #000; 
} 
2

嘗試造型與CSS你的表...

擺脫邊界=「1」屬性在你的桌子和嘗試是這樣的:

<style> 
    table {border: dashed 1px red} 
</style> 

您也可以將樣式表的子元素:

<style> 
    table {border: dashed 1px red;} 
    td {border: solid 2px blue;} 
</style>