트위터의 프레임 워크를 사용하여 내 사이트를 개발하고 있으며 브라우저 크기가 줄어들어 이미지의 크기를 조정하고 싶습니다. 나는 혼란 모든 노력을하지만 해결책은 여기에 이미지를 수 있도록 설계되었습니다트위터 부트 스트랩을 사용하여 크기 조정이 가능한 이미지
HTML
<section id="intro">
<div class="row" id="ruby">
<div class="span6" id="heading">
<h1>Journey Into Ruby and Beyond</h1>
<p>A blog about my journey into ruby, my experiences and lots of fun!</p>
</div>
<div class="span6" id="pic" align="right">
<p>Akash Soti<br>RoR Developer<br>@xyz company </p>
</div>
</section><!--/intro-->
CSS
#ruby.row{
margin-left: 0px;
padding-right: 0px;
padding-bottom: 0px;
}
#pic{
background: url(img/Akash.png);
background-repeat: no-repeat;
height: 150px;
width: 200px;
margin-left: 200px;
}
#pic img{
max-width:100% ;
max-height:100% ;
display:block;
}
#pic p{
position: relative;
right: 110px;
margin-top: 90px;
margin-left: 0px;
text-align: left;
}
배경 크기의 속성으로 사용 –
자신 만의 CSS를 사용해야하는 경우가 아니면 _ 여기에서 모두 http입니다. : //twitter.github.com/bootstrap/components.html#thumbnails – DaveP