当前位置:网站首页>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>
边栏推荐
- Advantages of link local address in IPv6
- Management background --5, sub classification
- Senior soft test (Information System Project Manager) high frequency test site: project quality management
- Mysql database basic operations DML
- 2022-07-05 使用tpcc对stonedb进行子查询测试
- MySQL----初识MySQL
- Should novice programmers memorize code?
- PVL EDI 项目案例
- 12、 Start process
- Learn the principle of database kernel from Oracle log parsing
猜你喜欢
(十八)LCD1602实验
Config:invalid signature solution and troubleshooting details
Seata aggregates at, TCC, Saga and XA transaction modes to create a one-stop distributed transaction solution
Management background --3, modify classification
二分图判定
基於 QEMUv8 搭建 OP-TEE 開發環境
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
Adavit -- dynamic network with adaptive selection of computing structure
Crawler obtains real estate data
二叉(搜索)树的最近公共祖先 ●●
随机推荐
网络基础入门理解
每日一题:力扣:225:用队列实现栈
i. Mx6ull build boa server details and some of the problems encountered
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
软考高级(信息系统项目管理师)高频考点:项目质量管理
[leetcode] 19. Delete the penultimate node of the linked list
Inno Setup 打包及签名指南
qt quick项目offscreen模式下崩溃的问题处理
(十八)LCD1602实验
3DMax指定面贴图
Solve project cross domain problems
CCNA-思科网络 EIGRP协议
图像的spatial domain 和 frequency domain 图像压缩
剪映+json解析将视频中的声音转换成文本
自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
Pit encountered by handwritten ABA
MySQL教程的天花板,收藏好,慢慢看
case 关键字后面的值有什么要求吗?
Memorabilia of domestic database in June 2022 - ink Sky Wheel
Barcodex (ActiveX print control) v5.3.0.80 free version