在CMS中使用一些内联CSS(好玩!)。这段代码的工作原理与Chrome和Firefox应该一样,背景图像只出现一次。但是,当页面加载到IE 9中时,就好像不重复值被忽略,并且背景图像在div的长度上重复。在IE中不工作的CSS“no-repeat”
<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>
任何意见将不胜感激!
看来[IE9支持多种背景](http://caniuse.com/#feat=multibackgrounds),但是其实现可能存在一些问题,这些问题在这里显示。 – BoltClock 2012-04-09 19:59:34
是的,当我意识到它可能是多背景实现的问题时,我投了你的答案。 – 2012-04-09 20:02:42