摘要: ie6对hover兼容性问题的解决: 1,在body里添加以下样式: behavior:url(../scripts/csshover.htc); csshover.htc可直接在网上下载 2,js解决 判断是否为ie6 window.onload=function(){ var isIE=!!wi 阅读全文
posted @ 2016-12-15 14:06 小僵尸 阅读(258) 评论(0) 推荐(0)
摘要: 效果图: 点击菜单 中英文切换 css样式: .top-nav { font-size: 12px; font-weight: bold; list-style: none; border-bottom: 8px solid #DC4E1B; overflow: auto; //去浮动,使下级的浮动 阅读全文
posted @ 2016-12-15 13:17 小僵尸 阅读(279) 评论(0) 推荐(0)
摘要: jQuery代码 1,引用jQuery库 2,show方法 3,hide方法 <script type="text/javascript"> $function(){ $(".navmeau").mouseover(function(){ $(this).children("ul").show(); 阅读全文
posted @ 2016-12-15 10:59 小僵尸 阅读(448) 评论(0) 推荐(0)
摘要: 效果 js代码: <script type="text/javascript"> function ShowSub(li) {//函数定义 var subMenu = li.getElementsByTagName("ul")[0] ;//获取 subMenu.style.display = " b 阅读全文
posted @ 2016-12-15 10:21 小僵尸 阅读(934) 评论(0) 推荐(0)