overlay on clickable region - CSS

前端 未结 3 737
旧时难觅i
旧时难觅i 2020-12-19 06:31

Is there a way I can have a partially transparent image (or anything really) overlay a clickable region using XHTML and CSS?

3条回答
  •  旧巷少年郎
    2020-12-19 07:14

    Wrap the overlay and background in a clickable div, and set the opacity attribute of the overlay to something less than 1.

    http://www.w3schools.com/Css/css_image_transparency.asp

提交回复
热议问题