国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

HTML的checkbox和radio樣式美化的簡單實例

2019-10-26 17:18:25
字體:
來源:轉載
供稿:網友

HTML的checkbox和radio樣式美化的簡單實例

checkbox:

  • <style type="text/css">       input[type="checkbox"]   
  •     {            display: none;   
  •     }      
  •         input[type="checkbox"] + label            {   
  •             display: inline-block;                position: relative;   
  •             border: solid 2px #99a1a7;                width: 35px;   
  •             height: 35px;                line-height: 35px;   
  •             border-radius: 4px;            }   
  •            input[type="checkbox"]:checked + label:after   
  •         {                content: '/2714';   
  •             font-size: 25px;                color: #99a1a7;   
  •             width: 35px;                height: 35px;   
  •             line-height: 35px;                position: absolute;   
  •             text-align: center;                background-color: #e9ecee;   
  •         }      
  •     .tab        {   
  •         margin-top: 20px;            margin-bottom: 20px;   
  •         width: 100%;        }   
  •            .tab td   
  •         {                border: solid 1px #f99;   
  •             font-size: 25px;                line-height: 39px;   
  •         }    </style>  
  •    <table class="tab" cellpadding="0" cellspacing="0" style="border-collapse: collapse;">  
  •     <tr>           <td>  
  •             <div align="center" style="float: left; height: 39px; width: 39px;">                   <input id="ck101" type="checkbox" />  
  •                 <label for="ck101"></label>               </div>  
  •             <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px; margin-right: 20px;">                   測試101   
  •             </div>               <div align="center" style="float: left; height: 39px; width: 39px;">  
  •                 <input id="ck102" type="checkbox" />                   <label for="ck102"></label>  
  •             </div>               <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px; margin-right: 20px;">  
  •                 測試102                </div>  
  •             測試            </td>  
  •         <td></td>       </tr>  
  •     <tr>           <td style="text-align: center;">  
  •             <div style="display: inline-block;">                   <div align="center" style="float: left; height: 39px; width: 39px;">  
  •                     <input id="ck103" type="checkbox" />                       <label for="ck103"></label>  
  •                 </div>                   <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px; margin-right: 20px;">  
  •                     測試103                    </div>  
  •                 <div align="center" style="float: left; height: 39px; width: 39px;">                       <input id="ck104" type="checkbox" />  
  •                     <label for="ck104"></label>                   </div>  
  •                 <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px; margin-right: 20px;">                       測試104   
  •                 </div>                   測試   
  •             </div>           </td>  
  •         <td>測試            </td>  
  •     </tr>   </table>  
  •    <div style="border: solid 1px #f99; height: 39px; margin-top: 20px; margin-bottom: 20px;">  
  •     <div align="center" style="float: left; height: 39px; width: 39px;">           <input id="ck201" type="checkbox" />  
  •         <label for="ck201"></label>       </div>  
  •     <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px; margin-right: 20px;">           測試201   
  •     </div>       <div align="center" style="float: left; height: 39px; width: 39px;">  
  •         <input id="ck202" type="checkbox" />           <label for="ck202"></label>  
  •     </div>       <div style="float: left; height: 39px; line-height: 39px; font-size: 25px; margin-left: 10px;">  
  •         測試202        </div>  
  • </div>  
  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 洛宁县| 霞浦县| 麻城市| 石渠县| 友谊县| 东乡县| 阿勒泰市| 扎囊县| 福州市| 镇安县| 霍州市| 绥阳县| 巴青县| 垦利县| 商都县| 林口县| 同江市| 连江县| 桐城市| 裕民县| 巴塘县| 铜山县| 渝北区| 江源县| 望城县| 高尔夫| 兴安盟| 鄂伦春自治旗| 新安县| 汉寿县| 泰宁县| 巴林右旗| 连州市| 郎溪县| 海阳市| 陕西省| 当雄县| 尉氏县| 周口市| 桦甸市| 沙河市|