Angular material put image on selected value of

前端 未结 2 2105
悲哀的现实
悲哀的现实 2021-02-14 04:03

I am using angular material in an angular 2 project. I want to put a static image (html element) in the selected value of mat-select. But i didn\'t find a solution.

Ca

2条回答
  •  清酒与你
    2021-02-14 04:47

    enter image description here

    when it comes to this or similar situation, I did it that:

    
         
           
              
           
           
             
           
         
       
    

    of course, inside tags and ` can be any tags as well img, and they work !!

提交回复
热议问题