css给html div设置边框
2019年11月30日
作者:佚名
用到元素和css花式
1、html标签:
div
2、css边框花式属性:
border
3、配置单边边框:
border-left —— 左边框
border-right —— 右侧框
border-top ——上边框
border-bottom ——下边框
4、设置边框粗细
border-width:2px —— 边框粗细宽度为2px
border:2px —— 缩写——边框粗细宽度为2px
border-bottom-width:4px ——单设下边框宽度粗细为4px
5、设置边框线体名堂与经常使用边框border缩写代码
border-bottom:1px solid #F00
单设对象下边框1px实线血色边框。
border:2px dashed #F00
设置装备摆设边框(4条边)赤色2px宽度(厚度)虚线边框花色