第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

當(dāng)設(shè)置input的placeholder字體大小與input字體大小不一致的時(shí)候,placehol

當(dāng)設(shè)置input的placeholder字體大小與input字體大小不一致的時(shí)候,placehol

繁星coding 2018-12-27 22:15:09
業(yè)務(wù)需求需要,一個(gè)input在輸入的時(shí)候要要比placeholder的字體大小大很多,導(dǎo)致無法垂直居中,求大神解決。.pay-card .amount{    float: right;    text-align: right;    line-height: normal;    height: 36px;    width:150px;    padding-right: 20px;    color: #121212;    font-size:36px;}.pay-card .amount::-webkit-input-placeholder { /* WebKit browsers */    color:#c5c5c5;    font-size:13px;    line-height: 36px;    height: 36px;}.pay-card .amount:-moz-placeholder { /* Mozilla Firefox 4 to 18 */    color:#c5c5c5;    font-size:13px;}.pay-card .amount::-moz-placeholder { /* Mozilla Firefox 19+ */    color:#c5c5c5;    font-size:13px;}.pay-card .amount:-ms-input-placeholder { /* Internet Explorer 10+ */    color:#c5c5c5;    font-size:13px;}<div class="pay-card">        <label class="label">訂單金額(元)</label>        <input type="text" class="amount" id="amount" readonly placeholder="請(qǐng)?jiān)儐柹碳液筝斎?quot;>    </div>
查看完整描述

1 回答

?
慕尼黑的夜晚無繁華

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超6個(gè)贊

<script type="text/javascript">


    function aa(event) {

        var Oinput = document.getElementById('amount');

        Oinput.style.fontSize=36+'px';

        Oinput.placeholder='';


    }

    function bb(event) {

        var Oinput = document.getElementById('amount');

        Oinput.style.fontSize=13+'px';

        Oinput.placeholder='請(qǐng)?jiān)儐柹碳液筝斎?#39;;

    }

</script>



<div class="pay-card">

<label class="label">訂單金額(元)</label>

<input type="text" class="amount" id="amount"  placeholder="請(qǐng)?jiān)儐柹碳液筝斎?quot;  onfocus="aa(event)" onblur="bb(event)">


查看完整回答
反對(duì) 回復(fù) 2019-01-03
  • 1 回答
  • 0 關(guān)注
  • 2289 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)