首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Portfolio随机间距@媒体查询

Portfolio随机间距@媒体查询
EN

Stack Overflow用户
提问于 2013-09-12 22:46:41
回答 1查看 433关注 0票数 0

我在这个网站上使用"Megafolio“jQuery插件(http://codecanyon.net/item/megafolio-gallery-jquery-plugin/980161):summer.html。所有的一切都完美的工作直到最小的移动调整大小,这创造了一些真正有趣的空白随机后(或之前)的一些图像(即“自行车”和“划船”之间的“高尔夫”和“远足”之间)。以前有人处理过这个问题吗?最重要的是,我如何解决这个问题?!任何事都有帮助。我的密码在下面。

提前感谢!

图像CSS:

代码语言:javascript
复制
.cell1x1, .cell1x2, .cell2x1, .cell2x2 {
background-color: #FFFFFF;
overflow: hidden;

}

组合脚本选项

代码语言:javascript
复制
<script type="text/javascript">

            $(document).ready(function() {

                <!--    PORTFOLIO   -->
                 $("#products").portfolio({ 
                    <!-- GRID SETTINGS -->
                    gridOffset:6,               <!-- Manual Right Padding Offset for 100% Width -->
                    cellWidth:150,                      <!-- The Width of one CELL in PX-->
                    cellHeight:150,                     <!-- The Height of one CELL in PX-->
                    cellPadding:6,                      <!-- Spaces Between the CELLS -->
                    entryProPage:30,                        <!-- The Max. Amount of the Entries per Page, Rest made by Pagination -->

                    <!-- CAPTION SETTING -->
                    captionOpacity:75,

                    <!-- FILTERING -->
                    filterList:"#portfolio-filter",     <!-- Which Filter is used for the Filtering / Pagination -->
                    title:"#selected-filter-title",     <!-- Which Div should be used for showing the Selected Title of the Filter -->                                              
                    <!-- Page x from All Pages -->
                    pageOfFormat:"Page #n of #m",       <!-- The #n will be replaced with the actual Item Nr., #m will be replaced with the amount of all items in the filtered Gallery-->                      
                    <!-- Social Settings-->
                    showGoogle:"no",                    <!-- Show The Social Buttons ...-->
                    showFB:"no",
                    showTwitter:"no",
                    urlDivider:"?",                     <!-- What is the Divider in the Url to add the Variables, Filter and Image ID . Impotant for WordPress i.e. Social will share this link with this divider -->

                    showEmail:"no",                         <!-- ADD EMAIL TO LINK ALSO TO THE LIGHTBOX  -->
                    emailLinkText:"Email to Friend",
                    emailBody:"mailto:email@echoecho.com?body=I found some great File here #url",   <!-- The #url will be replaced with the url of the image -->
                    emailUrlCustomPrefix:"http://www.themepunch.com/",                              <!-- Use this if you wish a Custom Prefix to Link Path -->                      
                    emailUrlCustomSuffix:"?ref=...",                                                <!-- Use This if you wish to use a Custtom Suffix for Link Path -->


                    <!-- BACKGROUND -->
                    backgroundHolder:"#main-background",
                    backgroundSlideshow:0
                })  





        });

EN

回答 1

Stack Overflow用户

发布于 2013-10-14 19:02:41

由于html中有硬编码的图像,所以您可能需要为移动应用设置一个mediaQuery,使所有图像的宽度都达到100% ....something,如下所示:

代码语言:javascript
复制
 @media only screen and (max-width : 480px) {
   /* Smartphone view: 1 tile */
   .catall img {
      width: 100%;
   }
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18775516

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档