请问想做一条横线,如何定义这条线css样式
来源:百度知道 编辑:UC知道 时间:2024/06/03 10:51:29
如题:
<br />
或者
.div{
height:1px;
border-bottom:1px solid #ccc;
overflow:hidden;
}
div{ width:100px;
height:1px;
font-size:0;
background:#000000;
}
<div style="border-bottom:1px solid #000000;"></div>
<hr style="这里写自己的css样式代码" />