Dropdown menu select style settings (compatible with ie6/ie7/ie8/Firefox)

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.