当前位置:网站首页>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>
边栏推荐
- RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
- Self made j-flash burning tool -- QT calls jlinkarm DLL mode
- 做接口测试都测什么?有哪些通用测试点?
- The SQL response is slow. What are your troubleshooting ideas?
- Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
- 基於 QEMUv8 搭建 OP-TEE 開發環境
- Hardware development notes (10): basic process of hardware development, making a USB to RS232 module (9): create ch340g/max232 package library sop-16 and associate principle primitive devices
- General implementation and encapsulation of go diversified timing tasks
- Plafond du tutoriel MySQL, bien collecté, regardez lentement
- Export MySQL table data in pure mode
猜你喜欢
CocosCreator+TypeScripts自己写一个对象池
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
Installation and use of labelimg
Config:invalid signature solution and troubleshooting details
Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa
Mysql database basic operations DML
Seata aggregates at, TCC, Saga and XA transaction modes to create a one-stop distributed transaction solution
Classic sql50 questions
数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据
NPDP certification | how do product managers communicate across functions / teams?
随机推荐
LeetCode刷题(十一)——顺序刷题51至55
Data storage (1)
中国1,4-环己烷二甲醇(CHDM)行业调研与投资决策报告(2022版)
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
Aardio - 通过变量名将变量值整合到一串文本中
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
labelimg的安装与使用
[leetcode daily clock in] 1020 Number of enclaves
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
SQL server generates auto increment sequence number
Applet system update prompt, and force the applet to restart and use the new version
Crawler obtains real estate data
Common sense: what is "preservation" in insurance?
2022年6月国产数据库大事记-墨天轮
Installation and use of labelimg
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
如何用程序确认当前系统的存储模式?
网络基础入门理解
OpenCV VideoCapture. Get() parameter details
数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据