打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
div切换版面

<!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>
</head>
<script>
 function qh()
 {
  if (document.getElementById("div1").style.display=="none")
  {
  
   document.getElementById("div1").style.display="";
  }
  else
  {
   document.getElementById("div1").style.display="none";
  }
 }
</script>
<body>
<input type="button" value="切换" onclick="qh()" />
<div style="width:200px; height:800px; float:left; background:#000;"></div>
<div id="div1" style="width:200px; height:800px; float:left; background:#060;"></div>
<div style="width:200px; height:800px; float:left; background:#0F0;"></div>

</body>
</html>

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
css+div 浮动分块
div高度自适应方法总结
QQ空间一些实用的代码
div+css使用技巧(原创教程)
打字游戏
两个div并排,右边div固定宽度,左边宽度自适应
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服