[英]Css issue with Internet Explorer
Hi am trying to add 2 buttons sliding with the page. 您好,我想添加2个随页面滑动的按钮。 I mean
position:fixed
我的意思是
position:fixed
My website is working well on every browser except Internet Explorer. 我的网站在除Internet Explorer之外的所有浏览器上都能正常运行。
Please take a lool to it: Website 请大笑: 网站
As you see live-chat button and bookmark-us button is sliding with all browsers except Internet Eplorer. 如您所见,实时浏览按钮和书签我们按钮在除Internet Eplorer之外的所有浏览器中滑动。
Thank you for your helps. 谢谢您的帮助。
The first two lines of your HTML are: HTML的前两行是:
<!--start head-tag.php-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Remove the comment above the doctype, because it's causing your site to be displayed in quirks mode . 删除文档类型上方的注释,因为它会使您的网站以怪癖模式显示。
position: fixed
does not work in IE's quirks mode. position: fixed
在IE的怪癖模式下不起作用。
Try this http://jsfiddle.net/RftZy/1/ This works. 试试这个http://jsfiddle.net/RftZy/1/这行得通。
.live-chat {
position: fixed;
height: 112px;
width: 32px;
z-index: 1001;
top: 40%;
left: -2px;
}
Thank you for making us go to your website to look at the code... 感谢您让我们进入您的网站查看代码...
Internet Explorer can't render CSS like other browsers can. Internet Explorer无法像其他浏览器一样呈现CSS。 One thing you can count on is that sometimes the CSS has to be in the same order of the Elements in order to render correctly.
您可以指望的一件事是,有时CSS必须与Elements顺序相同才能正确呈现。 Also look online for good solutions.
也可以在网上寻找好的解决方案。
Check this out: 看一下这个:
http://tagsoup.com/cookbook/css/fixed/ http://tagsoup.com/cookbook/css/fixed/
might help. 可能有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.