답변 2개
채택된 답변
+20 포인트
답변에 대한 댓글 3개
P
Phillips
4년 전
사이트주소를 보내주세요.
P
Phillips
4년 전
<style>
#container{ width:100% !important; max-width:100% !important; }
</style>
view파일에 넣어보세요.
#container{ width:100% !important; max-width:100% !important; }
</style>
view파일에 넣어보세요.
3
3q3q3q
4년 전
감사합니다 !! 해결되었습니다 ㅠㅠ 감사합니다!
댓글을 작성하려면 로그인이 필요합니다.
4년 전
container가 1300px이고,, container안의 article에 width 1500px줬을대...
article에 margin-left에 (( 1500px - 1300px ) / 2 * -1) 을 주면... 가운데 가서...
aiticle을 container보다 더 크게 쓸수 있어요...
</p>
<p><div class="container">
<article></article>
</div></p>
<p> </p>
<p><style></p>
<p>.container { margin: 0 auto; width: 1300px; height:500px; background: red;}
.container article { height: 200px; background: blue;}</p>
<p></style></p>
<p> </p>
<p> </p>
<p> </p>
<p><script>
$(document).ready(function(){
cntW()
});
$(window).resize(function(){
cntW();
});</p>
<p>function cntW() {
w = $(document).width();
containerW = $('.container').width();
ml = ((w - containerW) / 2 * - 1);
$('.container article').css('width',w);
$('.container article').css('margin-left',ml);
}</p>
<p></script></p>
<p>
https://codepen.io/4st/pen/jOLKNPg
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인