简体   繁体   中英

Round corner div problem in IE7

I am using following structure.

    <div style="background:#000 url(images/heading/bg.gif) repeat-x 0 0; height:28px; color:#FFF;">
    <div style="float:left; width:4px; background: #000 url(images/heading/left_curve.gif) no-repeat 0 left; height:28px;"></div>
    <span style="margin: 0 4px;">asdkjhkhasf</span>
    <div style="float:right; width:4px; background: #000 url(images/heading/right_curve.gif) no-repeat 0 right; height:28px;"></div>
    </div>
</div>    

In IE7, the right curve image(last div) is breaking to next line...

Please help me to resolve this issue.

交换跨度和右浮动div,以便div优先。

尝试在您的跨度中添加“ float:left”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM