在 CMS 中使用一些内联 CSS(有趣!)。这段代码在 Chrome 和 Firefox 中正常工作,背景图像只出现一次。但是当页面在 IE 9 中加载时,就好像 no-repeat 值被忽略并且背景图像在 div 的长度上重复。
<div style="width: 500px; margin-top: -10px; background-image: url(http://.../uploadedImages/horizontal-rule-top.gif); background-position: 50% 0%; background-repeat: no-repeat, no-repeat; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(228, 128, 28); padding-top: 30px; padding-bottom: 15px; font-size: 16px; ">
...</div>
任何建议将不胜感激!