当前位置:网站首页>uniapp设置背景图效果demo(整理)
uniapp设置背景图效果demo(整理)
2022-07-06 14:55:00 【我是开心呀】
设置背景图有时候会报错-用行内解决
<template>
<view class="bg align-center" :style="{backgroundImage: 'url(' + imgSrc.src+ ')'}">立即购买</view>
</template>
<script>
export default {
data(){
return{
imgSrc:{
src: '../../static/home/lists.svg', //图片路径
}
}
}
}
</script>
<style>
.bg {
background-size: 100% 100%;
}
</style>
边栏推荐
- return 关键字
- CCNA Cisco network EIGRP protocol
- SQL Server生成自增序号
- ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
- leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
- Unity3d Learning Notes 6 - GPU instantiation (1)
- signed、unsigned关键字
- 2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行
- The nearest common ancestor of binary (search) tree ●●
- NetXpert XG2帮您解决“布线安装与维护”难题
猜你喜欢

Oracle control file and log file management

Attack and defense world ditf Misc

二叉(搜索)树的最近公共祖先 ●●

Installation and use of labelimg

NPDP certification | how do product managers communicate across functions / teams?

图像的spatial domain 和 frequency domain 图像压缩

Aardio - 通过变量名将变量值整合到一串文本中

第4章:再谈类的加载器

Web APIs DOM time object
![[leetcode daily clock in] 1020 Number of enclaves](/img/2d/3d12f20c8c73fb28044c01be633c99.jpg)
[leetcode daily clock in] 1020 Number of enclaves
随机推荐
MySQL数据库基本操作-DML
做接口测试都测什么?有哪些通用测试点?
Web APIs DOM time object
MySQL----初识MySQL
0 basic learning C language - interrupt
ZABBIX proxy server and ZABBIX SNMP monitoring
2022-07-05 使用tpcc对stonedb进行子查询测试
【数字IC手撕代码】Verilog无毛刺时钟切换电路|题目|原理|设计|仿真
3DMax指定面贴图
Aardio - 通过变量名将变量值整合到一串文本中
Barcodex (ActiveX print control) v5.3.0.80 free version
基於 QEMUv8 搭建 OP-TEE 開發環境
【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
图像的spatial domain 和 frequency domain 图像压缩
Chapter 4: talk about class loader again
数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据
Gd32f4xx serial port receive interrupt and idle interrupt configuration
case 关键字后面的值有什么要求吗?
2500 common Chinese characters + 130 common Chinese and English characters
HDR image reconstruction from a single exposure using deep CNNs阅读札记