@ web怎么让div显现底线?
需要让div显示底线。
可以使用border-bottom来设置。
html:
<div class=”my-class”></div>
css:
div{
border-bottom:1px solid #ddd;
}
这个是所有的div都会有底线。
如果需要指定某个。
则可以使用class 或者id 或者选择器的组合。
如
div.my-class{
border-bottom:1px solid #ddd;
}
@ 怎么把表格的边框设置为实线框?
写个样式:.divTable { padding: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; border-top-style: none;//上边 border-right-style: none;//右边 border-bottom-style: solid; //就是这个 它这个是把表格的t最下面一行设为实线 border-left-style: none;//左边 border-bottom-color: #ababab; FONT-SIZE: 12px;}
@ 这个语句是什么意思?
该语句是CSS。
div是层
border:1px solid#00FF00 意思是:边框实线1像素,颜色为00FF00 (该颜色为16进制颜色码)
width:100px 意思是:宽度100像素
text-align:center 意思是:文字对齐方式为居中
cursor:hand 意思是:鼠标属性为手型光标。