Home > Web Front-end > HTML Tutorial > The bootstrap drop-down box is not friendly in the firefox interface

The bootstrap drop-down box is not friendly in the firefox interface

WBOY
Release: 2016-08-20 08:47:51
Original
1422 people have browsed it

http://output.jsbin.com/titaki

When you open the above link in the firefix browser, you will find that there is a small container inside, and the drop-down button style is not friendly

Check it on Google

1.Small containers can use select:padding:0

2. The drop-down icon can use background-image; -moz-appearance:none to remove the style of the drop-down 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 there will be no padding-left in select, and the interface is not friendly. I don’t know how to solve the problem of this small container, and I still need to explore. Garden friends are welcome to give suggestions.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template