2017-06-08 6 views
0

私は、サイドバーのナビゲーションメニューhereを作成しました。リンクをクリックすると、矩形/三角形が残っています.... なぜそれが起こっているのか?クリック後にサイドバーのメニュー三角形のポインタが表示される

ここで私はポインタを取得します。

ul.faq_questions li.active:after, ul.faq_questions li:hover:after { 
content: ""; 
position: absolute; 
width: 10px; 
height: 10px; 
background:#5d3c95; 
-webkit-transform: rotate(-45deg); 
right: -5px; 
top: 40%; 
} 
+1

上記のコードからli.active ::afterを削除するか、アクティブなliの背景色を変更してください –

答えて

2

削除...

または

をこの次のコード

CSS

ul.faq_questions li.active 
{ 
    background-color: #5d3c95; 
    color:#fff; 
} 

ul.faq_questions li.active:after, ul.faq_questions li:hover:after { 
    content: ""; 
    position: absolute; 
    width: 10px; 
    height: 10px; 
    background:#5d3c95; 
    -webkit-transform: rotate(-45deg); 
    right: -5px; 
    top: 40%; 
} 

この作品の希望を追加

ul.faq_questions li.active:after 

現在のコード

+0

ありがとうございました!!!ワーキング – RoyBarOn

関連する問題