我最近开始使用 div 将我的页面上的艺术安排在一个非常特定的位置。在我得到我认为正确的东西之后,我在所有 div 下得到了这个巨大的差距。似乎我使用的 div 越多,差距就越大。我只是想让那个差距消失。有高手解答一下吗?
这是我的代码:
<div>
<div style="position: relative; left: 12px; top: -20px; width: 970px; height: 0px;">
<img class="alignnone size-full wp-image-1285 devanco_ep_curimg" alt="dsm-napkin-top-TEMP" src="http://thedsmgroup.com/jason/wp-content/uploads/2013/01/dsm-napkin-full.png" width="1001" height="131" />
</div>
<div style="position: relative; left: 65px; top: -20px; width: 450px; height: 100px; padding: 20px;">
<div>
<h5>We’re a creative full service marketing firm in Northern New Jersey.</h5>
<h6>Creative Branding | Advertising | PR | Website Design | SEO | World Class Client Support</h6>
</div>
</div>
</div>
<div style="position: relative; left: 548px; top: -180px; width: 193px; height: 72px;">
<a title="The DSM Group Is A Full Service Agency" href="http://thedsmgroup.com/jason/agency-2/">
<img class="alignnone size-full wp-image-1412" alt="dsm-who-we-are-btn" src="http://thedsmgroup.com/jason/wp-content/uploads/2013/01/dsm-who-we-are-btn.png" width="251" height="66" />
</a>
</div>
<div style="position: relative; left: 750px; top: -339px; width: 193px; height: 72px;">
<a title="The Most Complete Marketing Agency In NJ" href="http://thedsmgroup.com/jason/services/">
<img class="alignnone size-full wp-image-1411" alt="dsm-what-we-do-btn" src="http://thedsmgroup.com/jason/wp-content/uploads/2013/01/dsm-what-we-do-btn.png" width="251" height="66" />
</a>
</div>