<li>
のアクティブ<li>
の上にあるスタイルborder-bottom : none;
を追加するにはどうすればよいですか?jQuery:アクティブなものの上にliを選択
<ul>
<li>text</li> <!--this li must get the border-bottom : none then.-->
<li class="active">text</li>
<li>text</li>
</ul>
<li>
のアクティブ<li>
の上にあるスタイルborder-bottom : none;
を追加するにはどうすればよいですか?jQuery:アクティブなものの上にliを選択
<ul>
<li>text</li> <!--this li must get the border-bottom : none then.-->
<li class="active">text</li>
<li>text</li>
</ul>
$('.active').prev('li').css('border-bottom','none');
$('li.active').prev().css('border-bottom', 'none');
あなたは)(jQueryの兄弟を使用することを望んでいます。これを読むと、おそらくあなたを助けるでしょう:http://api.jquery.com/siblings/
それは働いていません。それはjqueryニュースローテータのためのものです。だからあなたがマウスを使って項目を変更する必要がある場合は、変更する必要があります。 ここに画像があります。どういう意味ですか。 http://www.dreamwire.nl/klanten/test.jpg – Maanstraat
あなたはホバーを意味しますか?もしそうなら、これと一緒に試してみてください:http://api.jquery.com/hover/ –
ええ、私は今働いています...しかし、私がulの外にいるとき、あなたは再び国境を見るでしょう! – Maanstraat