【发布时间】:2017-11-19 01:04:34
【问题描述】:
我试图在同一个 div 上使用 2 个不同的边框图像:一个图像在顶部重复,一个在底部重复。
我可以让底部边框图像显示。我也可以在顶部重复相同的边框图像,但是一旦我尝试使用边框底部图像或边框顶部图像,都不会显示:
#mainImage{
border-bottom:8px solid #fff;
border-bottom-image: url("http://local.vsjf.org/wp-content/themes/vsjf/images/vsjf_borders_sage_02.png") 7 repeat;
border-top:8px solid transparent;
border-top-image: url("http://local.vsjf.org/wp-content/themes/vsjf/images/vsjf_borders_white.png") 7 repeat;
border-left:0px;
border-right:0px;
}
这可能吗?
【问题讨论】:
标签: css border border-image