功能最完善,代码最简洁的选项卡代码(div+css)
<html>
<head>
<meta http-equiv="Content-Type" c />
<title>yahoo 标签</title>
<style type="text/css">
.tag_box { width:400px; height:126px; border:1px solid #B0BEC7; font:12px Arial, Helvetica, sans-serif; margin:50px; overflow:hidden}
.tag_box ul.menulist { width:402px; height:20px; overflow:hidden; margin:0}
.tag_box ul.menulist li { float:left; width:80px; text-align:center; height:19px; line-height:19px; background:url(tag_bg1.gif) repeat-x; position:relative; list-style-type:none}
.tag_box ul.menulist li a { color:#18397C; text-decoration:none; display:block; width:80px; background:url(tag_pipe.gif) no-repeat right 1px; border-bottom:1px solid #93A6B4;}
.tag_box ul.menulist li a:hover { text-decoration:underline;}
.tag_box ul.menulist li a.curMenu { background:url(tag_bg2.gif) repeat-x; border:1px solid #91A7B4; border-bottom:none; width:81px; position:absolute; color:#c63; font-weight:bold; left:-1px;top:-1px; height:21px; z-index:100}
.tag_box a.nonebg{ background:none;}
.tag_content { padding:6px; clear:both}
.tag_content img.bigConImg {border:1px solid #788a98; display:block; float:left}
.tag_content h5 {padding:2px 0px; margin:3px 6px; float:left; text-align:center; width:250px; background-color:#f7f7f7}
.tag_content a {text-decoration:none; color:#16387c}
.tag_content a:hover {text-decoration:underline;}
.tag_content p { margin:0; padding:2px 6px; float:left; line-height:18px}
.tag_content ul { margin:0px 3px 0px 3px; padding:0; float:left;}
.tag_content li { margin-left:20px; margin-bottom:3px}
</style>
<script type="text/javascript" src="http://www.happyshow.org/sample/20060926/switchTag.js"></script>
</head>
<body >
<div class="tag_box" id="tag_menu">
<ul class="menulist" id="menulist">
<li><a href="#" class="curMenu">Home</a></li>
<li><a href="#" >Software</a></li>
<li><a href="#" >roduct</a></li>
<li><a href="#" >AboutUs</a></li>
<li><a href="#" >ContactUs</a></li>
</ul>
<!--
-->
<div id="tag_content_1" class="tag_content">
<img src="http://www.happyshow.org/sample/20060926/images/tag_1_img.jpg" class="bigConImg">
<h5><a href="#">Supercars for the super-richHome</a></h5>
<p>For those who can drop six figures on a car, there's a fresh crop of shiny new 2007 models. » <a href="#">More</a></p>
</div>
<div id="tag_content_2" class="tag_content">
<img src="http://www.happyshow.org/sample/20060926/images/tag_2_img.jpg" class="bigConImg">
<h5><a href="#">Time and again Software</a></h5>
<ul>
<li><a href="#">Negroponte says U.S. not at higher risk</a></li>
<li><a href="#">U.S. to relax ban of liquids on planes</a></li>
<li><a href="#">U.S. pursues closer ties with Kazakhstan</a></li>
</ul>
</div>
<div id="tag_content_3" class="tag_content">
<img src="http://www.happyshow.org/sample/20060926/images/tag_3_img.jpg" class="bigConImg">
<h5><a href="#">Saints' storybook return Product</a></h5>
<p>In front of a sellout Superdome crowd, New Orleans rides the emotional wave to victory over Atlanta. » <a href="#">More</a></p>
</div>
<div id="tag_content_4" class="tag_content">
<img src="http://www.happyshow.org/sample/20060926/images/tag_4_img.jpg" class="bigConImg">
<h5><a href="#">Fall foliage alternatives AboutUs</a></h5>
<p>Dieting with a partner can be motivating, but presents unexpected challenges as well. » <a href="#">More</a></p>
</div>
<div id="tag_content_5" class="tag_content">
<img src="http://www.happyshow.org/sample/20060926/images/tag_5_img.jpg" class="bigConImg">
<h5><a href="#">10 ways to earn more pay ContactUs</a></h5>
<p>Why settle for your current salary and benefits when you can negotiate for more? » <a href="#">More</a></p>
</div>
</div>
修改:
<ul style="font:11px Tahoma">
<li>每隔一段时间自动循环切换Tag (修改于 2006-10-10)</li>
</ul>
<div style="font:12px '宋体'; margin-top:50px">Writen By <a href="http://www.happyshow.org" target="_blank" >快乐笛子</a></div>
</body>
</html>
转载于:https://www.cnblogs.com/liufei88866/archive/2007/12/27/1017348.html
功能最完善,代码最简洁的选项卡代码(div+css)相关推荐
- html5对代码自动排版,HTML5系列:通过JS+DIV+CSS排版布局实现选项卡效果
CSS介绍及布局特点 层叠样式表是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言. CSS目前最新版本为CSS3,是能够真正做到网页表现 ...
- Lombok!代码简洁神器还是代码“亚健康”元凶?
以下文章来源方志朋的博客,回复"666"获面试宝典 关于Lombok,DD是一个重度用户,从我编写的Spring Boot教程还是Spring Cloud教程中,都可以看到几乎每个 ...
- python操作三大主流数据库(6)python操作mysql⑥新闻管理后台功能的完善(增、ajax异步删除新闻、改、查)...
python操作mysql⑥新闻管理后台功能的完善(增.删.改.查) 安装表单验证 D:\python\python_mysql_redis_mongodb\version02>pip inst ...
- 一名Android程序员如何减少代码中该死的-if-else-嵌套,怎么让代码更简洁?
减少代码中该死的-if-else-嵌套,让代码更简洁! 写在前面 不知大家有没遇到过像"横放着的金字塔"一样的if else嵌套: if (true) {if (true) {if ...
- ES6技巧和窍门,使您的代码更简洁,更短且更易于阅读!
by Sam Williams 通过山姆·威廉姆斯 ES6技巧和窍门,使您的代码更简洁,更短且更易于阅读! (ES6 tips and tricks to make your code cleaner ...
- 为什么说 Compose 的声明式代码最简洁 ?Compose/React/Flutter/SwiftUI 语法对比
前言 Comopse 与 React.Flutter.SwiftUI 同属声明式 UI 框架,有着相同的设计理念和相似的实现原理,但是 Compose 的 API 设计要更加简洁.本文就这几个框架在代 ...
- python写的有道翻译代码_Python爬虫10行代码实现调用有道翻译,以及加入语音功能...
版本1.0 有道翻译这个项目很多人做过,但这个版本可能是你看过最简洁的,代码10行.我们把它命名为'版本1.0',后续版本可以直接引用这个代码 代码展示:import requests import ...
- python博弈矩阵分析器(功能不完善)
本文章包含以下内容: 编程实现一个策略式博弈模型的分析器,以博弈矩阵作为主要分析工具. 输入任意策略式博弈的博弈要素,分析器能够自动生成博弈矩阵,并图形化显示. 分析器能够根据生成的博弈矩阵,列出每个 ...
- 还在手写 Getter/Setter 方法吗?Lombok 让你的代码更简洁!
以下是文章大纲: Lombok 是什么? 官网:https://projectlombok.org/ Lombok 是一个 Java 库,使用 Lombok 可以通过简单的注解帮助我们消除 Java ...
最新文章
- Linux命令基础6-mkdir命令
- docker学习实践之路[第五站]mysql镜像应用
- JEECMS V3.0 常用标签使用说明
- 水凝胶 静电纺丝_吉林大学:静电纺丝与水凝胶制备技术结合构建高强度光控智能水凝胶驱动器...
- python3 分割字符串(多分割符)
- 科学计算机js代码,JavaScript实现科学计算器
- flask运行多个服务器,与Flask服务器同时运行while循环
- 查看本机所有请求_【松勤教育】Fiddler抓包-只抓APP的请求
- 再提“鸿蒙”,任正非说这是为物联网而生;硅谷公司年薪报告出炉,谷歌年薪居榜首;苹果CEO库克接班人浮出水面,苹果高层或大换血?...
- abaqus dat文件 matlab_提升Abaqus求解效率的七种武器
- 字符串匹配代码C语言,KMP字符串匹配算法C语言实现
- java 148. 排序链表
- 无法连接outlook邮箱服务器,OUTlOOK最近登不上
- 如何做好网站的安全性测试
- 变革管理书籍推荐:《组织变革必读12篇》
- 地图编辑器开发(一)
- 谷歌G1反抗iPhone
- 睡觉也在爬虫之二(爬一组图片)
- IPC----pipe的使用
- Postman接口自动化之postman脚本编写