输入标签内部的链接 [英] Link inside of input tag
本文介绍了输入标签内部的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在输入框(文本框)内显示 a href
和 img src
。例如:我想在文本框中显示它(< input id = link
)
How to display a a href
and a img src
inside a input box (text box). ex: i want to display this inside a text box ( <input id=link
)
<a href="http://www.mysite.com/link" target="_blank"><img src="http://www.mysite.com/img.jpg" border="0" alt="mysite.com"></a>
在此先感谢。
thanks in advance.
推荐答案
根据评论,我猜想你想要一个输入字段,该HTML代码作为默认文本。
Based on the comments, I would guess that you want an input field that has that HTML code as the default text. You must use character reference codes for quotes and less/greater than signs.
<input type="text" value="<a href="http://www.mysite.com/link" target="_blank"><img src="http://www.mysite.com/img.jpg" border="0" alt="mysite.com"></a>" />
(顺便说一句,您提到就像在Photobucket中一样 - 您可以看看网站的看看他们是如何做到的。)
(By the way, you mentioned "like in Photobucket" -- you can just look at the site's HTML to see how they do it.)
这篇关于输入标签内部的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文