CSS Implementation Sliders

Source: Internet
Author: User

Tag: Set height add radius size address WebKit margin pre


<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta name= "viewport" content= "initial-scale=1.0, maximum-scale=1.0, User-scalable=no"/>
<meta name= "Viewport"
Content= "Width=device-width, User-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" >
<title> New Shipping Address </title>
<link rel= "stylesheet" type= "Text/css" href= "Css/reset.css"/> (clear element default style)
<script src= "Js/flexible.debug.js" ></script> (Ali's adaptation)
<script src= "Js/flexible_css.debug.js" ></script>
  
<style>
. add_list {
Border-top:0.26667rem solid #f5f5f5;
Margin-bottom:2.45333rem; }
. add_list. Add_item {
width:100%;
Height:1.28rem;
Line-height:1.28rem;
Font-size:0.37333rem;
Color: #4c4c4c;
Padding:0 0.32rem;
Background: #ffffff;
border-bottom:1px solid #ededed;
position:relative; }
. add_list. choosebtn {
Display:none; }
. add_list. Choose-label {
Width:1.33333rem;
Height:0.74667rem;
Display:inline-block;
border-radius:20px;
position:relative;
Background-color: #cccccc;
Overflow:hidden;
Margin-top:0.26667rem; }
. add_list. Choose-label:before {
Content: ";
Position:absolute;
Left:0.05333rem;
Width:0.69333rem;
Height:0.69333rem;
Top:0.02667rem;
Display:inline-block;
Border-radius:0.53333rem;
Background-color: #fff;
z-index:20;
-webkit-transition:all 0.5s;
Transition:all 0.5s; }
. add_list. choosebtn:checked + Label.choose-label:before {
Left:0.61333rem; }
. add_list. choosebtn:checked + Label.choose-label {
Background-color: #22d078; }
</style>
<body>
<ul class= "Add_list" >
<li class= "Add_item" >
<span class= "FL" > Set as Default:</span>
<span class= "FR" >
<input type= "checkbox" name= "Sex" id= "male" class= "choosebtn"/>
<label for= "male" class= "Choose-label" ></label>
</span>
</li>
</ul>

</body>

CSS Implementation Sliders

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.