如何对齐页面上的最后一张照片 [英] How to align the last photos on a page

查看:74
本文介绍了如何对齐页面上的最后一张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页上对齐一些照片,但我不知道是否有可能让它们在底部对齐,因为它们位于顶部。

这是jsfiddle:< a href =https://jsfiddle.net/Sodel/cyarvrdw/8/>编辑小提琴 - JSFiddle [ ^ ]



我的尝试:



我希望它们具有相同的宽度但不同的高度,因此图像可以缩放到正常大小

I want to align some photos on a webpage but i don't know if it is possible to have them aligned at the bottom as they are at the top.
Here is the jsfiddle: Edit fiddle - JSFiddle[^]

What I have tried:

I wanted to have them the same width but different height so the images can be scaled to their normal size

推荐答案

你可以创建一个单独的PHP文件,并将它们放在文件夹中,然后为php看看下面的布局示例创建css文件。你还想在php文件中引用那些css文件。例如:
you can create a seperate php files and put them in in folders then create css files for the php look at the layout example below. you also want to reference those css files inside the php file(s). for example:
require 'includes/example.php';

。希望这可以帮助你。你也可以尝试一下。

. Hope this helps you out. you can try this too.

<?php include 'includes/footer.php';?>










website folder
      |
      |---index.php
      |---includes folder
          |---------------Header.php
          |---------------footer.php
      |---css folder
          |--style.css


这篇关于如何对齐页面上的最后一张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆