CSS:怎麼樣給背景圖加透明度 opacity ?

CSS 中沒法直接給背景圖片加 opacity 屬性,可使用下面的方法繞過這個限制:css div { width: 200px; height: 200px; display: block; position: relative; } div::after { content: ""; background: url(image.jpg); opacity: 0.5; top: 0; left
相關文章
相關標籤/搜索