Super recommended CSS to create a classic mouse trigger display options _ Experience Exchange

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <meta http-equiv= content-language" content= "ZH-CN"/> <title>css create mouse triggering effect </title > <style type= "text/css" > <!--body {margin:0; padding:0; Color: #000; font-size:12px; line-height:160%; Text-align:left; height:100%; font-family: ' Song Body ', Tahoma, Arial,verdana,sans-serif, ' Lucida Grande ', ' lucida sans Unicode '; } *{margin:0; padding:0;} H2,H2 a:link,h2 a:hover,h2 a:visited{font-size:14px; Text-decoration:none; Color: #000000; }. Kw_from {padding:20px 0 0 0px; Margin:auto; height:300px; Overflow:hidden; width:650px; }. Kw_from. sbtn{Float:left; width:80px; PADDING:16PX 0 0 0; }. Kw_from. searchmore{Float:left; width:80px; padding:4px; } #searchNav {width:430px; Float:left; #searchNav #conter1, #searchNav #conter3 {float:left; width:250px; #searchNav #conter2, #searchNav #conter4 {float:left; width:180px; } #searchNav ul {padding:0; margin:0; List-style:none; } #searchNav li {float:left; #searchNav Li ul {display:none; top:20px; #searchNav Li:hover ul, #searchNav li.over ul {display:block; Float:left; #searchNav ul Li a{float:left; Display:block; font-size:12px; padding:3px; Text-decoration:none; Color: #777; #searchNav ul Li a:hover{background-color: #f4f4f4; } #searchNav #jobKw {width:220px; height:18px; } #searchNav #cityKw {width:130px; height:18px; }--> </style> <script type= "Text/javascript" > <!--//--><! [cdata[//> <!--startlist = function () {if (Document.all&&document.getelementbyid) {navroot = document . getElementById ("Searchnav"); For (i=0 i<navroot.childnodes.length; i++) {node = NavrooT.childnodes[i]; if (node.nodename== "LI") {node.onmouseover=function () {this.classname+= "over"; } node.onmouseout=function () {this.classname=this.classname.replace ("over", ""); }}}} window.onload=startlist; --><!]] > </script> </pead> <body> <div class= "Kw_from" > <form action= "/search.html" method= "ge T "name=" Searchform "id=" Searchform "onsubmit=" return Check () "> <ul id=" Searchnav "> <li id=" conter1 "&GT;&L What t;h2> looking for </p> <input id= "jobkw" name= "jobkw" type= "text"/> <ul "id=" > <li> accounting Conter3 > <li> Web design </li> <li> translation </li> <li> tutor </li> <li><span class= "morecity" & gt; more >> </span></li> </ul> </li> <li id= "Conter2" ><p> in there </p> < Id= "citykw" name= "citykw" type= "text"/> <ul id= "Conter4" > <li> Beijing </li> <li> Shanghai </li& Gt <li> Guangzhou </li> <li> Shenzhen </li> <li> Nanjing </li> <li> Tianjin </li> <li> Hangzhou </li> <li> Chengdu </ li> <li> Chongqing </li> <li> Wuhan </li> <li> Xian </li> <li> Shenyang </li> <li>& Lt;span class= "morecity" > More cities >></span></li> </ul> </li> </ul> <div class= " Sbtn "> <input name=" Submit "type=" Submit "class=" Btn4 "value=" search work "/> </div> <div class=" Searchmore "> Advanced search Category Search </div> </form> </div> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

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.