2012-01-12 22 views
0

我有几个div,半径为5度,应用于角落,也有背景图片。IE9中半径为Div的背景

这在Chrome中正常工作,但我在IE9中遇到了问题。我没有获得带圆角的背景,而是得到一个带有黑色边框的白色盒子......尽管角落是圆形的。

请参阅http://www.thecocktailservice.co.uk/

有几个例子下来的网页...的H2的左侧边缘附近,在页面底部的形态,以及推荐框半路上了。

任何想法为什么没有显示背景?

+0

请发布您的CSS代码。 'border-radius'应该在IE9中工作。 – bfavaretto 2012-01-12 19:50:36

+0

是的,发布你的CSS可能会有所帮助 – 2012-01-12 20:03:30

回答

0

使用chrome检查此页面时,会出现多个错误和警告。

Failed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.) 
http://www.thecocktailservice.co.uk/demos/images/th-slide-env-1.jpgFailed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.) 
http://www.thecocktailservice.co.uk/demos/images/th-slide-civil-2.jpgFailed to load resource: the server responded with a status of 404 (ERROR: The file requested could not be found.) 

这些只是少数几个,可能要考虑纠正这些错误。

此外,从行

padding:2px 30px 7px 30px; 

填充似乎没有被示出在向上IE。如果没有足够大的区域来渲染图像,IE可能只是将背景留空。

+0

谢谢,它似乎是过时的htc文件搞乱了东西 - 更新这个,它工作正常! – user1146311 2012-01-13 19:10:05