Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何在引导程序中为我的输入控件加粗占位符文本。
例如
有什么帮助吗?
由于占位符是 html5 表单输入元素属性。因此,如果要设置占位符属性的样式,则需要使用以下 CSS
:-moz-placeholder { font-weight: bold; } ::-webkit-input-placeholder { font-weight: bold; } ::-moz-placeholder { font-weight: bold; } :-ms-input-placeholder { font-weight: bold; }