ios - Shopify 网站仅在 Ipad 的右侧提供空白

标签 ios css ipad shopify responsive

我在这个网站上遇到问题 fearofmissingoutfomo.com在 iPad 中查看时,右侧有一个白色条。 我的代码是

html,body { 
margin: 0; 
padding: 0;
border: 0;
@include smooth_font();}
{% if settings.use_bg_image %}
body {
background: {{settings.shop_bg_color}} url({{ 'bg.png' | asset_url }}) 0 0 no-repeat;
}
body.index-template {
 background: {{settings.shop_bg_color}} url({{ 'bg.png' | asset_url }}) 0 0 no-repeat;
padding-top: 40px;
padding-bottom: 40px;
}

非常感谢您的帮助。我也看到了一些相关的线程,但无法将其与我的问题联系起来。谢谢。

最佳答案

这个问题是因为这个部分而发生的: enter image description here

目前你的部分有这样的 HTML

<div id="shopify-section-1509186783462" class="shopify-section  index-section products-grid">
   <section data-section-id="1509186783462" data-section-type="products">
      <div class="section-header text-center">
         <h2>View our featured christmas items</h2>
      </div>
      <div class="grid grid--uniform grid--view-items">
         ......
      </div>
      <div class="text-center view-more btn">
         <a href="/collections/christmas">
         See more
         </a>
      </div>
   </section>
</div>

你应该修复它并像这样添加 containerrow:

<div id="shopify-section-1509186783462" class="shopify-section  index-section products-grid">
   <section data-section-id="1509186783462" data-section-type="products">
      <div class="container">
         <div class="row">
            <div class="section-header text-center">
               <h2>View our featured christmas items</h2>
            </div>
            <div class="grid grid--uniform grid--view-items">
               ......
            </div>
            <div class="text-center view-more btn">
               <a href="/collections/christmas">
               See more
               </a>
            </div>
         </div>
      </div>
   </section>
</div>  

关于ios - Shopify 网站仅在 Ipad 的右侧提供空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47142026/

相关文章:

ios - 如何在不使用Api的情况下在uitableview中进行分页?

ios - 获得第一个Google Image Web服务

javascript - JS 文本未出现在 HTML5 Canvas 上

javascript - 第一次加载页面时移动 Safari 崩溃

swift - iPad Pro Measure App 如何计算人的高度?

ios - 在 UITextVIew 编辑为真时检测 NSAttributedString 中附加图像的点击

ios - iphone 5 和 iphone 4 问题上的 iAd 定位

css - 如何强制 Office UI Fabric ChoiceGroup 水平对齐

javascript - 以表格形式显示选项中的选定值

iphone - 检测IOS设备类型