答案 0 :(得分:2)
请检查一下,希望这对您有用。
.slider_container {
position: relative;
}
.slider_container img {
position: relative;
width: 100%;
}
.slider_container .border_box {
position: absolute;
border: 3px solid #fff;
left: 5px;
right: 5px;
top: 5px;
bottom: 10px;
}

<div class="slider_container">
<img src="http://www.electricprism.com/aeron/slideshow/images/1.jpg" alt="">
<div class="border_box"></div>
</div>
&#13;