我正在尝试使用 3 个图像(左、重复和右)作为“语音气泡”标题的背景,但无法让中间重复以填充容器 div。
这是它的位置(带有“你好”的灰色气泡)http://www.dev.inside-guides.co.uk/brentwood/pages/index.html
这是CSS:
.right-nav .speech-left {float:left;background:url(/images/speech-left.png) no-repeat;width:55px;height:47px;}
.right-nav h2.speech-repeat {display:block;float:left;background:url(/images/speech-repeat.png) repeat-x;height:47px;}
.right-nav .speech-right {float:left;background:url(/images/speech-right.png) no-repeat;width:10px;height:47px;}
和html:
<div class="bg clearfix" style="width:100%;">
<div class="speech-left"></div>
<h2 class="speech-repeat">hello</h2>
<div class="speech-right"></div>
</div>
非常感谢任何帮助。