在iview中修改placeholder样式时,需要在元素前加上/deep/
,否则不生效
/deep/ input::-webkit-input-placeholder {
/* WebKit browsers */
font-size:12px;
}
/deep/ input::-moz-placeholder {
/* Mozilla Firefox 4 to 18 */
font-size:12px;
}
/deep/ input::-moz-placeholder {
/* Mozilla Firefox 19+ */
font-size:12px;
}
/deep/ input::-ms-input-placeholder {
/* Internet Explorer 10+ */
font-size:12px;
}