开发者

Bold text in the from field: <input>?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜