This article will be a detailed introduction to the next Drop-down menu select how to set up to be able to compatible ie6/ie7/ie8/Firefox and other mainstream browsers, the specific implementation code as follows, interested friends can refer to ha, I hope to help you
Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv= "Content-type" content= "text/html"; Charset=utf-8 "/>
<title> compatible ie6/ie7/ie8/Firefox---pull-down menu select style settings </title>
<style type= "Text/css" >
Body {background-color: #6C6;}
. select_border{
width:59px;
height:29px;
*background: #fff;
background: #fff;
*border:1px solid #09f;
*padding:4px;
*height:20px;
}
. container{
*border:0;
*position:relative;
*height:18px;
*overflow:hidden;
}
. select{
border:1px solid #09f;
padding:4px 3px;
font-size:12px;
height:30px;
width:60px;
*width:52px;
margin:-1px;
}
. Select_border,.container {*width:50px;}
</style>
</head>
<body>
<p> Wide-high:93px-28px</p>
<div class= "Select_border" >
<div class= "container" >
<select name= "" class= "select" >
<option> Beijing </option>
<option> Tianjin </option>
<option> Shanghai </option>
<option> Chongqing </option>
</select>
</div>
</div>
</body>
</html>