css写椭圆

先在页面中加入一个div 修改width值为200px,然后把border-radius改成100px / 50px; “/”之前的是水平半径,”/”之后的是垂直半径,所以 100px / 50px就让div成了椭圆 border-radius: 100px/50px; 感谢分享 https://jingyan.baidu.com/article/e5c39bf5bbb5e739d6603341.
相关文章
相关标签/搜索