【发布时间】:2016-01-17 14:59:17
【问题描述】:
更新!!!
每次在横向屏幕设备上查看页面时,我仍然面临同样的错误。
CSS:
f5 {
text-transform: uppercase;
color: #fff;
font-size: 30px;
font-weight: bold;
}
关于我们
<div class="containerpreview">
<br>
<f5>Check out our products</f5>
<br>
<f6>and Experience no-frills delivery</f6>
<div style="margin-top:40px">
<div class="buttoneshop"><a href="...">Eshop</a></div>
</div>
</div>
有没有办法让两者之间的间距更近?当我发出命令时
text-transform: uppercase;
间距很好。
除此之外,有没有办法使href下的src内的图像居中?
css
.images_1_of_4 img {
max-width: 100%;
<!-- height: 200px; -->
width: 200px;
align: middle;
}
.img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
.grid_preview {
height: 200px;
}
shop.php
<div class="grid_1_of_4 images_1_of_4">
<div class="grid_preview">
<a href="..."><img src="..." alt=""></a>
</div>
</div>
【问题讨论】:
-
你可能有这个设置
text-align: justify;设置它为text-align: left; -
很好,@Vallentin
-
不工作。其实我忘了补充。当我 rwd 时它不起作用@Vallentin
标签: css image alignment href src