border-image:border-image-source slice-width{1,4}
slice-width的值可以是具体像素,也可以是百分比。切割后的图片块分别是
border-top-left-image border-top-image border-top-right-image
border-left-image border-right-image
border-bottom-left-image border-bottom-image border-bottom-right-image
其中,border-top-image和border-bottom-image区域受到水平方向效果影响,如果是repeat则此区域图片会水平重复,如果是round则会水平平铺,责任stretch则被水平拉升。而大家设置虚线,则选择repeat/round都可以。
border–width属性的常用取值单位是?
border-width — 定义四个边框的宽度,border-width不能使用百分比而且不能取负值,只能使用长度,常用取值单px(像素)
css外边距是什么?
一个盒子中主要的属性就5个:width、height、padding、border、margin。如下:
width和height:内容的宽度、高度(不是盒子的宽度、高度)。padding:内边距。border:边框。margin:外边距。
html中怎么设置边框一左一右?
直接写css table{ border-left:1px solid #000;//设置表格左边框为1像素实线黑色的边框 border-right:1px solid #000;//设置表格右边框为1像素实线黑色的边框 border-bottom:1px solid #000;//设置表格下边框为1像素实线黑色的边框 }