Flexslider IMG在768px及以下设置为0x0

时间:2014-11-21 18:07:00

标签: javascript jquery html css flexslider

我有一个flexslider,可以在769px及更高的媒体查询下正常工作,但是当视口达到768px宽时,flexslider中的IMG在Chrome检查器中显示为0x0大小。检查器中的位置IMG设置为0x0

http://70e-solutions.mybigcommerce.com/

以下是调用的完整代码:

<div id="ibSlideShow">
  <div class="inner">
    <div class="Content Widest" id="LayoutColumn1">
      <script type="text/javascript" src="javascript/jquery/plugins/jquery.flexslider.js"></script>
      <script type="text/javascript">
        $(window).load(function() {
          $('.slide-show').flexslider({
            slideshowSpeed: $('.slide-show').attr('data-swap-frequency') * 1000,
            animation: "slide",
            pauseOnHover: true,
            controlNav: true,
            directionNav: true
          });
        });
      </script>

      <div class="slide-show slide-show-render slide-show-render-full flexslider Panel" data-swap-frequency="1000" id="HomeSlideShow">
    	<ol class="slides">
          <li class="slide clone">
            <a href="#">
              <div class="slide-content">
				<div class="slide-overlay">
					<h2 class="slide-heading" style="color: #ffffff"></h2>
					<p class="slide-text" style="color: #ffffff"></p>
					<div class="slide-button" style="display:none; visibility: hidden"><span class="btn" style="color: #ffffff"></span></div>
				</div>
				<span class="slide-image-wrapper">
					<img class="slide-image" src="http://cdn6.bigcommerce.com/s-y4b1n34/product_images/theme_images/slide_2.jpg?t=1416519561" alt="">
				</span>
		      </div>
	        </a>
          </li>
		  <li class="slide">
            <a href="">
              <div class="slide-content">
				<div class="slide-overlay">
					<h2 class="slide-heading" style="color: #ffffff"></h2>
					<p class="slide-text" style="color: #ffffff"></p>
					<div class="slide-button" style="display:none; visibility: hidden"><span class="btn" style="color: #ffffff"></span>
                    </div>
				</div>
				<span class="slide-image-wrapper">
					<img class="slide-image" src="http://cdn6.bigcommerce.com/s-y4b1n34/product_images/theme_images/slide_1.jpg?t=1416519561" alt="">
                </span>
              </div>
            </a>
          </li>
          <li class="slide">
				<a href="">
					<div class="slide-content">
							<div class="slide-overlay">
								<h2 class="slide-heading" style="color: #ffffff"></h2>
								<p class="slide-text" style="color: #ffffff"></p>
								<div class="slide-button" style="display:none; visibility: hidden"><span class="btn" style="color: #ffffff"></span></div>
							</div>
							<span class="slide-image-wrapper">
								<img class="slide-image" src="http://cdn6.bigcommerce.com/s-y4b1n34/product_images/theme_images/slide_2.jpg?t=1416519561" alt="">
							</span>
					</div>
				</a>
			</li>
		</ol>
      </div>
    </div>
  </div>
</div>

1 个答案:

答案 0 :(得分:1)

在responsive.css?t = 1416605492,你有

/* 768px */
@media screen and (max-width: 768px) {

    /* Hide */

    #HomeSlideShow,
    #ProductBreadcrumb,
    .productlist-page .Left {
        display: none;
    }

#HomeSlideShow设置为隐藏从此部分删除#HomeSlideShow