漂亮的下拉菜单js插件

漂亮的下拉菜单js插件
下载次数:1 文件大小:68.37KB 所需积分:0 QQ联系购买积分:3331653644(1元=10积分)
<section>
  <select class="cs-select cs-skin-elastic">
    <option value="" disabled selected>Select a Country</option>
    <option value="france" data-class="flag-france">France</option>
    <option value="brazil" data-class="flag-brazil">Brazil</option>
    <option value="argentina" data-class="flag-argentina">Argentina</option>
    <option value="south-africa" data-class="flag-safrica">South Africa</option>
  </select>
</section>
<script src="js/classie.js"></script> 
<script src="js/selectFx.js"></script> 

js代码

(function() {
	[].slice.call( document.querySelectorAll( 'select.cs-select' ) ).forEach( function(el) {	
		new SelectFx(el);
	} );
})();

轻松搞定一个漂亮的下拉选择框

0 条评论