IE8 Css 背景位置:右无法正常工作,因为它在右侧显示了一条额外的行,以前有人遇到过这个问题吗?

发布于 2024-09-28 12:32:01 字数 178 浏览 0 评论 0 原文

当我在 IE8 中将背景位置设置为右侧时,会发生这种情况...

您可以在以下 URL 中看到: http://www.scrapingweb.com/quote.html(“联系我们”选项卡)

this happens when i set my background-position to right in IE8 Only...

you can see that in the following URL : http://www.scrapingweb.com/quote.html (Contact Us tab)

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

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

发布评论

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

评论(2

挽袖吟 2024-10-05 12:32:01

我尝试减少 HTML 或正文的宽度,例如

body{width:99.6%}

html{width:99.6%} - 首选

并且工作正常

您还可以减小宽度
父容器例如 DIV 到
width:99.9% 这也有效。

我更喜欢用 css hack 使其只能在 IE8 上读取。

I tried to reduce the width of the HTML or the body like this

body{width:99.6%}

or

html{width:99.6%} - preferred

And worked fine

you can also reduce the width of the
parent container for example DIV to
width:99.9% and this works too.

I prefer to make it with css hack to be read only on IE8.

小巷里的女流氓 2024-10-05 12:32:01

尝试指定两个位置,例如:

background-position: right top

如果您只指定一个关键字,则第二个值将为“center”

Try to specify both positions e.g.:

background-position: right top

If you only specify one keyword, the second value will be "center"

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