Bootstrap dropdown box in the Firefox browser interface unfriendly solution _javascript tips

Source: Internet
Author: User

Http://output.jsbin.com/titaki

The above link in the Firefix browser will be found inside a small container, and the dropdown button style is very unfriendly

Check it out on Google.

1. Small containers can use select:padding:0

2. The dropdown icon can be removed by using Background-image;-moz-appearance:none to remove the dropdown box, and then

@-moz-document Url-prefix () {
Select.form-control {
-moz-appearance:none;
Appearance:none;
Background-image:url (".. /image/buy-other-down.png ");
Background-repeat:no-repeat;
Background-position:calc (100%-7px) 50%;
background-size:15% Auto;
border-radius:3px;
padding:0
}
}

PS: The small container can be removed with padding:0 but in this case select there is no Padding-left, the interface is not friendly; do not know how to solve the problem of small containers, but also need to grope, there are good ideas welcome to propose, thank you!

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.