Displaying command button with image only

后端 未结 4 562
小鲜肉
小鲜肉 2020-12-15 07:34

I am trying to display a button with image only on my page but all I see is the button with ^. Following is the code for my button:



        
4条回答
  •  被撕碎了的回忆
    2020-12-15 07:44

    Put this on your css style:

        .dolar-icon {
        background-image: url("#{facesContext.externalContext.request.contextPath}/resources/imagenes/dolar.png") !important;}
    

    Now you can use the icon "dolar-icon" that you defined in your css.

    
    

提交回复
热议问题