<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 划分

        Grid generation amp; division with css/js/php(网格生成与用 css/js/php 划分)
          <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 划分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  • <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>
                          <tbody id='bnsuS'></tbody>

                        1. <legend id='bnsuS'><style id='bnsuS'><dir id='bnsuS'><q id='bnsuS'></q></dir></style></legend>