久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css怎樣設(shè)置button為直角

      在css中,可以利用“border-radius”屬性設(shè)置button為直角,只需要給button元素添加“{border-radius:0%;}”或者“{border-radius:0px;}”樣式即可。

      css怎樣設(shè)置button為直角

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

      css設(shè)置button為直角的方法

      在css中可以使用border-radius屬性來設(shè)置元素的圓角邊框,border-radius屬性的語(yǔ)法為:

      border-radius: 1-4 length|% / 1-4 length|%;

      其中需要注意的是:

      length用來定義圓角的形狀,%用來以百分比定義圓角的形狀。

      button元素在默認(rèn)情況下是有一些圓角的:

      css怎樣設(shè)置button為直角

      想要將button設(shè)置為直角,只需要給button元素添加“border-radius:0px;”或者“border-radius:0%;”樣式即可。

      示例代碼如下:

      <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta http-equiv="X-UA-Compatible" content="ie=edge">     <title>Document</title> </head> <style> button{     border-radius:0%;     } </style> <body>     <button>123</button> </body> </html>

      或者另一種形式:

      <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta http-equiv="X-UA-Compatible" content="ie=edge">     <title>Document</title> </head> <style> button{     border-radius:0px;     } </style> <body>     <button>123</button> </body> </html>

      上述兩種方法輸出結(jié)果是相同的:

      css怎樣設(shè)置button為直角

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