Usage: Copy the following code to your html file and save it,
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" c/>
<Title> the drop-down menu of pure CSS supports IE6 IE7 Firefox </title>
<Style type = "text/css">
* {Margin: 0; padding: 0 ;}
. Menu {font-size: 12px; position: relative; z-index: 100 ;}
. Menu ul {list-style: none ;}
. Menu li {float: left; position: relative ;}
. Menu ul {visibility: hidden; position: absolute; left: 3px; top: 23px ;}
. Menu table {position: absolute; top: 0; left: 0 ;}
. Menu ul li: hover ul,
. Menu ul a: hover ul {visibility: visible ;}
. Menu a {display: block; border: 1px solid # aaa; background: red; padding: 2px 10px; margin: 3px; color: # fff; text-decoration: none ;}
. Menu a: hover {background: # f2cdb0; color: # f00; border: 1px solid red ;}
. Menu ul {}
. Menu ul li {clear: both; text-align: left; font-size: 12px ;}
. Menu ul li a {display: block; width: 100px; height: 13px; margin: 0; border: 0; border-bottom: 1px solid red ;}
. Menu ul li a: hover {border: 0; background: # f2cdb0; border-bottom: 1px solid # fff ;}
</Style>
</Head>
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.