我怎么能把一个图像选择? [英] how can i put an image into select?
本文介绍了我怎么能把一个图像选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个脚本
<select>
<option value="1">one<img src="star.gif" height="15" width="15"></img> </option>
</select>
但不起作用。
如何将图像放入选择?
感谢
but it doesn't work. how can i put an image into select? thanks
所以这是不可能的
推荐答案
您不能 - DOM模型不允许选项元素中的img元素
you can't - DOM model doesn't allow img elements inside option elements
这篇关于我怎么能把一个图像选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文