jQuery自定义漂亮的下拉框插件8种效果演示

时间:2022-11-28 13:39:13

原始的下拉框不好看这里推荐一个jQuery自定义漂亮的下拉框插件8种效果演示

jQuery自定义漂亮的下拉框插件8种效果演示

实例代码下载

Java代码    jQuery自定义漂亮的下拉框插件8种效果演示
  1. <!DOCTYPE html>  
  2. <html lang="en" class="no-js">  
  3.     <head>  
  4.         <meta charset="UTF-8" />  
  5.         <meta http-equiv="X-UA-Compatible" content="IE=edge">  
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">  
  7.         <title>jQuery自定义下拉框插件 | 演示 1</title>  
  8.         <link rel="stylesheet" type="text/css" href="css/normalize.css" />  
  9.         <link rel="stylesheet" type="text/css" href="css/demo.css" />  
  10.         <link rel="stylesheet" type="text/css" href="css/cs-select.css" />  
  11.         <link rel="stylesheet" type="text/css" href="css/cs-skin-border.css" />  
  12.         <!--[if IE]>  
  13.         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>  
  14.         <![endif]-->  
  15.     </head>  
  16.     <body class="demo-1">  
  17.         <div class="container">  
  18.             <header class="codrops-header">  
  19.                 <h1> 自定义选择元素</h1>  
  20.                 <nav class="codrops-demos">  
  21.                     <a class="current-demo" href="index.html">边框</a>  
  22.                     <a href="index2.html">下划线</a>  
  23.                     <a href="index3.html">伸缩</a>  
  24.                     <a href="index4.html">滑动</a>  
  25.                     <a href="index5.html">覆盖</a>  
  26.                     <a href="index6.html">旋转</a>  
  27.                     <a href="index7.html">弹出层选择</a>  
  28.                     <a href="index8.html">环形效果</a>  
  29.                 </nav>  
  30.             </header>  
  31.             <section>  
  32.                 <select class="cs-select cs-skin-border">  
  33.                     <option value="" disabled selected> 联系人方式</option>  
  34.                     <option value="email">E-Mail</option>  
  35.                     <option value="twitter">Twitter</option>  
  36.                     <option value="linkedin">LinkedIn</option>  
  37.                 </select>  
  38.             </section>  
  39.   下载
  40.         </div><!-- /container -->  
  41.         <script src="js/classie.js"></script>  
  42.         <script src="js/selectFx.js"></script>  
  43.         <script>  
  44.             (function() {  
  45.                 [].slice.call(document.querySelectorAll('select.cs-select')).forEach(function(el) {  
  46.                     new SelectFx(el);  
  47.                 });  
  48.             })();  
  49.         </script>  
  50.     </body>  
  51. </html>