我在https://developer.mozilla.org/en/docs/Web/CSS/border-radius上阅读文档
边界半径属性似乎具有第二个半径值,
/* The syntax of the second radius allows one to four values */
/* (first radius values) / radius */
border-radius: 10px 5% / 20px;
/* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5% / 20px 30px;
/* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */
border-radius: 10px 5px 2em / 20px 25px 30%;
/* (first radius values) / top-left | top-right | bottom-right | bottom-left */
border-radius: 10px 5% / 20px 25em 30px 35em;
我知道border radius属性,它的语法很短,但是我不明白'/'之后的值是做什么的。
第一组值定义水平半径。可选的第二组值(以“ /”开头)定义垂直半径。如果仅提供一组值,则将其用于垂直和水平半径。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句