-1
このメニューは、OperaとInternet Explorerで背景が消え、エクスプローラとの互換性を向上させるためのヒントが素晴らしいことを除いて、うまくいきます。Internet ExplorerとOperaで背景色が表示されない
また、あなたがそれに精通している場合は、基礎フレームワークからfoundation.css
を使用しています。
あなたがアクションでそれを見たい場合:http://www.pink-realty.com
.elephant-menu {
width: 100% !important;
height: 40px;
z-index: 50 !important;
opacity: 1;
background: url(../images/misc/button-gloss.png) repeat-x 0 -34px, -moz-linear- gradient(top, rgba(255,255,255,.4) 0%, transparent 100%) #e51d9b;
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.5);
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.5);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.28);
background: url(../images/misc/button-gloss.png) repeat-x 0 -34px, -webkit- gradient(linear, left top, left bottom, from(rgba(255,255,255,.4)), to(transparent)) #e51d9b;
border: 1px solid rgba(229, 33, 155, 1);
-webkit-transition: background-color .15s ease-in-out;
-moz-transition: background-color .15s ease-in-out;
-o-transition: background-color .15s ease-in-out;
text-transform: capitalize;
font: 16px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
margin-left: 0;
margin-right: 0;
}
.elephant-menu li {
list-style-type: none !important;
text-transform: capitalize !important;
font-weight: bold;
color: white !important;
text-decoration: none !important;
float: left !important;
position: relative !important;
font-size: 16px;
padding: 11px 5px 10px;
display: block;
}
.elephant-menu li:hover {
color: white;
background-color: #9c126f;
-moz-box-shadow: inset 0 2px 5px black;
-webkit-box-shadow: inset 0 2px 5px black;
box-shadow: inset 0 2px 5px black;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.elephant-menu a {
color: white;
text-decoration: none;
}
具体的には、どのような「背景」について話していますか?あなたのサイトは白い背景しか持たないようです。あなたの質問にすべての関連コードを投稿してください。リンクは、コードを投稿する必要性を排除するのではなく、問題を示すためにのみ使用する必要があります。 – Sparky
のメニューの背景。 –
再度、該当するHTMLコードを質問に投稿してください。それ以外の場合、あなたのリンクが死んだり修正されたりすると、この質問は将来の読者にとって役に立たないでしょう。 – Sparky