怎么使用纯css美化select(css,select,web开发)

时间:2024-05-09 13:29:10 作者 : 石家庄SEO 分类 : web开发
  • TAG :

  <h3>CarsSelect</h3>

  <divclass="select">

  <selectname="cars">

  <optionvalue="volvo">Volvo</option>

  <optionvalue="saab">Saab</option>

  <optionvalue="opel"selected>Opel</option>

  <optionvalue="audi">Audi</option>

  </select>

  </div>

   body{

   font-size:20px;

   color:#090;

   background-color:#eee;

   text-align:center;

   }

   .select{

   display:inline-block;

   width:300px;

   position:relative;

   vertical-align:middle;

   padding:0;

   overflow:hidden;

   background-color:#fff;

   color:#555;

   border:1pxsolid#aaa;

   text-shadow:none;

   border-radius:4px;

   transition:box-shadow0.25sease;

   z-index:2;

   }

   .select:hover{

   box-shadow:01px4pxrgba(0,0,0,0.15);

   }

   .select:before{

   content:"";

   position:absolute;

   width:0;

   height:0;

   border:10pxsolidtransparent;

   border-top-color:#ccc;

   top:14px;

   right:10px;

   cursor:pointer;

   z-index:-2;

   }

   .selectselect{

   cursor:pointer;

   padding:10px;

   width:100%;

   border:none;

   background:transparent;

   background-image:none;

   -webkit-appearance:none;

   -moz-appearance:none;

   }

   .selectselect:focus{

   outline:none;

   }

怎么使用纯css美化select

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:怎么使用纯css美化select的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:CSS3怎么实现彩色进度条动画特效下一篇:

14 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18