在GWT中的TextArea中如何在文本附近添加图标? [英] How to add icon near text in TextArea in GWT?

查看:106
本文介绍了在GWT中的TextArea中如何在文本附近添加图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <$ c我的文本区域中有文本(一些帮助提示),我想在文本之前添加信息图标$ c> icon ----- 
----------
----------
-----。

* icon:help icon
*:help text

如果无法将图标添加到TextArea,那么可能还有其他解决方案(如标签?)? 解析方案

您无法将图标添加到TextArea。您可以在指定位置的TextArea顶部显示一个图标(通过将图标和TextArea添加到div并使用相对定位),但随着用户输入它,它将遮蔽它下面的文本。


I have text area with text (some help tip) and I want to add info icon before text in order it looks like:

icon -----
----------
----------
-----.

*icon: help icon
*---: help text

If it is impossible to add icon to TextArea, maybe there're any other solutions on how to do it (in a label?)?

解决方案

You can't add an icon to the TextArea. You can show an icon on top of a TextArea in a specified location (by adding both icon and TextArea to a div and using relative positioning), but then it will obscure the text under it as users type it in.

这篇关于在GWT中的TextArea中如何在文本附近添加图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆