<!doctype html>去掉就好用了 为什么?
<!doctypehtml><html><head><script>functionreGe(){document.getElementById("dv1").style...
<!doctype html>
<html>
<head>
<script>
function reGe(){
document.getElementById("dv1").style.height = document.body.clientHeight * 0.7;
}
</script>
</head>
<body onResize="reGe();" onLoad="reGe();">
<img src="images/p31.jpg" id="dv1"/>
</body>
</html> 展开
<html>
<head>
<script>
function reGe(){
document.getElementById("dv1").style.height = document.body.clientHeight * 0.7;
}
</script>
</head>
<body onResize="reGe();" onLoad="reGe();">
<img src="images/p31.jpg" id="dv1"/>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询