Firefox和Chrome似乎以不同的字体大小显示。CSS(font-size?) - Chrome浏览器与Firefox的缩小版
HTML:
<div id="gallery-section" class="section">
<div id="gallery-section-inner" class="inner">
<div class='gallery-post'>
<div class="thumbnail"></div>
<div class='gallery-excerpt'><p>This is some random text witch shows in photo description. text witch shows in photo description.</p> </div>
</div>
</div>
</div>
CSS:
.gallery-post {
width:170px;
background-color:white;
float:left;
font-family:'Open Sans';
margin-left:1.5em;
border:1px solid #e0e0e0;
}
.gallery-excerpt {
text-align:left;
float:left;
background-color:#EDEDED;
width:150px;
min-height:100px;
border:1px solid #e0e0e0;
font-size:12px;
border-top:none;
color:#535353;
-moz-box-sizing: border-box;
-webkit-box-sizing:border-box;
box-sizing: border-box;
margin-left:10px ;
margin-bottom:10px;
padding:1em 1em 0em 1em;
}
.thumbnail {
width:150px;
height:170px;
border:1px solid #e0e0e0;
margin-left: auto ;
margin-right: auto ;
margin-top:10px;
}
可视化:
代码:jsfiddle
请将您的代码放在一个JSFiddle http://jsfiddle.net/64H63/以及问题中。如果不查看代码,这几乎是不可能解决的。 – Anonymous
http://jsfiddle.net/rokas/U6Khy/ – user3272725
在这两个浏览器上(_the ** chrome ** version_),看起来和我完全一样。尝试在两个浏览器上检查开发人员工具。 – Anonymous