Home > Web Front-end > HTML Tutorial > input输入内容字体和placeholder字体大小问题_html/css_WEB-ITnose

input输入内容字体和placeholder字体大小问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:02:45
Original
1690 people have browsed it

如何分别设置同一个input输入内容字体和placeholder的字体大小,仅通过css可以实现吗?简单的单独设置placeholder大小没办法,回和input输入内容大小一样


回复讨论(解决方案)

input::-webkit-input-placeholder

input::-webkit-input-placeholder

我设置了input字体大小情况下,这个属性设置字体大小无效了

这边测试没问题,代码看下

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template