Browse Source

添加全局样式隐藏所有滚动条

pull/1/head
徐飞洋 3 months ago
parent
commit
e9bb2c2775
  1. 27
      app.wxss
  2. 6
      pages/seller/index.wxml

27
app.wxss

@ -1,4 +1,31 @@
/**app.wxss**/
/* 隐藏全局滚动条 */
::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
/* 隐藏scroll-view组件的滚动条 */
scroll-view {
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
scroll-view::-webkit-scrollbar {
display: none;
}
/* 隐藏页面滚动条 */
page {
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
page::-webkit-scrollbar {
display: none;
}
.container {
display: flex;
flex-direction: column;

6
pages/seller/index.wxml

@ -553,7 +553,7 @@
<view bindtap="saveEdit" style="font-size: 32rpx; color: #07c160;">提交</view>
</view>
<scroll-view scroll-y="true" style="height: calc(100vh - 90rpx); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 40rpx 60rpx; box-sizing: border-box;">
<scroll-view scroll-y="true" style="height: calc(100vh - 90rpx); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 40rpx 60rpx; box-sizing: border-box; -webkit-scrollbar: none; scrollbar-width: none;">
<view>
<!-- 照片上传区域 -->
@ -722,7 +722,7 @@
<!-- 商品名称列表 -->
<scroll-view
scroll-y="true"
style="max-height: 60vh; padding: 0; -webkit-overflow-scrolling: touch;"
style="max-height: 60vh; padding: 0; -webkit-overflow-scrolling: touch; -webkit-scrollbar: none; scrollbar-width: none;"
enable-back-to-top="false"
>
<view
@ -772,7 +772,7 @@
<!-- 规格列表 -->
<scroll-view
scroll-y="true"
style="max-height: 60vh; padding: 0; -webkit-overflow-scrolling: touch;"
style="max-height: 60vh; padding: 0; -webkit-overflow-scrolling: touch; -webkit-scrollbar: none; scrollbar-width: none;"
enable-back-to-top="false"
>
<view

Loading…
Cancel
Save