开发者

Bold text in the from field: <input>?

开发者 https://www.devze.com 2023-02-16 23:07 出处:网络
Today when I filled my calendar at googleI saw that t开发者_JS百科he description of the event is in bold font:

Today when I filled my calendar at google I saw that t开发者_JS百科he 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.

EDIT Simple search I fond that the jquery watermark plugin can do similar thing.


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>


try this you don't need to write css

 <input type="text" style="font-weight: bold;">
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号