任何人都可以帮助我如何在iPhone Safari浏览器上修复响应,iPhone 5s菜单背景颜色仅在主页上呈现白色的问题
https://priyachaudhary.com/en/
这是因为这里用style-m编写的相同背景代码.css
.nav-sections { background: #f5f5f5; }
在主题中.css所以让它在主题中很重要.css所以它会起作用。
jQuery(document).ready(function() { var isSafari = !!navigator.userAgent.match(/Version/[d.]+.*Safari/); var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; if (isSafari && iOS) { $('.example').css('background-color', 'red'); } });