我正在尝试使用具有以下样式的 html placeholder
属性,其中将出现无序列表、顺序列表、段落、粗体文本:
Please provide social Combo offer details
For social combo lease enable or add your social media button on site
1. tweets / retweet url : website url where tweet button is enabled or twitter tweet
url
2. fb share : website url
3. google plus : website url
有什么方法可以在 html 的 placeholder
属性上显示这种样式吗?
最佳答案
如果你想设置占位符属性的样式,你需要使用以下 CSS
:-moz-placeholder {
font-weight: bold;
}
::-webkit-input-placeholder {
font-weight: bold;
}
::-moz-placeholder {
font-weight: bold;
}
:-ms-input-placeholder {
font-weight: bold;
}
关于Html 占位符属性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16273698/