响应式Fotorama。如何将它响应到中间div?

时间:2014-07-05 15:39:42

标签: jquery html css responsive-design fotorama

我已将Fotorama图库添加到网站,但它在移动设备上没有响应。我认为,因为数据宽度= 100%,它使用图像宽度或中间div。

 <div class="wrapper">
...
<div class="middle">
<div class="gallery"><div class="fotorama" data-nav="thumbs" data-arrows="true" data-click="true" data-swipe="true"
     data-width="100%"
     data-ratio="800/600"
     data-maxwidth="889"
     data-maxheight="604"
     data-loop="true">
...

和css:

#wrapper {
    max-width: 960px;
    margin: 0px auto;
    min-height: 100%;
    position: relative;
    background-color: #fbfbfb;
    -moz-box-shadow: 0 0 10px rgba(0,0,0,.47);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,.47);
    box-shadow: 0 0 10px rgba(0,0,0,.47);
}

.middle {
  width: 100%;
  padding: 1% 0 2%;
  position: relative;
  display: table;
}

 .gallery {margin: 1.1% 3% 0 3%;}

网页:http://lfk-br.com.ua/gallery.html

1 个答案:

答案 0 :(得分:0)

我看不出问题in your code

也许你只需要:

<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="HandheldFriendly" content="true">

在页面的标题中声称它已经过改编,适用于移动设备,

并且他们不应该使用自动缩放。

相关问题