茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    單選按鈕多選按鈕用圖片實(shí)現(xiàn)加樣式
    來源:易賢網(wǎng) 閱讀:4214 次 日期:2014-10-10 10:09:16
    溫馨提示:易賢網(wǎng)小編為您整理了“單選按鈕多選按鈕用圖片實(shí)現(xiàn)加樣式”,方便廣大網(wǎng)友查閱!

    之前一直看到有人在問,單選按鈕和多選按鈕怎么加樣式、怎么把按鈕變大?下面把我做的一個(gè)例子分享出來。

    1.首先把按鈕做成圖片

    名單

    2.html頁(yè)面

    代碼如下:

    <!DOCTYPE HTML>

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="jquery-1.10.2.min.js"></script>

    <script type="text/javascript">

    $(function(){

    $("input[type='checkbox']").click(function(){

    if($(this).is(':checked')){

    $(this).attr("checked","checked");

    $(this).parent().removeClass("c_off").addClass("c_on");

    }else{

    $(this).removeAttr("checked");

    $(this).parent().removeClass("c_on").addClass(" c_off");

    }

    });

    $("input[type='radio']").click(function(){

    $("input[type='radio']").removeAttr("checked");

    $(this).attr("checked","checked");

    $(this).parent().removeClass("r_off").addClass("r_on").siblings().removeClass("r_on").addClass("r_off");

    });

    });

    </script>

    </head>

    <style>

    /* 多選/單選 */

    label {

    display: block;

    cursor: pointer;

    line-height: 26px;

    margin-bottom: 20px;

    width: 26px;

    height: 26px;

    line-height: 26px;

    float: left;

    margin-top: 6px;

    }

    .radios {

    padding-top: 18px;

    border-top: 1px solid #049CDB;

    }

    .label_check input, .label_radio input {

    margin-right: 5px;

    }

    .lblby .label_check, .lblby .label_radio {

    margin-right: 8px;

    }

    .lblby .label_radio, .lblby .label_check {

    background: url(../images/jxc_btn.png) no-repeat;

    }

    .lblby .label_check {

    background-position: 0 0px

    }

    .lblby label.c_on {

    background-position: 0 -26px;

    }

    .lblby .label_radio {

    background-position: 0 -52px;

    }

    .lblby label.r_on {

    background-position: 0 -78px;

    }

    .lblby .label_check input, .lblby .label_radio input {

    position: absolute;

    left: -9999px;

    }

    </style>

    <body class="lblby">

    <label for="checkbox-01" class="label_check c_on">

    <input type="checkbox" checked="checked" value="1" id="checkbox-01" name="sample-checkbox-01" />

    Checkbox1 </label>

    <label for="checkbox-02" class="label_check">

    <input type="checkbox" value="1" id="checkbox-02" name="sample-checkbox-02" />

    Checkbox2</label>

    <label for="radio-01" class="label_radio r_on">

    <input type="radio" value="1" checked="checked" id="radio-01" name="sample-radio" />

    Radio1 </label>

    <label for="radio-02" class="label_radio r_off">

    <input type="radio" value="1" id="radio-02" name="sample-radio" />

    Radio2 </label>

    <label for="radio-03" class="label_radio r_off">

    <input type="radio" value="1" id="radio-03" name="sample-radio" />

    Radio3 </label>

    </body>

    </html>

    更多信息請(qǐng)查看IT技術(shù)專欄

    更多信息請(qǐng)查看網(wǎng)頁(yè)制作
    易賢網(wǎng)手機(jī)網(wǎng)站地址:單選按鈕多選按鈕用圖片實(shí)現(xiàn)加樣式
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
    相關(guān)閱讀網(wǎng)頁(yè)制作

    2026上岸·考公考編培訓(xùn)報(bào)班

    • 報(bào)班類型
    • 姓名
    • 手機(jī)號(hào)
    • 驗(yàn)證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢 | 簡(jiǎn)要咨詢須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
    工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
    云南網(wǎng)警備案專用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號(hào):hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報(bào)警專用圖標(biāo)