html固定位置IE问题
我的页面右下角有一个聊天按钮/链接。这是我在 css 中的代码,它在 firefox 和 chrome 中完美运行:
a.trigger{
position: fixed;
bottom: 0px; right: 15px;
padding: 6px 10px 6px 10px;
display: block;
}
但在 IE 中,它只是位于页面顶部。我该如何修复它以便它也可以在 IE 中运行?
I have a chat button/link that sits at the bottom right of my page. This is my code in the css, it works perfect in firefox and chrome:
a.trigger{
position: fixed;
bottom: 0px; right: 15px;
padding: 6px 10px 6px 10px;
display: block;
}
In IE though, it just sits at the top of the page. How can I fix it so it works in IE too?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

注意:仅当指定
!DOCTYPE
时,IE7、IE8 和 IE9 才支持固定值。页面的第一行应为以下内容之一:
HTML 4
HTML 5
来源: http://www .w3schools.com/css/css_positioning.asp
Note: IE7, IE8 and IE9 support the fixed value only if a
!DOCTYPE
is specified.The first line of your page should one of the following:
HTML 4
HTML 5
Source: http://www.w3schools.com/css/css_positioning.asp