欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          html5怎么取消邊框

          在html5中,可以利用border屬性來取消邊框,該屬性會(huì)在一個(gè)聲明中設(shè)置所有的邊框?qū)傩裕?dāng)該屬性的值設(shè)置為“0”時(shí)就會(huì)取消邊框的樣式,語法為“<element border="0">”。

          html5怎么取消邊框

          本教程操作環(huán)境:windows10系統(tǒng)、CSS3&&HTML5版本、Dell G3電腦。

          html5怎么取消邊框

          border 屬性在一個(gè)聲明中設(shè)置所有邊框?qū)傩浴?/p>

          語法:

          Object.style.border=borderWidth borderStyle borderColor

          html5怎么取消邊框

          示例如下:

          <html> <head> <style type="text/css"> p {  border: thin dotted #FF0000; } </style> <script type="text/javascript"> function changeBorder() { document.getElementById("p1").style.border="none"; } </script> </head> <body> <input type="button" onclick="changeBorder()" value="Change border" /> <p id="p1">This is a paragraph</p> </body> </html>

          輸出結(jié)果:

          html5怎么取消邊框

          示例:

          <html> <body> <table border="1">   <tr>     <th>Month</th>     <th>Savings</th>   </tr>   <tr>     <td>January</td>     <td>$100</td>   </tr> </table> <table border="0">   <tr>     <th>Month</th>     <th>Savings</th>   </tr>   <tr>     <td>January</td>     <td>$100</td>   </tr> </table> </body> </html>

          輸出結(jié)果:

          html5怎么取消邊框

          (學(xué)習(xí)視頻分享:css視頻教程、html視頻教程)

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)