/*URL: */#thicktabs{
margin: 0;
padding: 0;
float: left;
font: bold ">

CSS制作的菜单

80酷酷网    80kuku.com

  css|菜单

这是菜单中要用的图片

:

<style type="text/css">

/*Credits: Dynamic Drive Library */
/*URL: */

#thicktabs{
margin: 0;
padding: 0;
float: left;
font: bold 13px Tahoma;
}

#thicktabs li{
display: inline;
}

#thicktabs li a{
float: left;
color: black;
padding: 8px 11px; /*padding of tabs*/
text-decoration: none;
background: transparent url(media/pinkbg.gif) top right no-repeat;
border-top: 1px solid #d3bdbe; /*top border style*/
border-bottom: 3px solid #ffa1a3; /*thick bottom border below tabs*/
}

#thicktabs li a#leftmostitem{ /*Extra for left most menu item*/
border-left: 1px solid #d3bdbe; /*left border style*/
}

#thicktabs li a#rightmostitem{ /*Extra for right most menu item*/
border-right: 1px solid #d3bdbe; /*right border style*/
background-position: top left; /*Position background image to the left instead of default right, to hide indented underline for this link*/
}

#thicktabs li a:visited{
color: black;
}

#thicktabs li a:hover{
color: black;
background-image: url(media/pinkbgover.gif); /*background image swap on hover*/
}

</style>

<!--[if IE]>
<style type="text/css">
p.iepara{ /*Conditional - For IE (inc IE7), create 1em spacing between menu and paragraph that follows*/
padding-top: 1em;
}
</style>
<![endif]-->

HTML:

<ul id="thicktabs">
<li><a id="leftmostitem" href="http://www.dynamicdrive.com/">Home</a></li>
<li><a href="'>http://www.dynamicdrive.com/style/"> Codes</a></li>
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
<li><a href=" Tools</a></li>
<li><a href="http://www.javascriptkit.com/"></a></li>
<li><a href="http://www.cssdrive.com">Gallery</a></li>
</ul>
<br left" />
<p class="iepara">Paragraph that follows...</p>

如果上面的代码不正确,可以点此下载:



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: