用css + javaScript实现层隐藏、显示切换.docVIP

用css + javaScript实现层隐藏、显示切换.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
用cssjavaScript实现层隐藏、显示切换

用css + javaScript实现层的隐藏、显示切换 html head style type=text/css .Display{ display:inline; } .Hidden{ display:none; } /style script language=javaScript function goto(t){ if ( t==1 ){ document.all.Layer1.className=DisPlay; document.all.Layer2.className=Hidden; } else if ( t==2 ){ document.all.Layer2.className=DisPlay; document.all.Layer1.className=Hidden; } } /script /head body 前面的内容。 div id=Layer1 class=Display a href=# onClick=goto(2);第一层:点击切换到第二层!/a /div div id=Layer2 class=Hidden a href=# onClick=goto(1);第二层:有很多很多很多很多很多很多文字。点击切换到第一层!/a /div 后面的内容。 /body /html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN /TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=/1999/xhtml head meta http-equiv=Content-Type content=text/html; charset=gb2312 / titleDIV CSS布局实例:CSS标签切换代码实例教程/title style type=text/css * {list-style-type:none; font-size:12px; text-decoration:none; margin:0; padding:0;} a {behavior:url(xuxian.htc)} .woaicss {width:438px; height:300px; overflow:hidden; margin:50px auto;} .woaicss_title {width:438px; height:30px; background:#fff url(btn_bg.png) no-repeat; overflow:hidden;} .woaicss_title li {display:block; float:left; margin:0 2px 0 0; display:inline; text-align:center;} .woaicss_title li a {display:block; width:90px; heigth:30px; line-height:34px; color:#fff;} .woaicss_title li a:hover {color:#f0f0f0; text-decoration:underline;} .woaicss_title_bg1 {background-position:0 0;} .woaicss_title_bg2 {background-position:0 -30px;} .woaicss_title_bg3 {background-position:0 -60px;} .woaicss_title_bg4 {background-position:0 -90px;} .woaicss_con {display:block; width:438px; height:270px; background:url(con_bg.png) no-repeat 0 0; overflow:hidden;} .woaicss_con ul {width:418px; height:250px; margin:12px auto;} .woaicss_con li {width:418px; line-height:30px; margin:0 auto; white-space:nowrap; text-overflow:ellipsis; overflow: hidden;} .woaicss_con li a {color:#03c;} .woaicss_con li a:hover {color:#069; text-decoration:underline;} .

文档评论(0)

xcs88858 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档