开发者

Include images in <option> (For a <select>) html form [duplicate]

This question already has an answer here开发者_如何学Python: Closed 11 years ago.

Possible Duplicate:

Adding images with option tag

Is it possible to (instead of text values) store an image inside the part of the html form?


If by store you mean display next to items in a drop-down list, yes, it is possible with some fiddling.

What about something like these?

http://www.marghoobsuleman.com/jquery-image-dropdown

http://www.queness.com/post/204/25-jquery-plugins-that-enhance-and-beautify-html-form-elements#9

You'll probably need jQuery.


No, an html select element can take only textual options, using the option tag.

If you want to use images then you'd have to use a styled ul (or other) element.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜