私はすべてを試しましたが、iamはこれに固執しました。ul liにカーソルを合わせると、ululliが表示されます。私が何をする必要があるかを見ることができる人はいますか?私はulとliの宣言で何か間違ったことをしていると思いますが、それが唯一の問題であるかどうかはわかりません。
ちなみに、それは垂直メニュー/リストです
HTML:
<!--::::: SIDEBAR :::::-->
<div class="sidebar"> <!-- sidebar starts-->
<!-- menu starts-->
<div id="menu_nav">
<ul class="main">
<li class="selected"><a class="selected" href="#featured_work1">Wat is D-day</a></li>
<li><a href="#featured_work1">Waarom een invasie</a></li>
<li class="sub"><a href="#featured_work2">Het doel</a></li>
<ul >
<li><a href="#featured_work2">test1</a></li>
<li><a href="#featured_work2">test2</a></li>
<li><a href="#featured_work2">test3</a></li>
</ul>
<li><a href="#featured_work1">Operation Fortitude</a></li>
<li><a href="#featured_work2">Landingsplaats</a></li>
<li><a href="#featured_work1">Atlantische muur</a></li>
<li><a href="#featured_work2">Organisatie Todt</a></li>
<li><a href="#featured_work1">Batterijen</a></li>
<li><a href="#featured_work1">Luchtlandingen</a></li>
<li><a href="#featured_work2">Amfibische landingen</a></li>
<li><a href="#featured_work1">Tijdlijn</a></li>
<li><a href="#featured_work2">Na D-day</a></li>
<li><a href="#featured_work1">Cijfers</a></li>
<li><a href="#featured_work1">De Facties</a></li>
<li><a href="#featured_work1">Materiaal</a></li>
<li class="last"><a href="#featured_work2">Kaarten</a></li>
</ul>
</div><!-- menu ends -->
CSS:
/* A) SIDEBAR MENU ++++++++++++++++++++++++++++++++++++++++++++ */
#menu_nav { }
#menu_nav ul li { display: block; border-bottom: 1px dashed #555; }
#menu_nav ul ul li { display: block; border-bottom: 0px dashed #555; }
#menu_nav ul ul li a {
display: none;
border-bottom: 0px dashed #555;
padding: 7px 0 0px 58px;
font-size: 12px;
margin-top: -4px;
background: url(style/images/forward_light2.png) no-repeat;
background-position: 38px 7px;
color: #000;
text-align: left;
text-shadow: none;
-webkit-transition: all .2s ease;
-moz-transition: all .2s ease;
-ms-transition: all .2s ease;
-o-transition: all .2s ease;
transition: all .2s ease; }
#menu_nav ul li.sub a:hover ul { display: block; }
#menu_nav ul li a {
display: block;
padding: 7px 0 11px 40px;
font-size: 14px;
margin-top: 3px;
color: #9b2929;
text-align: left;
text-shadow: none;
background: url(style/images/arrow-right.png) no-repeat;
background-position: 0px 7px;
-webkit-transition: all .2s ease;
-moz-transition: all .2s ease;
-ms-transition: all .2s ease;
-o-transition: all .2s ease;
transition: all .2s ease; }
#menu_nav ul li.last { border-bottom: 0 solid #444; padding-bottom:10px; }
#menu_nav ul li a.selected {
display: block;
padding: 7px 0 11px 40px;
font-size: 14px;
color:#252525;
text-align: left;
text-shadow: none;
background: url(style/images/arrow-right-red.png) no-repeat;
background-position: 0px 7px;
}
#menu_nav ul li a:hover {
padding: 7px 0 11px 45px;
-moz-opacity: 0.85;
-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=85);
filter: alpha(opacity=85);
opacity: 0.85;
-khtml-opacity: 0.85;
text-decoration: none; }
#menu_nav ul ul li a:hover{
padding: 7px 0 0px 62px;
text-decoration: none; }