我试图让4个图像的所有行都具有相同的高度尺寸,我已经试过玩的宽度和高度使用CSS,但似乎没有任何工作,肖像图片最后总是比风景的人高,这里的代码:
<div class="container" >
<div class="jumbotron" style="background: rgba(200, 54, 54, 0.0);">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img class="left-block img-responsive" src="images/genimage.png" width="160" height="160" alt="" /></a>
<p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">One Random Item</p>
<p>50 €</p>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img class="left-block img-responsive" src="images/genimage.png" width="160" height="160" alt="" /></a>
<p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">Another Random Item</p>
<p>50 €</p>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 col-xs-12">
<a href="#"><img class="left-block img-responsive" …Run Code Online (Sandbox Code Playgroud) 根据https://msdn.microsoft.com/en-us/library/ms184391.aspx
以下选择以不同的方式对Locations表进行排序,具体取决于整理,为什么以及如何将西班牙语整理将"Chiapas"作为最后一行?
CREATE TABLE Locations
(Place varchar(15) NOT NULL);
GO
INSERT Locations(Place) VALUES ('Chiapas'),('Colima')
, ('Cinco Rios'), ('California');
GO
--Apply an typical collation
SELECT Place FROM Locations
ORDER BY Place
COLLATE Latin1_General_CS_AS_KS_WS ASC;
GO
-- Apply a Spanish collation
SELECT Place FROM Locations
ORDER BY Place
COLLATE Traditional_Spanish_ci_ai ASC;
GO
Run Code Online (Sandbox Code Playgroud)
第一个查询(标准整理):
Place
-------------
California
Chiapas
Cinco Rios
Colima
Run Code Online (Sandbox Code Playgroud)
第二个查询(西班牙语整理):
Place
-------------
California
Cinco Rios
Colima
Chiapas
Run Code Online (Sandbox Code Playgroud)