http://jsbin.com/iZILATE/1/edit
我在 JQuery Mobile 的标题上有按钮。我只想在锚点显示在标题元素上时隐藏标题(h1),例如低分辨率或将视图从横向更改为纵向。
的HTML
<div class="header ui-bar-c" id="head1" data-role='header'>
<div id="gentags" class="ui-btn-left">
<a id="htmltag" data-role="button" data-inline="true" data-mini="true"><></></a>
<a id="csstag1" data-role="button" data-inline="true" data-mini="true">{}</a>
<a id="colon" data-role="button" data-inline="true" data-mini="true">:</a>
<a id="semicolon" data-role="button" data-inline="true" data-mini="true">;</a>
<a id="csstag2" data-role="button" data-inline="true" data-mini="true">:;</a>
<a id="jstag1" data-role="button" data-inline="true" data-mini="true">()</a>
<a id="jstag2" data-role="button" data-inline="true" data-mini="true">("")</a>
<a id="function" data-role="button" data-inline="true" data-mini="true">function(){}</a>
</div>
<h1>Text Website Name</h1>
<a href="#menupanel" data-role="button" data-icon="bars" data-iconpos="notext" data-inline="true" class="ui-btn-right">Bars</a>
</div>