好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css怎么画圆

css画 圆 的方法:首先设置div元素的 宽 高相等;然后使用border-radius属性来画圆,语法格式为“border-radius:50%”。border-radius属性设置元素的外 边框圆角 ,使用一个 半 径时确定一个圆形。

本教程操作环境:windows7系统、CSS3 && HT ML 5版、Dell G3 电 脑。

border-radius 属性是一个简写属性,用于设置四个 border-*-radius 属性。

提示:该属性允许您为元素添加圆角边框!

注释:按此顺序设置每个 radii 的四个值。如果省略 bottom-left,则与 top-right 相同。如果省略 bottom-right,则与 top-left 相同。如果省略 top-right,则与 top-left 相同。

设置前:

<!DOCTY PE  html>
<html>
<head>
< ;m eta http-equiv="Content -t ype" content="text/html; charset=utf-8" />
<t IT le>document</title> 
<style> 
div{ 
    width: 100px;
    h ei ght: 100px;
    border: 1px solid rgb(255, 113, 113);
    }
</style>
</head>
<body>
<div></div>
</body>
</html>

效果:

设置后:

border-radius: 50%;

效果:

推荐学习:css视频教程

以上就是css怎么画圆的详细内容,更多请关注其它相关 文章 !

总结

以上是 为你收集整理的 css怎么画圆 全部内容,希望文章能够帮你解决 css怎么画圆 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于css怎么画圆的详细内容...

  阅读:31次