The mobile Select menu cannot modify the default style

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.