久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css如何制作圓

      在css中,可以利用border-radius屬性來制作圓;border-radius屬性可以為元素添加圓角邊框,只需要給寬高相同的正方形元素的設置“border-radius: 100%;”樣式即可。

      css如何制作圓

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

      p+Css制作四分之一圓主要是使用Css3.0中的border-radius這個圓角隱藏屬性.利用這一屬性,我們可以畫圓,畫半圓,四分之三圓,四分之一圓等.以后我會更新……

      如何使用border-radius屬性,下面是border-radius屬性最基本的使用方法:

      .round {     border-radius: 5px; /* 所有角都使用半徑為5px的圓角,此屬性為CSS3標準屬性 */     -moz-border-radius: 5px; /* Mozilla瀏覽器的私有屬性 */     -webkit-border-radius: 5px; /* Webkit瀏覽器的私有屬性 */     border-radius: 5px 4px 3px 2px; /* 四個半徑值分別是左上角、右上角、右下角和左下角 */ }

      1、用border-radius畫圓:

      #circle {     width: 200px;     height: 200px;     background-color: #a72525;     -webkit-border-radius: 100px;     /*-webkit-border-radius: 100%;*/ }

      仔細想想,一個正方形(200*200),里面最大的圓是的半徑是:100.

      css如何制作圓

      2.空心圓代碼:空心圓其實就是只有邊框,空心部分填上其他顏色:

      #circle {     width: 200px;     height: 200px;     background-color: #efefef; /* Can be set to transparent */     border: 3px #a72525 solid;     -webkit-border-radius: 100px; }

      css如何制作圓

      同理虛線圓代碼:

      #circle {     width: 200px;     height: 200px;     background-color: #efefef; /* Can be set to transparent */     border: 3px #a72525 dashed;     -webkit-border-radius: 100px 100px 100px 100px; }

      css如何制作圓

      3.半圓和四分之一圓代碼:

      #quartercircle {     width: 200px;     height: 200px;     background-color: #a72525;     -webkit-border-radius: 200px 0 0 0; }

      css如何制作圓

      <!doctype html> <html>  <head>   <meta charset="UTF-8">   <meta name="Generator" content="EditPlus?">   <meta name="Author" content="">   <meta name="Keywords" content="">   <meta name="Description" content="">   <title>Document</title>   <style type="text/css">       #quartercircle{         width: 200px;         height: 200px;         background-color: #ffffaa;         border-radius:0 0 0 200px;         -webkit-border-radius: 0 0 0 200px;         -moz-border-radius: 0 0 0 200px;         -ms-border-radius: 0 0 0 200px;         -o-border-radius: 0 0 0 200px;         }      #quartercircle .dianxuan{         font-family:Arial;         color:gray;         font-size:25px;         padding-top: 55px;         padding-left: 90px;         transform:rotate(32deg);         -ms-transform:rotate(32deg); /* Internet Explorer */         -moz-transform:rotate(32deg); /* Firefox */         -webkit-transform:rotate(32deg); /* Safari 和 Chrome */         -o-transform:rotate(32deg); /* Opera */      }    </style>  </head>  <body>   <div id="quartercircle">   <div>點選</div>   </div>  </body> </html>

      css如何制作圓

      解釋:

      -moz(例如 -moz-border-radius)用于Firefox

      -webkit(例如:-webkit-border-radius)用于Safari和Chrome

      其中border-radius各個瀏覽器支持情況如表:

      瀏覽器 支持性
      Firefox(2、3+)
      Google Chrome(1.0.154+…)
      Google Chrome(2.0.156+…)
      Safari(3.2.1+ windows)
      Internet Explorer(IE7, IE8) ×
      Opera 9.6 ×

      (學習視頻分享:css視頻教程)

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