Drop-down box with check boxes

Source: Internet
Author: User

:

,

CSS:

<Style type = "text/CSS">/* drop-down box with check boxes */ul Li {list-style: none; padding: 0px; margin: 0px ;}. select_checkbox {border: 0px solid red; position: relative; display: inline-block ;}. chartquota {Height: 23px; float: Left; display: inline-block; Border: 0px solid black; position: relative ;}. chartoptionsflowtrend {z-index: 300; Background-color: White; Border: 1px solid gray; display: none; position: absolute; left: 0px; top: 23px; width: 150px ;}. chartoptionsflowtrend ul {float: Left; padding: 0px; margin: 5px ;}. chartoptionsflowtrend Li {/* float: Left; */display: block; position: relative; left: 0px; margin: 0px; clear: Both ;}. chartoptionsflowtrend li * {float: Left;} A:-WebKit-any-link {color:-WebKit-link; text-Decoration: underline; cursor: auto ;}. chartquota p a {float: Left; Height: 21px; outline: 0 none; Border: 1px solid # CCC; line-Height: 22px; padding: 0 5px; overflow: hidden; background: # eaeaea; color: #313131; text-Decoration: none ;}. chartquota P {margin: 0px; folat: Left; overflow: hidden; Height: 23px; line-Height: 24px; display: inline-block ;}. chartoptionsflowtrend P {Height: 23px; line-Height: 23px; overflow: hidden; position: relative; Z-index: 2; Background: # fefbf7; padding-top: 0px; display: inline-block ;}. chartoptionsflowtrend p a {border: 1px solid # FFF; margin-left: 15px; color: # 2e91da ;}</style>

HTML:

<Div class = "select_checkbox"> <Div class = "chartquota"> <p> <a href = "javascript :; "hidefocus =" true "Title =" Please select metrics "> <span> select metrics </span> <B> </B> </a> </P> </ div> <br> <Div class = "chartoptionsflowtrend" "> <ul> <li class =" "> <input type =" checkbox "value =" 1 "> <span> views (PV) </span> </LI> <li class = ""> <input type = "checkbox" value = "1"> <span> unique visitor (UV) </span> </LI> <li class = ""> <input type = "checkbox" value = "1"> <span> ip </span> </LI> <li class = ""> <input type = "checkbox" value = "1"> <span> New Independent Visitor </span> </LI> <li class = ""> <input type = "checkbox" value = "1"> <span> Number of visits </span> </LI> </ul> <p> <a href = "Javascript :; "Title =" OK "hidefocus =" true "class =" a_0 "> OK </a> <ahref =" javascript :; "Title =" cancel "hidefocus =" true "class =" A_1 "> cancel </a> </P> </div>

JS:

<script type="text/javascript">$(function(){$(".select_checkBox").hover(function(){$(".chartOptionsFlowTrend").css("display","inline-block");},function(){$(".chartOptionsFlowTrend").css("display","none");});});</script>




Drop-down box with check boxes

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.