Rendering of HTML in Firefox and Chrome
问题 <div style="float: left; height: 20%; width: 70%;"</div> <div style="float: right; height: 20%; width: 30%;"> </div> In Chrome the two divisions are in same line. But there is a small gap between the two divs. But in Firefox there is no gap. Why is this happening? Any solution for this? 回答1: Chrome rounds all widths to integer pixels. Unless your container width is divisible by 10, this means that the float widths will get rounded so they're not actually 30 and 70 percent of it, and as a