html select 下拉箭頭隱藏
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> .width5 { width: 122px; } .width7 { width: 142px; } .DivSelect { float:left; position: relative; background:url(../img/his2-sel.jpg) no-repeat; height: 32px; line-height: 32px; overflow: hidden; /*隱藏了小三角,寬度為比select寬度少20px*/ border-width:0px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; } /*設置Select樣式*/ .SelectList { position: relative; background-color: transparent; TOP: -2px; left:-2px; border-width: 0px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; display:block; height: 32px; line-height: 32px; overflow:hidden; } </style> </head> <body> <div class="DivSelect width5"> <select class="SelectList width7"> <option>雙銅紙</option> <option>雙膠紙</option> </select> </div> </body> </html>