我有一个问题,我似乎无法摆脱 ap 标签的背景颜色,是否可以这样做?我已将 div 背景设置为图像。
输出:
CSS
.box {
display: inline-block; vertical-align: top; margin: -1px; text-align: left; padding: 25px;
}
#tables {
max-width: 1080px;
margin: 0 auto;
text-align: center;
}
#screenshots {
background: url(http://i.cubeupload.com/nAtNKD.jpg) no-repeat center;
width: 308px;
height: 280px;
}
#csmatches {
background: url(http://i.cubeupload.com/nAtNKD.jpg) no-repeat center;
width: 308px;
height: 280px;
}
#fixtures {
background: url(http://i.cubeupload.com/nAtNKD.jpg) no-repeat center;
width: 308px;
height: 280px;
}
HTML
<div id="tables">
<div id="screenshots" class="box">Screenshots</div>
<div id="csmatches" class="box"><p>Recent Match Results</p>
</div>
</div>
<div id="fixtures" class="box">Fixtures</div>
</div>