通過css設定placeholder的方法

來源:互聯網
上載者:User
這篇文章主要介紹了關於通過css設定placeholder的方法,有著一定的參考價值,現在分享給大家,有需要的朋友可以參考一下

input::-webkit-input-placeholder {    color:#fff;    text-align: center;    font-size: 0.46rem;}input:-moz-placeholder {    color:#fff;  text-align: center;    font-size: 0.46rem;}input:-ms-placeholder {    color:#fff;  text-align: center;    font-size: 0.46rem;}input:-o-placeholder {    color:#fff;  text-align: center;    font-size: 0.46rem;}input:placeholder {    color:#fff;  text-align: center;    font-size: 0.46rem;}

以上就是本文的全部內容,希望對大家的學習有所協助,更多相關內容請關注topic.alibabacloud.com!

相關推薦:

關於css控制UL LI 的樣式解析

a標籤的css樣式中的四個狀態

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.