こんにちは私はenquire.jsの使い方に頭を悩ませようとしています。.mouseenter(function()を使用して関数.showと.hideをアクティブにします。しかし、タブレットとモバイルで.mouseenterを表示すると冗長になります。画面の幅が私のに達すると、jqueryにdivを表示するように指示します。メディアクエリ。
@media only screen and (min-width : 769px ) and (max-width : 959px)
以下に例を示します。
これが私のjqueryです:
$(".slidingDiv_how").hide();
$(".show_sub").show();
$('.show_sub').mouseenter(function(){
$(".slidingDiv_how").slideDown();
return false;
});
});
これが私のhtmlです
<div class"right-wrapper"><!--How wrapper -->
<div id="how_we" class="show_sub1" style="cursor: hand; cursor: pointer;">
<h1><a href="#">How We Work:</a></h1>
<div class="slidingDiv_how">
<p class="show_sub1">The heat of the vertical rays of the sun was fast making our horrible prisons unbearable, so that after passing a low divide, and entering a sheltering forest, we finally.</br>
www.dochouse.co.uk</p>
</div> <!-- end slidingdiv2 -->
私はドキュメントを読みましたが、どの部分を置くべきか本当にわかりません。どんな助けでも大歓迎です。