简体   繁体   English

移动浏览器的样式下拉列表

[英]Style Drop Down List for Mobile Browser

I want to style drop down list for mobile browser. 我想为移动浏览器设置样式下拉列表。

It is looking like this : 它看起来像这样: 在此处输入图片说明

and I want to make it like this : 我想要这样:

在此处输入图片说明

I have applied some CSS, like : 我已经应用了一些CSS,例如:

background-image:url("../images/mobilecategory.png");
background-position:center center;
background-repeat:no-repeat;
background-size:100%;
width:200px;
height:40px;

but it is not working. 但它不起作用。

If anyone have some idea about it, please share. 如果有人对此有任何想法,请分享。

Thanks!!! 谢谢!!!

you can style the drop down like this : 您可以这样设置下拉菜单的样式:

border-radius:0px !important;
-webkit-border-radius:0px !important;
border-top-left-radius:0px !important;

border: 1px #abc1cf solid !important;

-webkit-appearance: none;  /*Removes default chrome and safari style*/
-moz-appearance: none;  /*Removes default style Firefox*/
background: url('../images/arrow.png')  no-repeat;
background-position: right center;
text-indent: 0.01px; 
text-overflow: ""; 
color: #6b6b6b;  
font-weight:bold;

try this. 尝试这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM