uni.showToast宽度
时间: 2023-10-20 21:33:32 浏览: 126
uni.showToast宽度的设定是根据设计稿的宽度来计算的。如果设计稿的宽度为640px,而元素A在设计稿上的宽度为100px,那么在uni-app中,元素A的宽度应该设为750 * 100 / 640,计算结果为117rpx。这样可以确保在不同设备上的显示效果一致。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [跨平台应用开发进阶(七) :uni-app 自定义 showToast](https://blog.csdn.net/sunhuaqiang1/article/details/123150420)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [详解微信小程序开发之——wx.showToast(OBJECT)的使用](https://download.csdn.net/download/weixin_38592332/14878023)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [页面元素宽度在 uni-app 中的宽度计算](https://blog.csdn.net/qq_37117408/article/details/116976059)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文