ellipse()
描述
ellipse() CSS 函数是 CSS 中的内置函数,用于在椭圆形图片或其他任何内容周围创建浮动文本。 ellipse() 函数是 CSS Shapes 模块的一部分。
语法
css
ellipse() = ellipse( [<shape-radius>{2}]? [at <position>]? )
/* where.. */
<shape-radius> = <length> | <percentage> | closest-side | farthest-side值
- shape-radius 按顺序表示 rx 和 ry,即椭圆的 x 轴和 y 轴半径。任一半径的负值均无效。这里的百分比值根据参考框的使用宽度(对于 rx 值)和使用高度(对于 ry 值)进行解析。
- position 位置参数定义椭圆的中心。如果省略,则默认为居中。
