2012-08-08 124 views
-1

我目前正试图实现一个导航菜单栏到我的网页。我在这SITE发现了一个伟大的。我目前遇到的问题是调整菜单栏的颜色,以便与页面中的颜色保持友好。我想要的东西,将突出,但将与我的网页。有些人可以帮助我适应友好的颜色与页面中的这些菜单栏吗?这是我的第一个EXAMPLE SITECSS导航菜单栏:突出,但页面友好的颜色

我尝试用灰色使用,但结果是相当难看:

enter image description here

devgrow.css

<style> 
#contentNav { padding: 40px 20px; font-family: "Helvetica Neue", Helvetica, Arial; font-size: 12px; line-height: 18px; color: #cfdae3; } 
    a { text-decoration: none; } 

    /* Dark Button CSS */ 
    .buttonNav { 
     outline: 0; 
     padding: 5px 12px; 
     display: block; 
     color: #9fa8b0; 
     font-weight: bold; 
     text-shadow: 1px 1px #1f272b; 
     border: 1px solid #1c252b; 
     border-radius: 3px; 
     -moz-border-radius: 3px; 
     -webkit-border-radius: 3px; 
     background: #232B30; /* old browsers */ 
     background: -moz-linear-gradient(top, #3D4850 3%, #313d45 4%, #232B30 100%); /* firefox */ 
     background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#3D4850), color-stop(4%,#313d45), color-stop(100%,#232B30)); /* webkit */ 
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3D4850', endColorstr='#232B30',GradientType=0); /* ie */ 
     box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* CSS3 */ 
     -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* Firefox */ 
     -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* Safari, Chrome */ 
    } 
    .buttonNav:hover { 
     color: #fff; 
     background: #4C5A64; /* old browsers */ 
     background: -moz-linear-gradient(top, #4C5A64 3%, #404F5A 4%, #2E3940 100%); /* firefox */ 
     background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#4C5A64), color-stop(4%,#404F5A), color-stop(100%,#2E3940)); /* webkit */ 
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4C5A64', endColorstr='#2E3940',GradientType=0); /* ie */ 
    } 
    .buttonNav:active { 
     background-position: 0 top; 
     position: relative; 
     top: 1px; 
     color: #fff; 
     padding: 6px 12px 4px; 
     background: #20282D; /* old browsers */ 
     background: -moz-linear-gradient(top, #20282D 3%, #252E34 51%, #222A30 100%); /* firefox */ 
     background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#20282D), color-stop(51%,#252E34), color-stop(100%,#222A30)); /* webkit */ 
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#20282D', endColorstr='#222A30',GradientType=0); /* ie */ 
     -moz-box-shadow: 1px 1px 1px rgba(255,255,255,0.1); /* Firefox */ 
     -webkit-box-shadow: 1px 1px 1px rgba(255,255,255,0.1); /* Safari, Chrome */ 
     box-shadow: 1px 1px 1px rgba(255,255,255,0.1); /* CSS3 */ 
    } 

    /* Other stuff: */ 
    .button-list { list-style: none; padding: 0; margin: 0; width: 100%; float: left; display: block; margin: 0 0 30px; } 
    .button-list li { float: left; margin: 0 10px 0 0; } 
    .button-list li.search { border-left: 1px solid #273137; padding-left: 18px; margin-left: 10px; position: relative; } 

    /* Search CSS: */ 
    .search-input { 
     padding: 0 5px 0 22px; 
     border: 2px solid #DADADA; 
     height: 30px; 
     font-size: 12px; 
     line-height: 30px; 
     border-radius: 25px; 
     -moz-border-radius: 25px; 
     -webkit-border-radius: 25px; 
     background: #FFF; /* old browsers */ 

    } 
    .search-input:focus {outline: none;} 
    .search-submit { 
     width: 13px; 
     height: 13px; 
     border: none; 
     background: url(mag-glass.png) no-repeat; 
     display: block; 
     position: absolute; 
     left: 26px; 
     top: 10px; 
     text-indent: -9999em; 
    } 

</style> 
+0

你问过如何改变CSS的颜色?或者你是否在征求使用什么颜色的意见? – ph33nyx 2012-08-08 20:50:58

+0

库勒很棒。以您的网站截图并用它来生成配色方案。 – sellmeadog 2012-08-08 21:00:28

回答

2

嘿我的朋友像其他人提到使用一个伟大的工具在http://kuler.adobe.com/。就像@sellmeadog所说的那样,用你的页面截图,然后继续播放你的颜色,使菜单栏与你的页面相匹配。如果你想让菜单栏变灰,那么你可以选择很多色调。如果遇到问题,请告诉我们。祝你好运!

+0

@charilieCodex谢谢!我正在寻找这样的东西。 – CodingWonders90 2012-08-08 21:35:38

+0

伟大的工具使用,但也许尝试使用一种颜色,除了灰色以外,在您的页面中突出。干杯。 – CodingWonders90 2012-08-08 21:37:29

1

你应该读了在网站的颜色模式。有很多在线指南,只是谷歌它。这是一个比大多数Web开发人员意识到的更重要的设计方面。

http://kuler.adobe.com/

您可能会发现这是很有帮助的,还有其他的类似服务。