Is there a foreground equivalent to background-image in css?

后端 未结 4 1289
一生所求
一生所求 2020-12-13 17:02

I want to add some shine to an element on webpage. I would prefer if I don\'t have to add additional html to the page. I want the image to appear in front of the element rat

4条回答
  •  情歌与酒
    2020-12-13 17:53

    If you need a white-transparent foreground

    This is for future visitors like me who are considering adding a white-transparent foreground to an element to communicate that it's hidden / disabled for instance. You can often achieve your goal by simply lowering the opacity below 1:

    .is-hidden {
        opacity: 0.5;
    }
    visible
    
    visible

提交回复
热议问题