The mobile Select menu cannot modify the default style
Last Update:2015-06-15
Source: Internet
Author: User
<span id="Label3"></p><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)"><select></code> <option value = "volvo" >Volvo</option> <option value = "saab" >Saab</option> < Option value= "opel" >Opel</option> <option value= "audi" >Audi</option><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)"></select></code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)">但是在移动端,设置的样式会不起作用,如:</code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)"></code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)">因为ios和安卓系统有默认的菜单样式,要想设置自定义的样式,需要添加一个样式</code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)">-webkit-appearance: none;</code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)">之后再设置自定义的样式。</code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)">如:</code></pre></pre><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><pre style="margin-top:10px; margin-bottom:0px; padding:10px; border:1px dotted rgb(119,136,85); font-family:‘Courier New‘,Courier,monospace; width:685px; background:rgb(245,245,245)"><code style="margin:0px; padding:0px; border:0px; font-family:‘Courier New‘,Courier,monospace; color:rgb(0,0,221)"></code></pre></pre><p><p> The mobile Select menu cannot modify the default style </p> </p></span>