如何使用jquery或javascript动态地在图像上插入文本 [英] How to insert text on image dynamically using jquery or javascript
本文介绍了如何使用jquery或javascript动态地在图像上插入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何使用java脚本或jqery
解决方案
在图像上插入文本框文本(或div内容)
不可能直接。但是,您可以将该图像设置为< Div 的背景> 或< P > 标记,然后将文本添加到这些元素。
相反,给textarea提供背景可能更好。只需使用CSS
textarea
{
background:url(image / you / want.jpg);
}
Hi
How to insert text box text (or div content) on image using java script or jqery
解决方案
Not possible directly. However you can set that image as background of <Div> or <P> tag and then add text to those elements. Instead, it might be better to give the textarea a background. Just use CSS textarea { background: url("image/you/want.jpg"); }
这篇关于如何使用jquery或javascript动态地在图像上插入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文