当前位置:网站首页>Uniapp setting background image effect demo (sorting)
Uniapp setting background image effect demo (sorting)
2022-07-06 22:34:00 【I'm happy】
Sometimes setting the background image will report an error - Use intra bank solution
<template>
<view class="bg align-center" :style="{backgroundImage: 'url(' + imgSrc.src+ ')'}"> Buy now </view>
</template>
<script>
export default {
data(){
return{
imgSrc:{
src: '../../static/home/lists.svg', // Picture path
}
}
}
}
</script>
<style>
.bg {
background-size: 100% 100%;
}
</style>
边栏推荐
- Export MySQL table data in pure mode
- Improving Multimodal Accuracy Through Modality Pre-training and Attention
- SQL Server生成自增序号
- What are the interface tests? What are the general test points?
- leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
- How do I write Flask's excellent debug log message to a file in production?
- C# 三种方式实现Socket数据接收
- Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
- Extern keyword
- pytorch_YOLOX剪枝【附代码】
猜你喜欢

Should novice programmers memorize code?

How to confirm the storage mode of the current system by program?

Mise en place d'un environnement de développement OP - tee basé sur qemuv8

Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)

config:invalid signature 解决办法和问题排查详解

MySQL ---- first acquaintance with MySQL

CocosCreator+TypeScripts自己写一个对象池

Aardio - 利用customPlus库+plus构造一个多按钮组件

Leetcode exercise - Sword finger offer 26 Substructure of tree

在IPv6中 链路本地地址的优势
随机推荐
【无标题】
three.js绚烂的气泡效果
Learn the principle of database kernel from Oracle log parsing
Chapter 4: talk about class loader again
Leetcode exercise - Sword finger offer 26 Substructure of tree
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
Improving Multimodal Accuracy Through Modality Pre-training and Attention
每日一题:力扣:225:用队列实现栈
Mysql database basic operations DML
枚举与#define 宏的区别
OpenNMS分离数据库
2014 Alibaba web pre intern project analysis (1)
How do I write Flask's excellent debug log message to a file in production?
volatile关键字
Aardio - 封装库时批量处理属性与回调函数的方法
视图(view)
[IELTS speaking] Anna's oral learning record part1
Spatial domain and frequency domain image compression of images
HDU 5077 NAND (violent tabulation)
NPM cannot install sharp