我的图像保持堆叠在一行,但我希望他们两个两个相邻,有人看到这个问题吗?
<div class="contentText" id="sectieC">
<H2>2014</H2>
</div>
<div class="row">
<div class="small-6 large-6 columns">
<img src="content/img/kaart.gif"></img>
<br></br>
<img src="content/img/GIF_1.gif"></img>
</div>
</div>
我的CSS文件如下:
.row {
width: 100%;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
max-width: 62.5rem;
}
.row:before, .row:after {
content:" ";
display: table;
}
.row:after {
clear: both;
}
.row.collapse > .column, .row.collapse > .columns {
padding-left: 0;
padding-right: 0;
}
.row.collapse .row {
margin-left: 0;
margin-right: 0;
}
.row .row {
width: auto;
margin-left: -0.9375rem;
margin-right: -0.9375rem;
margin-top: 0;
margin-bottom: 0;
max-width: none;
}
.row .row:before, .row .row:after {
content:" ";
display: table;
}
.row .row:after {
clear: both;
}
.row .row.collapse {
width: auto;
margin: 0;
max-width: none;
}
.row .row.collapse:before, .row .row.collapse:after {
content:" ";
display: table;
}
.row .row.collapse:after {
clear: both;
}
.column, .columns {
padding-left: 0.9375rem;
padding-right: 0.9375rem;
width: 100%;
float: left;
}
问题是我没有编写这个CSS,所以我没有进行思考过程,现在我有点迷失在其中。但是我必须做出最后的结果,不能联系到制作CSS文件的人。
你需要用css移动第二张图片。我创建了一个小提琴:
<div class="contentText" id="sectieC">
<H2>2014</H2>
</div>
<div class="row">
<div id="first-image">
<img src="http://a.disquscdn.com/uploads/users/9992/2883 /avatar92.jpg?1420368091"></img>
<br></br>
<img id="second-image" src="http://a.disquscdn.com/uploads/users/9992/2883/avatar92.jpg?1420368091"></img>
</div>
</div>
css: #second-image{position:relative; left: 150px; bottom: 110px;}
https://jsfiddle.net/hdn3bfdu/查看最终的JSFiddle并使用那里提到的代码:https://jsfiddle.net/h7fgcLnz/
给两个图像设置宽度和高度,如:
<img src="imglocation" width="200" height="200" alt="description">