ie8 禁用滚动条以后不能恢复
ie8 禁用滚动条之后不能恢复
ie8 禁用滚动条之后不能恢复
现在的问题能够用禁用,但是禁用之后就不能启用了,请问应该怎么写
------解决方案--------------------
表示没问题
你body的引号都写成中文的了 你告诉我你是怎么能运行起来的
ie8 禁用滚动条之后不能恢复
//禁用滚动条,可以禁用
$(“body”).css("overflow","hidden");
//启用滚动条,
$(“body”).css("overflow","scroll");
现在的问题能够用禁用,但是禁用之后就不能启用了,请问应该怎么写
------解决方案--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
div{
background-color:#F00;
width:400px;
height:500px;
margin-top:10px;
}
</style>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript">
$(function(){
$('body').css("overflow","hidden");
$('body').css("overflow","scroll");
})
</script>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div></div>
</body>
</html>
表示没问题
你body的引号都写成中文的了 你告诉我你是怎么能运行起来的