我正在一个客户端网站上工作,并试图让H2字体不在我用来创建图像背后的橙色框的背后。在发生这种情况时,我有一个相当不错的把握,但似乎无法找出解决方案。所有帮助表示赞赏!H2文本卡在后面,并没有清除DIV彩色框
<div id="srleft">
<div class="orangebox"><img src="images/quality.png" alt="quality service in portland and vancouver" /></div>
<h2>Quality</h2>
<p>With Over ---- Years of combined experience we promise great quality on all window installations.</p>
</div>
这里是我的CSS代码:
#srleft {
position: relative;
float: left;
}
.orangebox {
height: 88px;
width: 89px;
border: 1px solid rgb(74, 74, 74);
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
background-color: rgb(240, 111, 38);
border-radius: 0px;
box-shadow: rgba(0, 0, 0, 0.6) 0px 1px 4px 0px;
display: block;
}
.orangebox img {
display: block;
position: absolute;
top: 0; bottom:0; left: 0; right:0;
margin: auto;
}
demo1 http://jonesbizzopp.com/hosted/Capture.PNG demo2 http://jonesbizzopp.com/hosted/Capture2.PNG
你能提供小提琴的例子吗? –