1
내가 벽돌을 사용하여 3 가지 폭이있는 사용이 레이아웃을 할 노력하고있어 :동위 원소 벽돌
문제는 마지막 요소 그래서이 작동하지 않는다는 것입니다 내가 얻을 무엇 :
$(function() {
$('.isotope').isotope({
itemSelector: '.item',
masonry: {
columnWidth: 394
}
});
});
#main{
width: 1250px;
margin: 0 auto;
.isotope{
max-width: 1250px;
.item {
float: left;
width: 394px;
&.width2 {
width: 835px;
}
&.width3 {
width: 367px;
}
}
}
}
<div id="main">
<div class="isotope">
<div class="item"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/home-1.jpg"></div>
<div class="item"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/home-2.jpg"></div>
<div class="item"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/home-3.jpg"></div>
<div class="item width2"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/home-4.jpg"></div>
<div class="item width3"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/home-5.jpg"></div>
</div>
</div>
:
이 내 코드입니다
어떤 아이디어가 문제입니까?
당신은 말대꾸를 사용하고 있습니까? – WebServer
덜 사용하고 있습니다. 왜? – codek
CSS로 컴파일하지 않으면 브라우저에서 작동하지 않습니다. – WebServer