IE6入选项卡没有反应 为什么IE6入选项卡没有反应 为什么
IE6中选项卡没有反应 为什么,
%@ Page Language= C# AutoEventWireup= true CodeFile= Default4.aspx.cs Inherits= Default4 %
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
html xmlns=
head id= Head1 runat= server
title /title
script type= text/jav...
IE6入选项卡没有反应 为什么
IE6中选项卡没有反应 为什么,
%@ Page Language= C# AutoEventWireup= true CodeFile= Default4.aspx.cs Inherits= Default4 %
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
html xmlns=
head id= Head1 runat= server
title /title
script type= text/javascript
function setTab(name, cursel, n) {
for (i = 1; i = n; i++) {
var menu = document.getElementById(name + i);
var con = document.getElementById( con_ + name + _ + i);
menu.className = i == cursel ? hover : ;
con.style.display = i == cursel ? block : none ;
}
}
/script
style type= text/css
*
{
margin: 0px;
padding: 0px;
list-style: none;
}
.main
{
width: 700px;
height: 600px;
float: left;
display: inline;
padding: 3px;
background-color: Gray;
}
.main .menu
{
width: 306px;
height: 31px;
overflow: hidden;
float: left;
}
.main .menu span
{
width: 60px;
height: 30px;
line-height: 30px;
overflow: hidden;
text-align: center;
float: left;
margin: 1px 0 0 1px;
background-color: Yellow;
color: #BCBCBC;
font-weight: bold;
cursor: pointer;
font-size: 12px;
}
.main .menu .hover
{
background: #666;
color: #FFF;
}
.main .content
{
width: 700px;
height: 500px;
overflow: hidden;
float: left;
margin: 1px;
margin-top: 0px;
display: inline;
background-color: White;
}
.main .content div
{
width: 700px;
height: 500px;
color: Red;
font-weight: bold;
}
/style
/head
body
form id= form1 runat= server
div class= main
div class= menu
span id= one1 onclick= setTab('one',1,2) class= hover 选项卡1 /span span
id= one2
onclick= setTab('one',2,2) 选项卡2 /span
/div
div class= content
div id= con_one_1
内容一
/div
div id= con_one_2 style= display: none
内容二 /div
/div
/div
本文档为【IE6入选项卡没有反应 为什么】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。