Commit b40b2dd486099ac2f64e41b3cb3e8858dfd6ade8
1 parent
ce83d55e
fix: not show background image or color
Showing
1 changed file
with
4 additions
and
3 deletions
front-end/h5/src/components/plugins/lbp-background.js
| 1 | 1 | /* |
| 2 | 2 | * @Author: ly525 |
| 3 | 3 | * @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 | |
| 6 | 6 | * @FilePath: /luban-h5/front-end/h5/src/components/plugins/lbp-background.js |
| 7 | 7 | * @Github: https://github.com/ly525/luban-h5 |
| 8 | 8 | * @Description: luban-h5 background image/color component/plugin |
| ... | ... | @@ -32,7 +32,8 @@ export default { |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | 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;"> | |
| 36 | 37 | <div style={style}></div> |
| 37 | 38 | </div> |
| 38 | 39 | ) | ... | ... |