CSS3.0圓角屬性實現圓角

來源:互聯網
上載者:User

標籤:表示   safari   實現   半徑   order   簡介   web   顯示   ref   

圓角屬性簡介:

1.屬性值:表示圓角半徑,可以使用長度單位px,或百分比2.簡寫屬性:border-radius3.分量屬性:border-top-left-radius(上左)、border-top-right-radius(上右)
border-bottom-right-radius(下右)、 border-bottom-left-radius(下左) 圓角簡寫屬性值的設定(與margin屬性設定相同,順時針方向):1、1個屬性值:4個角半徑相同2、2個屬性值:第一個值:上左角、下右角;第二個值:上右角、下左角(互為對視角)3、3個屬性值、4個屬性值的設定與margin屬性相同 注意:使用圓角屬性必須結合border屬性設定(類似設定邊框時必須設定 1px solid #acc3e3 三個屬性才有效果)例如input { border:1px solid #acc3e3 ;border-radius:2px; }設定右上、下角為直角需加{ border-top-right-radius:0; border-bottom-right-radius:0; } 解決各瀏覽器顯示差異,針對瀏覽器寫私人首碼: 1、IE核心:-ms-2、Firefox核心:-moz-3、Google瀏覽器、safari核心:-webkit-

CSS3.0圓角屬性實現圓角

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.