snkeyu 发表于 2008-12-15 01:30:55

CSS另类红色导航菜单

<!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
.invertedshiftdown{
padding: 0;
width: 100%;
border-top: 5px solid #D10000; /*Red color theme*/
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}

.invertedshiftdown ul{
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}

.invertedshiftdown li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}

.invertedshiftdown a{
float: left;
display: block;
font: bold 12px Arial;
color: black;
text-decoration: none;
margin: 0 1px 0 0; /*Margin between each menu item*/
padding: 5px 10px 9px 10px; /*Padding within each menu item*/
background-color: white; /*Default menu color*/

/*BELOW 4 LINES add rounded bottom corners to each menu item.
ONLY WORKS IN FIREFOX AND FUTURE CSS3 CAPABLE BROWSERS
REMOVE IF DESIRED*/
-moz-border-radius-bottomleft: 5px;
border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-right-radius: 5px;
}

.invertedshiftdown a:hover{
background-color: #D10000; /*Red color theme*/
padding-top: 9px; /*Flip default padding-top value with padding-bottom */
padding-bottom: 5px; /*Flip default padding-bottom value with padding-top*/
color: white;
}

.invertedshiftdown .current a{ /** currently selected menu item **/
background-color: #D10000; /*Red color theme*/
padding-top: 9px; /*Flip default padding-top value with padding-bottom */
padding-bottom: 5px; /*Flip default padding-bottom value with padding-top*/
color: white;
}

#myform{ /*CSS for sample search box. Remove if desired */
float: right;
margin: 0;
margin-top: 2px;
padding: 0;
}

#myform .textinput{
width: 190px;
border: 1px solid gray;
}

#myform .submit{
font: normal 12px Verdana;
height: 22px;
border: 1px solid #D10000;
background-color: black;
color: white;
}</style>
<div class="invertedshiftdown">
<ul>
    <li><a title="Home" href="http://www.sincol.net/">HOME</a> </li>
    <li><a title="New" href="http://www.sincol.net/photo/bz/index.html">壁纸</a> </li>
    <li class="current"><a title="Revised" href="http://www.sincol.net/photo/png/index.html">PNG</a> </li>
    <li><a title="Tools" href="http://www.sincol.net/photo/psd/index.html">psd</a> </li>
    <li><a title="CSS" href="http://www.sincol.net/photo/ai/index.html">矢量</a> </li>
    <li><a title="DHTML Forums" href="http://www.uifans.net/share/">社区</a> </li>
</ul>
<form id="myform">
    <input class="textinput" /> <input class="submit" type="submit" value="Find" />
</form>
</div>
<br style="CLEAR: both" />

pdlyq 发表于 2011-9-21 18:18:46

{:comiis_019:}

贝西婚庆 发表于 2013-4-16 19:23:30

呵呵可惜我的是粉色的哦

批发辅料 发表于 2013-11-3 16:33:58

:(:(增加体力!!!!!!
页: [1]
查看完整版本: CSS另类红色导航菜单