简体   繁体   English

Selectboxit加载时间

[英]Selectboxit Load Time

I am using the Selectboxit js plugin on select fields on my page. 我在页面上选择字段上使用Selectboxit js插件。 When the page loads there is a slight delay where the default select box shows before the selectboxit style is applied. 当页面加载时,在应用selectboxit样式之前,默认选择框会稍有延迟。

Is it possible to hide the default select box from showing until the selectboxit style is applied, and if so which class would need to be targeted in css? 是否可以隐藏默认选择框,直到应用selectboxit样式为止;如果是这样,则需要在CSS中定位哪个类?

Just hide your selects in your CSS, the plugin will show the new ones automatically: 只要将您的选择隐藏在CSS中,该插件就会自动显示新的选择:

select{
    display: none;
}

JS Fiddle Demo JS小提琴演示

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

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