?
This document uses PHP Chinese website manual Release
border-top-right-radius:[ <length> | <percentage> ]{1,2}
默認(rèn)值:0
適用于:所有元素
繼承性:無
動(dòng)畫性:是
計(jì)算值:指定值
<length>:
用長度值設(shè)置對象的右上角(top-right)圓角半徑長度。不允許負(fù)值
<percentage>:
用百分比設(shè)置對象的右上角(top-right)圓角半徑長度。不允許負(fù)值
如設(shè)置border-top-right-radius:5px 10px
表示top-right這個(gè)角的水平圓角半徑為5px,垂直圓角半徑為10px。
對應(yīng)的腳本特性為borderTopRightRadius。
淺綠 = 支持
紅色 = 不支持
粉色 = 部分支持
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-8.0 | 2.0-12.0 -moz- #1 #2 | 4.0-43.0 -webkit- | 3.1-8.1 -webkit- | 10.5-28.0 -webkit- | 3.2-8.1 -webkit- | 2.1-4.4.4 -webkit- | 18.0-40.0 -webkit- |
9.0+ | 4.0+ | 5.0+ | 5.0+ | 10.5+ | 4.0+ | 2.2+ | 18.0+ |
Firefox從13.0開始移除對-moz-
的支持,僅支持標(biāo)準(zhǔn)的border-radius
寫法,在4.0-12.0區(qū)間,兩種方式都支持。
Firefox支持的廠商前綴寫法是非標(biāo)準(zhǔn)的-moz-border-radius-topright
,而不是-moz-border-top-right-radius
。
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>border-top-right-radius_CSS參考手冊_web前端開發(fā)參考手冊系列</title> <meta name="author" content="Joy Du(飄零霧雨), dooyoe@gmail.com, www.doyoe.com" /> <style> ul { margin: 0; padding: 0; } li { list-style: none; margin: 10px 0 0 0; padding: 10px; background: #bbb; } .test .one { border-top-right-radius: 30px; } .test .two { border-top-right-radius: 10px 30px; } </style> </head> <body> <ul class="test"> <li class="one">水平與垂直半徑相同時(shí)<br />border-top-right-radius:30px;</li> <li class="two">水平與垂直半徑不同時(shí)<br />border-top-right-radius:10px 30px;</li> </ul> </body> </html>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例