div上边加边框
1、应用单词与值
- border-top:1px solid #F00
2、完整实例代码
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>www.CSS5.com.cn</title>
- <style>
- .a-top{ border-top:1px solid #F00}
- </style>
- </head>
- <body>
- <div class="a-top">只配置div上边框</div>
- </body>
- </html>
3、成果截图
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css-jiaocheng/tc53804.shtml