uniapp背景图片
时间: 2023-08-18 08:04:49 浏览: 329
uniapp图片上传
在Uniapp中设置背景图片的方法是在<style>标签中添加相应的样式。可以使用background-image属性来设置背景图片的URL,background-size属性来设置背景图片的尺寸,background-repeat属性来设置是否重复背景图片,background-position属性来设置背景图片的位置。例如,可以在page选择器下添加以下样式来实现背景图片全屏显示的效果:
```css
page {
background-image: url('/<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [uniapp 背景图片全屏显示在整个页面](https://blog.csdn.net/qq_36016297/article/details/129836183)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Uniapp设置页面的背景图片](https://blog.csdn.net/pucker/article/details/90475788)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文