简体   繁体   中英

how to show img or png or svg inside option with angular js

I want to add the image to the angular select option list. I saw some example with data-image works inside option. But I didn't make it work.Could someone help me out? The jsffidle is in the following: http://jsfiddle.net/drt6y0wf/

And I want the image show inside the option list.Is there other way I can do this with pure angular?

The native select option does not support image inside dropdown. You need construct an emulated ui using other html element, like div and li. For example http://bootstrapdocs.com/v3.3.5/docs/components/#dropdowns

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM