我正在尝试使用twitter的框架来开发自己的网站,并且希望缩小浏览器大小时调整图像大小。我很困惑,并试图一切,但不能想出这里的解决方案是我的结构使用twitter-bootstrap调整大小的图像
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;
}
用于背景大小合适的图案 – 2012-08-08 10:40:49
除非你真的需要使用你自己的CSS, ://twitter.github.com/bootstrap/components.html#thumbnails – DaveP 2012-08-08 11:10:30