h5中placeholder样式

  1. <!DOCTYPE html>
    <html>
    <head>
        <title>placeholder样式demo</title>
         <style type="text/css">
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color: #fff; 
    }
    
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #fff;
    }
    
    input:-ms-input-placeholder{
        color: #fff;
    }
    
    input::-webkit-input-placeholder{
        color: #fff;
    }
              
         </style>
         
    </head>
    <body>
         <input    style="background:#2b2b2b" placeholder="httt" type="text">
    </body>
    </html>
原文地址:https://www.cnblogs.com/sexintercourse/p/7327027.html