代码复制在Dreamweaver后按F12不显示为什么?

小弟在此先谢谢前几天刚求到的代码,但负责到Dreamweaver按F12在页面中不显示,这个为什么啊?<html><head><title><title><metahtt... 小弟在此先谢谢
前几天刚求到的代码,但负责到Dreamweaver按F12在页面中不显示,这个为什么啊?

<html>
<head>
<title><title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
<!--
*{font-size:12px;}
html,body{margin:0;text-align:center;over-flow:hidden;height:100%;width:100%;}
UL{list-style-type:none; margin:0px;}
/*标准盒模型*/
.ttl{height:18px;}
.ctt{height:auto;padding:6px;clear:both;border:1px solid #064ca1;border-top:0;text-align:left;}
.w936{margin:2px 0;clear:both;width:936px;/*这里调整整个滑动门的宽度*/}
/*TAB切换效果*/
.tb_{background-image: url('http://www.zzsky.cn/effect/images/20080718_1.gif');background-repeat: repeat-x;background-color: #E6F2FF;}
.tb_ ul{height:24px;}
.tb_ li{float:left; margin-right:2px;height: 24px;line-height:1.9;width: 94px;cursor:pointer;}
/*用于控制显示与隐藏的css类*/
.normaltab{background-image:url('http://www.zzsky.cn/effect/images/20080718_2.gif'); background-repeat: no-repeat; color:#1F3A87;}
.hovertab{background-image: url('http://www.zzsky.cn/effect/images/20080718_3.gif'); background-repeat: no-repeat; color:#1F3A87; font-weight:bold;}
.dis{display:block;}
.undis{display:none;}
-->
</style>
<script type="text/javascript" language="javascript">
//<!CDATA[
function g(o){return document.getElementById(o);}
function HoverLi(n){
//如果有N个标签,就将i<=N;
//本功能非常OK,兼容IE7、FF、IE6;
for(var i=1;i<=6;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
<!--如果要做成点击后再转到请将<li>中的onmouseover改成onclick-->
</script>
</head>
<body>
<div class="w936">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onMouseOver="x:HoverLi(1);">
1</li>
<li id="tb_2" class="normaltab" onMouseOver="i:HoverLi(2);">
2</li>
<li id="tb_3" class="normaltab" onMouseOver="a:HoverLi(3);">
3</li>
<li id="tb_4" class="normaltab" onMouseOver="o:HoverLi(4);">
4</li>
<li id="tb_5" class="normaltab" onMouseOver="g:HoverLi(5);">
5</li>
<li id="tb_6" class="normaltab" onMouseOver="z:HoverLi(6);">
6</li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">1</div>
<div class="undis" id="tbc_02">2</div>
<div class="undis" id="tbc_03">3</div>
<div class="undis" id="tbc_04">4</div>
<div class="undis" id="tbc_05">5</div>
<div class="undis" id="tbc_06">6</div>
</div>
</div>
</div>
</body>
</html>
展开
 我来答
温文尔雅又挺拔灬大熊猫e
2009-07-18 · TA获得超过1.1万个赞
知道大有可为答主
回答量:1.1万
采纳率:31%
帮助的人:3122万
展开全部
代码第三行少了个/,应该是:
<html>
<head>
<title></title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
*{font-size:12px;}
html,body{margin:0;text-align:center;}
UL{list-style-type:none; margin:0px;}
.ttl{height:18px;}
.ctt{height:auto;padding:6px;clear:both;border:1px solid #064ca1;border-top:0;text-align:left;}
.w936{margin:2px 0;clear:both;width:936px;}
.tb_{background: url('http://www.zzsky.cn/effect/images/20080718_1.gif');background-repeat: repeat-x;background-color: #E6F2FF;}
.tb_ ul{height:24px;}
.tb_ li{float:left; margin-right:2px;height: 24px;line-height:1.9;width: 94px;cursor:pointer;}
.normaltab{background:url('http://www.zzsky.cn/effect/images/20080718_2.gif'); background-repeat: no-repeat; color:#1F3A87;}
.hovertab{background: url('http://www.zzsky.cn/effect/images/20080718_3.gif'); background-repeat: no-repeat; color:#1F3A87; font-weight:bold;}
.dis{display:block;}
.undis{display:none;}
</style>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function HoverLi(n){
for(var i=1;i<=6;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
</script>
</head>
<body>
<div class="w936">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onMouseOver="x:HoverLi(1);">
1</li>
<li id="tb_2" class="normaltab" onMouseOver="i:HoverLi(2);">
2</li>
<li id="tb_3" class="normaltab" onMouseOver="a:HoverLi(3);">
3</li>
<li id="tb_4" class="normaltab" onMouseOver="o:HoverLi(4);">
4</li>
<li id="tb_5" class="normaltab" onMouseOver="g:HoverLi(5);">
5</li>
<li id="tb_6" class="normaltab" onMouseOver="z:HoverLi(6);">
6</li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">1</div>
<div class="undis" id="tbc_02">2</div>
<div class="undis" id="tbc_03">3</div>
<div class="undis" id="tbc_04">4</div>
<div class="undis" id="tbc_05">5</div>
<div class="undis" id="tbc_06">6</div>
</div>
</div>
</body>
</html>

另外,注释不能加得太多了
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式