IE9中带有半径的div背景

发布于 2024-12-26 12:31:45 字数 303 浏览 0 评论 0原文

我有几个 div,其角点半径为 5 度,它们也有背景图像。

这在 Chrome 中工作正常,但在 IE9 中遇到问题。我得到的不是带有圆角的背景,而是带有黑色边框的白色框......尽管角是圆角的。

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

页面下方有几个示例。 ..h2 靠近左边缘,表单位于页面底部,推荐框位于中间位置。

有什么想法为什么背景不显示吗?

I have several divs with a 5 degree radius applied to the corners, which also have a background image.

This works fine in Chrome, but I am having problems with them in IE9. Instead of getting the background with rounded corners, I get a white box with a black border...although the corners are rounded.

Please see http://www.thecocktailservice.co.uk/

There are several examples down the page...The h2's near the left edges, the form at the bottom of the page, and the testimonials box half way up.

Any ideas why the backgrounds aren't showing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十年不长 2025-01-02 12:31:45

当使用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 可能只是将背景留空。

When using chrome to inspect this page, there are several errors and warnings.

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.)

These are just some of the few, might want to look into correcting those errors.

In addition, the padding from the line

padding:2px 30px 7px 30px;

does not seem to be showing up in IE. Without an area large enough to render the image, IE is probably just leaving the background blank.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文