textarea::-webkit-input-placeholder{ padding: 1em; } textarea::-moz-placeholder{ padding: 1em; } 同理,input的定义方法为: input::-webkit-input-placeholder{ padding: .2em; } input::-moz-placeholder{ padding: .2em; }