标题:跪求高手给予指导
取消只看楼主
countryroad
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2008-1-23
结帖率:100%
 问题点数:0 回复次数:0 
跪求高手给予指导
小弟初学HTML语言,很多程序看不明白.
以下这段程序看得一头雾水,望各位大哥大姐给予注释,指导.
小弟不胜感激!
<style type="text/css">
 /* common styling */

 /* Set up the default font and ovrall size to include image */
 body {
    background: #fff;
    font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
    font-size: 12px;
}
#tabs {width:400px; text-align:center; background: url(images/icon/top.gif); margin:30px 0

0 175px; position:absolute; z-index:500;}
#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}
#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}
#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid

#9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px;

color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}

#tabs ul li a.one {background:#fff url(images/icon/world.jpg) top left no-repeat;}
#tabs ul li a.two {background:#fff url(images/icon/key.jpg) top left no-repeat;}
#tabs ul li a.three {background:#fff url(images/icon/mail.jpg) top left no-repeat;}
#tabs ul li a.four {background:#fff url(images/icon/search.jpg) top left no-repeat;}
#tabs ul li a.five {background:#fff url(images/icon/profile.jpg) top left no-repeat;}
#tabs ul li a.six {background:#fff url(images/icon/draw.jpg) top left no-repeat;}
#tabs ul li div {display:none;}

#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin

-bottom:0;}

#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px;

cursor:default;}

* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff;

height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px;

cursor:default;}

#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px;

width:381px; height:118px; border-bottom:3px solid #fff;}
#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px;

top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}

#tabs ul li a:hover div.tab_left,
#tabs ul li:hover div.tab_left
{background:#fff url(images/icon/tab_left.gif);}

#tabs ul li a:hover div.tab_center,
#tabs ul li:hover div.tab_center
{background:#fff url(images/icon/tab_center.gif);}

#tabs ul li a:hover div.tab_right,
#tabs ul li:hover div.tab_right
{background:#fff url(images/icon/tab_right.gif);}

.clear {clear:both; height:0; line-height:0; overflow:hidden;}
#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url

(images/icon/bottom.gif) bottom;}
#tabs div h5 {font-size:12px; margin-bottom:5px;}
#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:2px;}
#tabs div a img {border:0;}
#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}
#tabs div a.unlock {background:url(images/icon/unlock.gif); display:block; width:30px;

height:30px; margin:0 auto;}
#tabs div a:hover.unlock img {visibility:hidden;}
#tabs p.bold {color:#069; padding-top:5px;}
* html #tabs p.fire {margin-top:-15px;}
* html #tabs form {margin-top:-20px;}
#tabs p.buttons {text-align:center;}
</style>
搜索更多相关主题的帖子: tabs margin background 
2008-01-23 10:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-198423-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.006427 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved