Skip to content

Commit b40b2dd

Browse files
committed
fix: not show background image or color
1 parent ce83d55 commit b40b2dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

front-end/h5/src/components/plugins/lbp-background.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* @Author: ly525
33
* @Date: 2019-11-24 18:51:58
4-
* @LastEditors : ly525
5-
* @LastEditTime : 2020-01-14 23:33:22
4+
* @LastEditors: ly525
5+
* @LastEditTime: 2020-04-23 23:17:55
66
* @FilePath: /luban-h5/front-end/h5/src/components/plugins/lbp-background.js
77
* @Github: https://github.com/ly525/luban-h5
88
* @Description: luban-h5 background image/color component/plugin
@@ -32,7 +32,8 @@ export default {
3232
}
3333

3434
return (
35-
<div style="width: 100%; height: 100%; overflow: hidden; position: absolute; z-index: -1; opacity: 1;">
35+
// [知识点:CSS] : https://codesandbox.io/s/ziyuansuzindexzaigao-wufafugaifuyuansudexiongdiyuansu-n15rd?file=/index.html
36+
<div style="width: 100%; height: 100%; overflow: hidden; position: absolute; z-index: 0; opacity: 1;">
3637
<div style={style}></div>
3738
</div>
3839
)

0 commit comments

Comments
 (0)