How to make an image button in JSF

后端 未结 4 1067
日久生厌
日久生厌 2021-02-18 14:37

I want to have a component that looks like a button, but instead of text it should contain an image. Because the standard button does not offer this functionality, I tried to u

4条回答
  •  日久生厌
    2021-02-18 14:43

    You could just move the div outside e.g.

    And style the div that way. Just make the anchor (a tag) display as a block and it should fill the whole div so it's all clickable. For example in your CSS go:

    .clickAll{
      display:block;
    }
    

提交回复
热议问题