iOS Scrollbar Frustrations: Troubleshooting Overflow CSS
Developing for an iPad website, you stumbled upon an unexpected issue: CSS overflow properties (overflow: auto or scroll) fail to display scrollbars despite enabling two-finger scrolling. This quirk is exclusive to iOS devices.
Addressing the Issue:
Updated Fix (iOS 5beta and Onward):
As pointed out by kritzikratzi, a new property introduced in iOS 5beta (-webkit-overflow-scrolling: touch) can resolve this issue, triggering the expected scrolling behavior.
Original Remedy (iOS 5 and Below):
Unfortunately, neither overflow: auto nor scroll generates scrollbars on iOS devices due to the limited screen space.取而代之的是,兩指滑動機制是指定滾動內容的指定方法。
替代方案:@媒體查詢:使用@media查詢在iPhone設備上掩蓋溢出並在iPhone設備上完全顯示內容。[&& && && && && && && &&華修華修復@Media @media查詢:[&& && && && && && && &&&&&&& rell = rel = rel = rel = rel = rel = rel = rell = rell = rell = 480px:480px)
免責聲明: 提供的所有資源部分來自互聯網,如果有侵犯您的版權或其他權益,請說明詳細緣由並提供版權或權益證明然後發到郵箱:[email protected] 我們會在第一時間內為您處理。
Copyright© 2022 湘ICP备2022001581号-3