麻烦大家帮我看一下这个该怎么调
麻烦大家帮我看一下这个该怎么调啊图在下边,我现在想把它调的和上边导航对齐了该怎么做啊
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的滑动门</title>
<style type="text/css">
body{
color: #000;
font-family: "宋体", arial;
font-size: 12px;
background: #fff;
text-align: center;
margin: 0;
}
.nTab{
float: left;
width: 234px;
height:209px;
border-bottom:1px #6E92AC solid;
border-top:
background:#d5d5d5;
background-position:left;
background-repeat:repeat-y;
margin-bottom:2px;
}
.nTab .TabTitle{
clear: both;
height: 16px;
overflow: hidden;
border-color:#6E92AC;
border-bottom:1px #6E92AC solid;
}
.nTab .TabTitle ul{
border:0;
margin:0;
padding:0;
}
.nTab .TabTitle li{
float: left;
width: 78px;
cursor: pointer;
padding-top: 4px;
padding-right: 0px;
padding-left: 0px;
padding-bottom: 2px;
list-style-type: none;
}
.nTab .TabTitle .active{background:#D6DAF3;border-left:1px #6E92AC solid;border-top:1px #6E92AC solid;border-right:1px #6E92AC solid;border-bottom:1px #6E92AC solid;}
.nTab .TabTitle .normal{background:#EBF3FB;border:1px #6E92AC solid;}
.nTab .TabContent{
border-left-width:234px;
width:234px;background:#fff;
height:193px;
padding:10px 0 0 0;
border-right:1px #6E92AC solid;border-left:1px #6E92AC solid;
}
.none {display:none;}
</style>
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
</script>
</head>
<body>
<br />
<br />
<div align="center" style="padding-left:25px;">
<!-- 选项卡1开始 -->
<div class="nTab" style=width:288px>
<!-- 标题开始 -->
<div class="TabTitle">
<ul id="myTab1">
<li class="active" onclick="nTabs(this,0);">公告</li>
<li class="normal" onclick="nTabs(this,1);">新品</li>
<li class="normal" onclick="nTabs(this,2);">促消</li>
</ul>
</div>
<!-- 内容开始 -->
<div class="TabContent">
<div id="myTab1_Content0"> 000 </div>
<div id="myTab1_Content1" class="none"> 111 </div>
<div id="myTab1_Content2" class="none"> 222 </div>
</div>
</div>
<!-- 选项卡1结束 -->
</div>
</body>
</html>
未命名.jpg
(5.51 KB)