最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
详解css样式中的border-image
时间:2017-01-10 编辑:简简单单 来源:一聚教程网
border-image-source 属性设置边框的图片的路径[none |
1
2
3
4
|
div {
border:20pxsolid#000;
border-image-source:url(border.png);
}
|
border-image-slice 属性图片边框向内偏移[
1
2
3
4
5
|
div {
border:20pxsolid#000;
border-image-source:url(border.png);
border-image-slice:27,27,27,27;
}
|
border-image-width 属性设置图片边框的宽度[
1
2
3
4
5
6
|
div {
border:20pxsolid#000;
border-image-source:url(border.png);
border-image-slice:27,27,27,27;
border-image-width:27px110%27px;
}
|
border-image-outset 属性设置边框图像区域超出边框的量[
1
2
3
4
5
6
7
|
div {
border:20pxsolid#000;
border-image-source:url(border.png);
border-image-slice:27,27,27,27;
border-image-width:27px110%27px;
border-image-outset:27px27px27px27px;
}
|
border-image-repeat 属性设置图像边框是否应平铺(repeated)、铺满(rounded)或拉伸(stretched)(1,2)
1
2
3
4
5
6
7
8
9
|
div {
border:20pxsolid#000;
border-image-source:url(border.png);
border-image-slice:27,27,27,27;
border-image-width:27px110%27px;
border-image-outset:27px27px27px27px;
border-image-repeat: rounded;
border-image:url(border.png)27 rounded;
}
|
-
下一个: 文本超出部分隐藏的两种方法
相关文章
- CSS 鼠标点击拖拽效果代码展示 10-31
- CSS使用SVG实现动态分布的圆环发散路径动画教程 10-31
- CSS组合选择器解析 10-26
- css带搜索导航栏的代码展示 10-26
- css复合选择器的具体使用方法介绍 10-26
- css三列自适应布局教程 10-26