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

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

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

    HTML5inputplaceholder屬性如何完美兼任ie
    來源:易賢網(wǎng) 閱讀:1367 次 日期:2014-05-14 21:52:34
    溫馨提示:易賢網(wǎng)小編為您整理了“HTML5inputplaceholder屬性如何完美兼任ie”,方便廣大網(wǎng)友查閱!

    記得引用jquery類庫(kù)

    代碼如下:

    $(document).ready(function(){

    if($.browser.msie)

    $("input:text,input:password").each(function(){

    var$placeholder=$(this).attr("placeholder");

    var$width=$(this).css("width");

    var$id=$(this).attr("id");

    var$height=parseInt($(this).css("height"))+6+"px";

    var$fontSize=$(this).css("font-size");

    var$fontWeight=$(this).css("font-weight");

    var$lineHeight=$height;

    if($(this).css("line-height")!="normal"){

    $lineHeight=parseInt($(this).css("line-height"))+6+"px";

    }

    if($placeholder!=undefined){

    $(this).after("<spanclass=\"placeholderph_"+$id+"\"style=\"width:"+$width+";line-height:"+$lineHeight+";height:"+$height+";font-weight:"+$fontWeight+";margin-left:-"+$width+";font-size:"+$fontSize+"\">"+$placeholder+"</span>");

    }

    $(this).bind("keyup",function(){

    if($(this).val()==""){

    $(this).parent().find(".ph_"+$id).css("display","inline-block");

    }

    else{

    $(this).parent().find(".ph_"+$id).css("display","none");

    }

    });

    });

    $(".placeholder").live("click",function(){

    $(this).prev().focus();

    });

    });

    頁(yè)面調(diào)用

    代碼如下:

    <inputid="n1"type="text"placeholder="我是提示內(nèi)容正常"/>

    <inputid="n2"type="text"placeholder="我是提示內(nèi)容寬高"style="width:100px;height:100px;"/>

    <inputid="n3"type="text"placeholder="我是提示內(nèi)容我有其他樣式"/style="width:300px;height:40px;font-weight:bold;">

    <inputid="n4"type="text"placeholder="還可以嘗試下其他的"/>

    樣式

    代碼如下:

    <styletype="text/css">

    .placeholder{display:inline-block;color:gray;vertical-align:top;overflow:hidden;}

    </style>

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

    更多信息請(qǐng)查看網(wǎng)頁(yè)制作
    易賢網(wǎng)手機(jī)網(wǎng)站地址:HTML5inputplaceholder屬性如何完美兼任ie
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
    相關(guān)閱讀網(wǎng)頁(yè)制作

    2026國(guó)考·省考課程試聽報(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)