首页>>表单>>CSS3自定义Radio样式 自定义单选框样式(2014-08-02)

CSS3自定义Radio样式 自定义单选框样式

CSS3自定义Radio样式  自定义单选框样式
赞赏支持
立刻微信赞赏支持 关闭

 

XML/HTML Code
  1. <section class="container">  
  2.    <div class="switch">  
  3.      <input type="radio" class="switch-input" name="view" value="week" id="week" checked>  
  4.      <label for="week" class="switch-label switch-label-off">Week</label>  
  5.      <input type="radio" class="switch-input" name="view" value="month" id="month">  
  6.      <label for="month" class="switch-label switch-label-on">Month</label>  
  7.      <span class="switch-selection"></span>  
  8.    </div>  
  9.   
  10.    <div class="switch switch-blue">  
  11.      <input type="radio" class="switch-input" name="view2" value="week2" id="week2" checked>  
  12.      <label for="week2" class="switch-label switch-label-off">Week</label>  
  13.      <input type="radio" class="switch-input" name="view2" value="month2" id="month2">  
  14.      <label for="month2" class="switch-label switch-label-on">Month</label>  
  15.      <span class="switch-selection"></span>  
  16.    </div>  
  17.   
  18.    <div class="switch switch-yellow">  
  19.      <input type="radio" class="switch-input" name="view3" value="week3" id="week3" checked>  
  20.      <label for="week3" class="switch-label switch-label-off">Week</label>  
  21.      <input type="radio" class="switch-input" name="view3" value="month3" id="month3">  
  22.      <label for="month3" class="switch-label switch-label-on">Month</label>  
  23.      <span class="switch-selection"></span>  
  24.    </div>  
  25.  </section>  

 


原文地址:http://www.freejs.net/article_biaodan_394.html