问题是这样的:
首先我的是jsp页面。position: fixed;这个设置,在IE11、火狐、谷歌里没问题,可以固定。
但是在IEtester(6.7.8.9)和360浏览器就死活不行,都是随着页面滚动,兼容性我也设置了,不管用。
另外,html类型文件position: fixed;这个IEtester(6.7.8.9)和360浏览器都可以固定。
大家根据这些找找漏洞吧,看问题到底出在哪里css hack我基本都试了,不管用
这是jsp文件开头部分内容:
<%@page language="java" contentType="text/html; charset=utf-8" %><html> <head> <title>xxx</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
xxx
再贴个css,这个在html文件里是固定的,放到jsp里就不行了:
<style type="text/css"> #glideDiv0{position:fixed; bottom:0;left:0; width:100%; background:#F00;} </style> <!--[if IE 6]> <style type="text/css"> html{overflow:hidden;} body{height:100%;overflow:auto;} #glideDiv0{position:absolute;} </style> <![endif]-->
%23glideDiv0%7Bposition%3Afixed%3B%20bottom%3A0%3Bleft%3A0%3B%20width%3A100%25%3B%20background%3A%23F00%3B%7D
最后这个jsp页面是被include到首页去的,我单独去链接到这个页面,也是滚动的。
我已经搜了很多资料了,还是没解决,请大家耐心看完,帮帮我吧,非常感谢,我会加分的
我怀疑是不是其它层影响的,但我实在找不到因为啥。如果三言两语说不清,可以留个QQ,或者加我吧
谢谢大家的耐心回答。经过排除法,我找到了问题根源,在文档开头加这个:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
其它兼容什么的,随意。
谢谢
本回答被提问者采纳谢啦
感谢