圖庫我儘量讓自舉的響應圖片庫,因此,如果您使屏幕更小,圖像仍然有正確的尺寸。自舉
我嘗試這樣的:
<div id="tabs-2">
<link href="~/Content/ShowMoreImages.css" rel="stylesheet" />
<ul class="row">
@foreach (var item in Model.LolaBikePhotos)
{
@model ContosoUniversity.Models.UserProfile
<li class="col-lg-2 col-md-2 col-sm-3 col-xs-4"><img src="/Images/profile/@item.ImagePath" alt="" height=150 width=200 /></li>
}
</ul>
</div>
但是,如果你使屏幕更小的圖像正在鋪設超過對方。
那麼如何讓這個迴應?
謝謝
如果我不喜歡這樣寫道:
<div id="tabs-2">
<link href="~/Content/ShowMoreImages.css" rel="stylesheet" />
<div class="container">
@foreach (var item in Model.LolaBikePhotos)
{
@model ContosoUniversity.Models.UserProfile
<ul class="row">
<li class="col-lg-2 col-md-2 col-sm-3 col-xs-4"><img src="/Images/profile/@item.ImagePath" alt="" /></li>
</ul>
}
</div>
</div>
,那麼所有的圖像都在相互不連續。
,這是我的CSS:
ul {
padding:0 0 0 0;
margin:0 0 0 0;
}
ul li {
list-style:none;
margin-bottom:25px;
}
ul li img {
cursor: pointer;
}
看到圖像
顯然,這個正在做的工作:
謝謝大家的anwares
刪除img標籤中的height = 150&width = 200 .. –