#navcont {
/*background: #333333; /*导航栏底色
width: 100%;*/
width: auto;
margin: 0px auto;
padding:0px;
background-image: -moz-linear-gradient(top, #191919, #333333);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0,#333333 ), color-stop(1,#191919));
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#191919', GradientType='0');
/*background: #333333; /*导航栏底色
width: 100%;*/
width: auto;
margin: 0px auto;
padding:0px;
background-image: -moz-linear-gradient(top, #191919, #333333);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0,#333333 ), color-stop(1,#191919));
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#191919', GradientType='0');
}
上面是简单的导航栏渐变色的代码