2013-01-22 136 views
0

是否有可能只在CSS下面的「下拉父菜單」鏈接(我不能修改下面的代碼)?WordPress的Pulldown菜單顏色變化CSS

的代碼行我想目標,這樣我可以在CSS中修改爲:

<li class="page_item page-item-8"><a href="http://www.kb8b.com/?page_id=8">Pulldown Menu Parent</a> 

頁項目8類是動態生成的,所以我不能依賴它。

完整的代碼是:

<div id="access" role="navigation"> 

<div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div> 

<div class="menu"> 
<ul> 

<li class="current_page_item"><a href="http://www.kb8b.com/" title="Home">Home</a></li> 

<li class="page_item page-item-19"><a href="http://www.kb8b.com/?page_id=19">Contact</a></li> 

<li class="page_item page-item-8"><a href="http://www.kb8b.com/?page_id=8">Pulldown Menu Parent</a> 

<ul class='children'> 
<li class="page_item page-item-9"><a href="http://www.kb8b.com/?page_id=9">Test Page 2</a></li> 
<li class="page_item page-item-11"><a href="http://www.kb8b.com/?page_id=11">Test Page 3</a></li> 
<li class="page_item page-item-13"><a href="http://www.kb8b.com/?page_id=13">Test Page 4</a></li> 
<li class="page_item page-item-15"><a href="http://www.kb8b.com/?page_id=15">Test Page 5</a></li> 
<li class="page_item page-item-17"><a href="http://www.kb8b.com/?page_id=17">Test Page 6</a></li> 
</ul> 

</li> 

</ul> 

</div> 

</div><!-- #access --> 

如何訪問上方的下拉菜單父鏈接在CSS?

回答