ITeye博客

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

andrewstz · 2012-11-07 17:27 · html5 · 移动开发 · Markdown

设置颜色:

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。