
本教程操作环境:windows7系统、css3版,DELL G3电脑。
css设置边框的方法:
1、在一个border简写属性设置边框。
<html>
<head>
<style type="text/css">
p
{
border: medium double rgb(250,0,255)
}
</style>
</head>
<body>
<p>Some text</p>
</body>
</html>登录后复制效果图:

2、按照border-width、border-style、border-color属性顺序依次设置边框样式。
示例:
<html>
<head>
<style type="text/css">
p
{
border-width:medium;
border-style:double;
border-color:rgb(250,0,255);
}
</style>
</head>
<body>
<p>Some text</p>
</body>
</html>登录后复制效果图:

以上就是css如何设置边框的详细内容,更多请关注靠谱客其它相关文章!

最后
以上就是悦耳小馒头最近收集整理的关于css如何设置边框的全部内容,更多相关css如何设置边框内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复