3

誰か助けてください。すべてのトピックを確認しましたが、コードの何が問題になっているのかわかりません。

これは以下のメニュー、すべてのCSSです。

また、修正されなかった以前の投稿を反映するようにヘッダーを変更しました。

/* =Menu
-------------------------------------------------------------- */

#access {
background: #240E04; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#471B07, #0C0401);
background: -o-linear-gradient(#471B07, #0C0401);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#471B07), to(#0C0401));  /* older webkit syntax */
background: -webkit-linear-gradient(#471B07, #0C0401);
font-family: TradeGothicCondensedNo18;
clear: both;
display: block;
float: left;
margin-left: 10px;
width:97.5%;
}
#access ul {
font-size: 18px;
text-transform: uppercase;
list-style: none;
margin: 0 0 0 0em;
padding-left: 0px;
padding-top: -50px;
}
#access li {
float: left;
position: relative;
}
#access a {
color: #eee;
display: block;
line-height: 2em;
padding: 0 0.8em;
text-decoration: none;
}
#access ul ul {
-moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
box-shadow: 0 3px 3px rgba(0,0,0,0.2);
display: none;
float: left;
margin: 0;
position: absolute;
top: 2em;
left: 0;
width: 220px;
z-index: 99999;
}
#access ul ul ul {
left: 100%;
top: 0;
}
#access ul ul a {
background: #170802;
border-bottom: 1px dotted #ddd;
color: #fff;
font-size: 18px;
font-weight: normal;
height: auto;
line-height: 1.4em;
padding: 5px 5px;
width: 350px;
border: solid;
border-width: thin;
border-color: #170802;
 }
#access li:hover > a,
#access ul ul :hover > a,
#access a:focus {
background: #7A330E;
}
#access li:hover > a,
#access a:focus {
background: #f9f9f9; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#7A330E, #170802);
background: -o-linear-gradient(#7A330E, #170802);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7A330E), to(#170802)); /* Older webkit syntax */
background: -webkit-linear-gradient(#7A330E, #170802);
color: #ffffff;
 }
#access ul li:hover > ul {
display: block;
}
#access .current-menu-item > a,
#access .current-menu-ancestor > a,
#access .current_page_item > a,
#access .current_page_ancestor > a {
font-weight: bold;
}

#footer {
background-color: #000000;
width: 97.5%;
height: 20px;
float: left;
clear: both;
margin-left: 10px;
margin-top: -0px;
font-family: 'Arial';
line-height: normal; 
font-size: 11px;
text-align: center;
color: #ffffff;
padding-top: 0.5%;
}
4

3 に答える 3

0

こんにちは、あなたのhtml code

navにタグを変更div

このように

着替える

    <nav role="navigation" id="access">
// here some code of your html
</nav>

これ

    <div role="navigation" id="access">
// here some code of your html
</div>

このnavタグはサポートされていないため、このタグie8を使用しているため、サポートされていますHTML 4.0HTML5

于 2012-11-02T09:11:09.757 に答える
0

nav タグは ie8 以下のバージョンではサポートされていません

nav タグを div タグに置き換える必要があります

お気に入り

<nav>
Your Menu code here ...
</nav>

それがうまくいくことを願っています

于 2015-01-16T11:34:25.493 に答える