在css中,border-radius属性主要用于设置圆角的弧度。下面小编举例讲解css中border-radius属性有什么作用。
工具/原料
1
联想笔记本Air14
2
操作系统Windows 10
3
zend studio10.0
方法/步骤
1
新建一个html文件,命名为test.html,用于讲解css中border-radius属性有什么作用。
2
在test.html文件中,使用div标签创建一个模块,用于测试。
3
在css标签内,设置div为一个长方形,同时,使用border-radius属性设置div的圆角弧度为20px。
4
在浏览器打开test.html文件,查看结果。