【发布时间】:2018-07-09 06:09:01
【问题描述】:
首先我想警告你,我对 HTML 很陌生,所以如果我问愚蠢的问题,请提前原谅我! 我已经开始了这门课,我们需要创建自己的网站,他们教我们如何创建一个简单的图片库,但只能是水平的。但是,为了为我的网站创建更好的设计,我想创建一个图像库,但垂直。我能怎么做?我在其他地方看到的答案很少,但我们还没有学到任何复杂的东西,所以我什么都不懂! 这是我在 HTML 文档上写的内容:
<head>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://media.mq.edu.au/mas240/js/gallery.js"></script>
</head>
<section>
<img src="images/th-dancestudio2.jpg" class="gallery" href="images/dancestudio2.jpg" />
<img src="images/th-dancestudio3.jpg" class="gallery" href="images/dancestudio3.jpg" />
<img src="images/th-dancestudio4.jpg" class="gallery" href="images/dancestudio4.jpg" />
<img src="images/th-dancestudio5.jpg" class="gallery" href="images/dancestudio5.jpg" />
</section>
这是我在 CSS 文档上写的:
.gallery {
float: center;
margin-top: 30px;
margin-bottom: 20px;
border: 5px solid black;
border-radius: 15px;
}
【问题讨论】: