css 页面布局,IE 页面布局_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:46:47
Original
883 people have browsed it

css 布局 javascript ie firefox

我的页面加载时的javascript:
$(document).ready(function() {	var myhight = $(document).height();	var mywidth = $(document).width();	$("#myul").height(myhight - 52);	$("#mydiv").height(myhight - 50);	$("#mydiv").width(mywidth - 200);});
Copy after login


上面代码是控制页面布局的,不让页面出现左右的滚动条,(我在firefox中没有左右的滚动条),

在IE中页面初次进,却有左右的滚动条!而点击刷新之后左右的滚动条没了- -!
当你点击页面中的某个超链接,或者按钮时,滚动条又出现了,

求解!
[

回复讨论(解决方案)

你这是ie几出现的问题啊?
设置
html,body{margin:0;padding:0;border:0}
试试。如果不行,可以贴出你的所有代码进行调试

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!