<tfoot id='u6AB0'></tfoot>
      1. <i id='u6AB0'><tr id='u6AB0'><dt id='u6AB0'><q id='u6AB0'><span id='u6AB0'><b id='u6AB0'><form id='u6AB0'><ins id='u6AB0'></ins><ul id='u6AB0'></ul><sub id='u6AB0'></sub></form><legend id='u6AB0'></legend><bdo id='u6AB0'><pre id='u6AB0'><center id='u6AB0'></center></pre></bdo></b><th id='u6AB0'></th></span></q></dt></tr></i><div id='u6AB0'><tfoot id='u6AB0'></tfoot><dl id='u6AB0'><fieldset id='u6AB0'></fieldset></dl></div>
        <legend id='u6AB0'><style id='u6AB0'><dir id='u6AB0'><q id='u6AB0'></q></dir></style></legend>
      2. <small id='u6AB0'></small><noframes id='u6AB0'>

          <bdo id='u6AB0'></bdo><ul id='u6AB0'></ul>
      3. 网格生成与用 css/js/php 划分

        时间:2024-08-22
          <tbody id='Z11al'></tbody>
      4. <small id='Z11al'></small><noframes id='Z11al'>

          <tfoot id='Z11al'></tfoot>
          • <bdo id='Z11al'></bdo><ul id='Z11al'></ul>

                • <legend id='Z11al'><style id='Z11al'><dir id='Z11al'><q id='Z11al'></q></dir></style></legend>

                  <i id='Z11al'><tr id='Z11al'><dt id='Z11al'><q id='Z11al'><span id='Z11al'><b id='Z11al'><form id='Z11al'><ins id='Z11al'></ins><ul id='Z11al'></ul><sub id='Z11al'></sub></form><legend id='Z11al'></legend><bdo id='Z11al'><pre id='Z11al'><center id='Z11al'></center></pre></bdo></b><th id='Z11al'></th></span></q></dt></tr></i><div id='Z11al'><tfoot id='Z11al'></tfoot><dl id='Z11al'><fieldset id='Z11al'></fieldset></dl></div>
                • 本文介绍了网格生成与用 css/js/php 划分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在做一个网络项目,我正在考虑如何最好地处理以下场景:

                  I am working on a web project, and I am thinking on how to best approach the following scenario:

                  我在数据库中有一堆图像,我想将其加载到网格中.排名靠前的图片需要更大的画布,而排名较低/未排名的则不需要.图像的尺寸不是标准的,因此它可以是具有不同尺寸的纵向或横向图片.纵横比需要保持不变,并且窗口需要完全水平填充(宽度为 100%).用户可以垂直滚动.

                  I have a bunch of images in a database and I want to load this in a grid. High ranked images need to have a bigger canvas, while lower/not ranked ones don't. The size of the images are not standard so it could be either a portrait or a landscape picture with each different sizes. The aspect ratio needs to remain intact, and the window needs to be totally filled horizontally (with a width of 100%). Users can scroll vertically.

                  为了让您了解网格中字段的划分,我附上了一个快速线框.

                  To give you an idea of the division of the fields in the grid, I have attached a quick wireframe.

                  你们知道如何最好地解决这个问题吗?我在想也许我应该标准化"几行.并随机放置行,使其看起来不像预设.但这显然不是真正计算出来的.任何想法表示赞赏!

                  Do you guys have an idea on how to approach this best? I was thinking maybe I should "standardize" a few rows. And place the rows randomly so that it does not look pre-set. But this is obviously not really calculated. Any thoughts are appreciated!

                  推荐答案

                  最终使用 Masonryhttp://masonry.desandro.com/

                  Ended up using Masonry http://masonry.desandro.com/

                  我通过将 window.width 除以 5 来设置每一列的宽度.

                  I set the width of each individual column, by dividing the window.width by 5.

                  这篇关于网格生成与用 css/js/php 划分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 magento 订单网格中正确添加 shipping_description 列? 下一篇:使用 ajax 的基于 php 的应用程序的最佳数据网格

                  相关文章

                • <small id='bnsuS'></small><noframes id='bnsuS'>

                  <i id='bnsuS'><tr id='bnsuS'><dt id='bnsuS'><q id='bnsuS'><span id='bnsuS'><b id='bnsuS'><form id='bnsuS'><ins id='bnsuS'></ins><ul id='bnsuS'></ul><sub id='bnsuS'></sub></form><legend id='bnsuS'></legend><bdo id='bnsuS'><pre id='bnsuS'><center id='bnsuS'></center></pre></bdo></b><th id='bnsuS'></th></span></q></dt></tr></i><div id='bnsuS'><tfoot id='bnsuS'></tfoot><dl id='bnsuS'><fieldset id='bnsuS'></fieldset></dl></div>
                  • <bdo id='bnsuS'></bdo><ul id='bnsuS'></ul>
                  <tfoot id='bnsuS'></tfoot>
                  1. <legend id='bnsuS'><style id='bnsuS'><dir id='bnsuS'><q id='bnsuS'></q></dir></style></legend>