【发布时间】:2014-03-01 00:39:33
【问题描述】:
如何获得用于环绕整个边框的图像?它只显示在顶部和底部。我使用border-image.com 将其缩小,但我只能在顶部或底部或左右边框上获得所需的结果。我基本上希望图像以一致的方式重复环绕(公司的徽标在所有边界上重复),而不必以任何方式拉伸、操纵或缩放它。我真的很感激任何帮助?
Here's what I have so far
HTML:
<div id="outer_container">
...
</div>
CSS:
#outer_container {
height: 1495px;
width: 925px;
margin-right: auto;
margin-left: auto;
background-repeat: repeat-x;
background-attachment: fixed;
background-color: #E7EAF5;
border-radius: 15px;
border-style: solid;
border-width: 38px 38px 38px 38px;
border-image: url(http://lorempixel.com/81/81/) 81 0 fill repeat stretch;
}
【问题讨论】:
-
我现在明白border-image 不会环绕整个边框。还有其他方法可以完成我的任务吗?