“发件人"字段中的粗体文本:< input> ;? [英] Bold text in the from field: <input>?
本文介绍了“发件人"字段中的粗体文本:< input> ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天,当我在Google上填写日历时,我看到该活动的说明以粗体显示:
Today when I filled my calendar at google I saw that the description of the event is in bold font:
<input id=":g" name=":g" type="text" class="textinput" dir="ltr">
是否可以在文本输入字段中呈现自定义文本样式?
Is it possible to render the custom text style in the text input field?
谢谢
阿尔曼.
Thanks
Arman.
编辑 简单搜索我喜欢 jquery水印插件可以做类似的事情.
EDIT Simple search I fond that the jquery watermark plugin can do similar thing.
推荐答案
CSS可以在文本输入字段中设置文本格式:
CSS can format text in text input field:
<html>
<head>
<style type="text/css">
input {font-weight:bold;}
</style>
</head>
<body>
<input type="text"/>
</body>
</html>
这篇关于“发件人"字段中的粗体文本:< input> ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文