当行内样式遇见背景图片
当行内样式遇见背景图片
- 今天需要在行内样式中引入背景图片,但是发现游览器并不解析背景图片的地址
- 然后己经查询找到了一种解决方法
`style = "background: url(" + require('assets/img/green.jpg') + ")`
- 但是不知其原理
本文来自博客园,作者:懒惰ing,转载请注明原文链接:https://www.cnblogs.com/landuo629/p/12576404.html
`style = "background: url(" + require('assets/img/green.jpg') + ")`
本文来自博客园,作者:懒惰ing,转载请注明原文链接:https://www.cnblogs.com/landuo629/p/12576404.html