我使用<select>
来创建选择过滤器。我的问题是我的jss的css接管了<select>
的css的常规样式。如何将选择显示作为HTML中的常规<select>
?
<div id="mutualFriends">
<select class="sortBy" name="sortBy" data-url="/threebaysover/profile/sortFollowers">
<option value="">Sort By</option>
<option value="new" selected="selected">Newest</option>
<option value="old">Oldest</option>
<option value="firstName_asc">First Name a-z</option>
<option value="firstName_desc">First Name z-a</option>
<option value="lastName_asc">Last Name a-z</option>
<option value="lastName_desc">Last Name z-a</option>
<option value="message">Recent message</option>
<option value="company_asc">Company Name a-z</option>
<option value="company_desc">Company Name z-a</option>
</select>
<div id="mutual">
答案 0 :(得分:1)
当您不希望jQuery UI重新元素时,将data-role="none"
添加到<select>
元素。见How to "turn off" jQuery Mobile's styling of <select> drop downs?