<html>
<head>
<style type="text/css">
body{
? ? ? ? margin: 0;
? ? ? ? padding: 0;
}
.tabs{
? ? ? ? width: 100%;
? ? ? ? margin: 0;
? ? ? ? padding: 4px 0 0 4px ;
? ? ? ? list-style: none;
? ? ? ? background: #fff url(img02/nav_gb2.gif) repeat-x bottom left;
? ? ? ? font-size: 12px;
? ? ? ? border-bottom: none;
}
.tabs li{
? ? ? ? float: left;
? ? ? ? margin: 0;
? ? ? ? padding: 0;
? ? ? ? font-family: "宋体", sans-serif;
}
.tabs a{
? ? ? ? float: left;
? ? ? ? display: block;
? ? ? ? margin: 0 1px 0 0;
? ? ? ? padding: 4px 8px;
? ? ? ? color: #333;
? ? ? ? text-decoration: none;
? ? ? ? border: 1px solid #d2d2d2;
? ? ? ? border-bottom: none;
? ? ? ? background: #fff;
}
.tabs a:hover , body .up a{
? ? ? ? color: #333;
? ? ? ? padding-bottom: 5px;
? ? ? ? border-color: #d2d2d2;
? ? ? ? background: #f1f1f1;
}
.tab{
? ? ? ? width: 100%;
? ? ? ? margin: 0;
? ? ? ? padding: 4px 0 0 4px;
? ? ? ? border: 1px solid #d2d2d2;
? ? ? ? border-top: none;
? ? ? ? background: #f1f1f1;
}
.tab li{
? ? ? ? float: left;
? ? ? ? padding: 6px;
}
.tab2{
? ? ? ? width: 100%;
? ? ? ? margin: 0;
? ? ? ? padding: 4px 0 0 4px;
? ? ? ? border: 1px solid #d2d2d2;
? ? ? ? border-top: none;
? ? ? ? background: #f1f1f1;
? ? ? ? display:??none;
}
.tab2 li{
? ? ? ? float: left;
? ? ? ? padding: 6px;
}
</style>
<script type="text/javascript">
function showtab(n,count){
? ? ? ? for(var i=1;i<=count;i++){
? ? ? ? ? ? ? ? if (i==n){? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? getObject('tab'+i).style.display='block';
? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? else {
? ? ? ? ? ? ? ? ? ? ? ? getObject('tab'+i).style.display='none';
? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? }
}
function getObject(objectId) {
? ? if(document.getElementById && document.getElementById(objectId)) {
? ? ? ? return document.getElementById(objectId);
? ? } else if (document.all && document.all(objectId)) {
? ? ? ? return document.all(objectId);
? ? } else if (document.layers && document.layers[objectId]) {
? ? ? ? return document.layers[objectId];
? ? } else {
? ? ? ? return false;
? ? }
}
</script>
</head>
<body>
<ul class="tabs">
<li class="up"><a href="#" rel="external" onmousemove="showtab(1,3);" id="a1">> XHTML学习</a></li>
<li><a href="#" rel="external" onmousemove="showtab(2,3);" id="a2">> 网站设计</a></li>
<li><a href="#" rel="external" onmousemove="showtab(3,3);" id="a3">> 我的收藏</a></li>
</ul>
<div id="tab1" class="tab">
? ? ? ? <ul>
? ? ? ? ? ? ? ? <li>1.dkjldfld</li>
? ? ? ? ? ? ? ? <li>2.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>3.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>4.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>5.dkflskdvs</li>
? ? ? ? </ul>
</div>
<div id="tab2" class="tab2">
? ? ? ? <ul>
? ? ? ? ? ? ? ? <li>5.dkflskdvs</li>
? ? ? ? ? ? ? ? <li>4.dkjldfld</li>
? ? ? ? ? ? ? ? <li>3.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>2.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>1.dkfdlsld</li>? ? ? ? ? ? ? ?
? ? ? ? </ul>
</div>
<div id="tab3" class="tab2">
? ? ? ? <ol>
? ? ? ? ? ? ? ? <li>#.dkflskdvs</li>
? ? ? ? ? ? ? ? <li>#.dkjldfld</li>
? ? ? ? ? ? ? ? <li>#.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>#.dkfdlsld</li>
? ? ? ? ? ? ? ? <li>#.dkfdlsld</li>? ? ? ? ? ? ? ?
? ? ? ? </ol>
</div>
</body>
</html>
详细解决方案
html兑现标签页功能
热度:223 发布时间:2012-07-23 09:42:19.0
相关解决方案
- 访问Tomcat的url的时候如何自动调用index.html
- The requested resource (/webtest/servlet/hello.html) is not availabl 帮忙解决解决方法
- JSP 页面乱码 页面起首已设置 contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
- html js不运行有关问题
- 办公自动化系统——议程管理(用jsp+servlet+js+html+jdbc)怎样实现
- <html:text>property的有关问题
- 关于<html:text>相关的有关问题
- Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个解决方案
- 简单计算器(html+js),该怎么解决
- HTML 小疑点,哪位高手解决 给哪位高手分
- 嵌入JSP中的CSS显示效果和在 HTML 中的不一样.为什么.该怎么解决
- struts1 中<html:checkbox>标签的value值怎么动态赋值
- 新人求问,J2EE方向,html,css,javascript,vml要学到什么程度?解决思路
- :前台和后台开发有啥区别?还有css、html、ajax、js、jquery都有什么区别
- struts <html:file> 怎么让前面的框消失,先谢过了
- =Html.TextAreaFor的文本区域大小如何设置
- 正则表达式 提取 html 标签的内容,该如何解决
- @Html.CkEditor,该怎么处理
- string msg = (string)html.ViewData["Message"];该如何处理
- html password editbox 编码有关问题
- @Html.TextBoxFor(a => a.Title 上边有红线,说异常
- 关于伪静态,怎么配置.html
- MVC中,Html.DropDownListFor怎么绑定数据
- 为何FCKeditor会在自动生成<html>标签呢
- MVC 中得 Html.ActionLink 怎么linkText显示图片标记
- <DOCTYPE html. 这个是有什么用?该如何处理
- asp.net C# 将网页变换为.html 格式
- @Html.ActionLink 基础解决办法
- 怎么引用一个 Html 控件对象
- HTML DOM setTimeout() 跟 setInterval() 的区别 ?———急——