`

html5自带占位符颜色设置及垂直居中

 
阅读更多

设置颜色:

input::-webkit-input-placeholder{ color:#AAA; font-weight:normal; font-size: 32px;}

 

要垂直居中,给input text控件加上:

.placeholderstyle{

line-height: normal;

}

 

参考:

http://www.zhangxinxu.com/study/201202/html5-placeholder-color-custom.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics