解決chrome瀏覽器中input背景透明問(wèn)題

字號(hào):


    在使用chrome瀏覽器設(shè)計(jì)網(wǎng)頁(yè)時(shí),想將input背景改成透明,也就是
    代碼如下:
    background-color:transparent;
    可是效果并不如人意
    hack方法:
    代碼如下:
    input:-webkit-autofill,
    textarea:-webkit-autofill,
    select:-webkit-autofill{
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    }
    1000px可以盡可能的小~~
    以上就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。