效果體驗:
http://hovertree.com/texiao/css/24/
源碼下載:
http://hovertree.com/h/bjaf/hardklps.htm
代碼如下:<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>純HTML+CSS類似微軟中國首頁的豎向選項卡_何問起</title><base target="_blank" />
<style type="text/css">
body {
background: #fff;
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
font-size: 12px;
}
/* hovertreepage */
#hovertreepage ul#outer li div p {
font-size: 12px;
line-height: 16px;
margin: 5px 0 15px 0;
}
#hovertreepage ul#outer li div h2 {
line-height: 1em;
color: #585;
font-size: 1.5em;
font-weight: normal;
margin-top: 0;
font-family: verdana, sans-serif;
}
#hovertreepage ul#outer li div h3 {
line-height: 1em;
color: #66a;
font-size: 1.2em;
font-weight: normal;
margin-top: 0;
}
#hovertreepage ul#outer li div h3.clear {
clear: left;
}
#hovertreepage {
width: 650px;
height: 450px;
border: 1px solid #aaa;
background: #fff;
position: relative;
z-index: 500;
overflow: hidden;
text-align: left;
margin: 40px auto;
}
#hovertreepage table {
border-collapse: collapse;
margin: -1px;
}
#hovertreepage ul#outer {
background: transparent;
padding: 0;
margin: 0;
list-style: none;
}
#hovertreepage ul#outer li.page {
display: inline;
}
/* needed for IE to function correctly */
#hovertreepage ul#outer li.page a.menuitem {
text-decoration: none;
}
#hovertreepage ul#outer li.page i {
position: absolute;
display: block;
height: 25px;
right: 500px;
background: transparent;
cursor: default;
z-index: 100;
text-align: right;
text-decoration: none;
color: #080;
font-style: normal;
cursor: pointer;
}
#hovertreepage ul#outer li.p1 i {
top: 30px;
}
#hovertreepage ul#outer li.p2 i {
top: 55px;
}
#hovertreepage ul#outer li.p3 i {
top: 80px;
}
#hovertreepage ul#outer li.p4 i {
top: 105px;
}
#hovertreepage ul#outer li.p5 i {
top: 130px;
}
#hovertreepage ul#outer li.page div {
display: block;
width: 600px;
height: 400px;
padding: 25px;
font-weight: normal;
color: #444;
}
#hovertreepage ul#outer li.p1 div {
background: #fff url(page1_back.jpg);
}
#hovertreepage ul#outer li.p2 div {
background: #fff url(page2_back.jpg);
}
#hovertreepage ul#outer li.p3 div {
background: #fff url(page3_back.jpg);
}
#hovertreepage ul#outer li.p4 div {
background: #fff url(page4_back.jpg);
}
#hovertreepage ul#outer li.p5 div {
background: #fff url(page5_back.jpg);
}
#hovertreepage ul#outer li div img {
border: 1px solid #888;
float: right;
margin: 0 10px 5px 0;
}
#hovertreepage ul#outer li div p.big {
line-height: 1em;
color: #004;
font-size: 1.5em;
}
#hovertreepage ul#outer li div a {
color: #00c;
text-decoration: underline;
}
#hovertreepage ul#outer li div em {
display: block;
width: 190px;
height: 230px;
float: left;
background: transparent url(current.gif) no-repeat;
margin-right: 10px;
}
#hovertreepage ul#outer li.p1 div em {
background-position: 21px 0;
}
#hovertreepage ul#outer li.p2 div em {
background-position: 21px 25px;
}
#hovertreepage ul#outer li.p3 div em {
background-position: 21px 50px;
}
#hovertreepage ul#outer li.p4 div em {
background-position: 21px 75px;
}
#hovertreepage ul#outer li.p5 div em {
background-position: 21px 100px;
}
#hovertreepage ul#outer li.page div a:hover {
text-decoration: none;
}
#hovertreepage ul#outer li.page a:hover {
white-space: normal;
}
/* for IE6 */
#hovertreepage ul#outer :hover div {
position: absolute;
left: 0;
top: 0;
}
#hovertreepage ul#outer a:hover i {
color: #66a;
font-weight: bold;
}
/* for IE6 */
#hovertreepage ul#outer :hover a i {
color: #66a;
font-weight: bold;
}
#hovertreepage ul#outer div ul li {
line-height: 20px;
font-size: 0.9em;
color: #256;
list-style-type: disc;
}
#hovertreepage ul#outer div ul li a {
line-height: 20px;
font-size: 1.1em;
color: #c00;
}
#hovertreepage ul#outer div dl dd {
line-height: 20px;
font-size: 1.1em;
color: #448;
}
#hovertreepage ul#outer div dl dt {
line-height: 30px;
font-size: 1.3em;
color: #333;
}
</style>
</head>
<body>
<div id="hovertreepage">
<ul id="outer">
<li class="page p1">
<a href="#nogo" class="menuitem"><i>產品</i><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div>
<em></em>
<img src="bags.jpg" alt="" />
<h2>產品</h2>
<h3>何問起</h3>
<ul>
<li><a href="http://hovertree.com/menu/texiao/">網頁特效</a></li>
<li><a href="http://hovertree.com/h/bjaf/ati6k7yk.htm">jQuery下載</a></li>
<li><a href="http://hwq2.com">hwq2.com</a></li>
</ul>
<h3 class="clear">產品信息</h3>
<p>
提供jQuery特效,Javascript實例,Bootstrap,網址收藏夾,ASP.NET源碼等內容資料,歡迎訪問!
</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="page p2">
<a href="#nogo" class="menuitem"><i>桃樹開花</i><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div>
<em></em>
<img src="service.jpg" alt="" />
<h2>桃樹開花</h2>
<h3>摘桃</h3>
<ul>
<li><a href="http://hovertree.com/h/bjaf/taoshu.htm">查看代碼</a><br />css實現的桃子擺動動畫。</li>
<li><a href="http://hovertree.com/texiao/css3/26/">鏈接標題</a><br />鏈接說明內容</li>
<li><a href="http://hovertree.com/h/bjaf/jldgxqd6.htm">打字機動畫</a><br />jquery多種方式的打字機動畫效果</li>
<li><a href="http://hovertree.com/h/bjaf/dianzishu.htm">翻頁電子書</a><br />jQuery翻頁電子書</li>
</ul>
<h3 class="clear">桃樹開花</h3>
<p>鄱陽湖是世界上最大的鳥類保護區,“鄱陽湖畔鳥天堂,鹬鹳低飛鶴鹭翔;野鴨尋魚鷗擊水,叢叢蘆葦雁鹄藏”,每年秋末冬初,有成千上萬只候鳥,從俄羅斯西伯利亞、蒙古、日本、朝鮮以及中國東北、西北等地來此越冬。</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="page p3">
<a href="#nogo" class="menuitem"><i>奔跑吧兄弟</i><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div>
<em></em>
<img src="news.jpg" alt="" />
<h2>奔跑吧兄弟</h2>
<h3>Fusce fermentum</h3>
<ul>
<li><a href="http://hovertree.com/h/bjaf/5f5eiagg.htm">查看效果。<br />Malesuada fames ac turpis egestas.</a></li>
<li>Vivamus dignissim tincidunt quam.</li>
<li>Nullam varius vestibulum mauris.</li>
<li>Curabitur faucibus varius dui.<br /><a href="#nogo3">Cras suscipit viverra felis. Nullam diam.</a></li>
<li>Vivamus convallis volutpat nunc.</li>
<li>Sed porttitor dui vel nunc.</li>
</ul>
<h3 class="clear">奔跑吧兄弟</h3>
<p>Nam porttitor congue diam. Donec in mi. Fusce ac neque. Donec quis justo. Nunc non justo quis augue sagittis volutpat. Etiam quis ligula commodo augue tempus pulvinar. Morbi ante arcu, aliquam ut, consequat et, consequat sed, sem. Cras suscipit viverra felis. Nullam diam. Duis eros purus, ornare sit amet, viverra sed, laoreet ac, pede.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="page p4">
<a href="http://hovertree.com/h/bjaf/5f5eiagg.htm" class="menuitem"><i>效果查看</i><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div>
<em></em>
<img src="press.jpg" alt="" />
<h2>Press Release</h2>
<h3>Quisque varius</h3>
<dl>
<dt>11th June 2007</dt>
<dd>In feugiat scelerisque pede.</dd>
<dd>Morbi iaculis eleifend ante.</dd>
<dd>Maecenas fringilla scelerisque erat.</dd>
<dd>Nam <a href="nogo5">accumsan</a> egestas eros.</dd>
</dl>
<h3 class="clear">News and Information</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse vitae sem. <a href="nogo5">Class aptent taciti</a> sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Donec ut nunc. <a href="nogo5">In dictum, dui nec vehicula vehicula</a>, neque leo faucibus est, porta vehicula nisi odio eu tellus.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="page p5">
<a href="#nogo" class="menuitem"><i>Contact us</i><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div>
<em></em>
<img src="contact.jpg" alt="" />
<h2>Contact us</h2>
<h3>Donec condimentum</h3>
<ul>
<li>Phasellus vitae arcu et mauris facilisis ornare.</li>
<li>Nullam ultrices <a href="#nogo5">urna nec erat</a> facilisis faucibus.</li>
<li>Ut cursus posuere eros.</li>
<li>Vestibulum <a href="#nogo5">dapibus</a> tortor eu nisl.</li>
<li>Proin ac mauris non lacus pharetra aliquet.</li>
</ul>
<h3 class="clear">Contact Details</h3>
<p><a href="http://hovertree.com">首頁</a> <a href="http://hovertree.com/texiao/">特效</a> <a href="http://hovertree.com/h/bjaf/30dq3r8y.htm">原文</a></p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
</div>
</body>
</html>