1

在我扩大我的网站之前,一切看起来都很棒。我已经检查了代码,对所有内容进行了萤火虫检查,两天来,我变得更加沮丧,我祈祷这里的人可以提供帮助-也许一双新的眼睛会有所帮助。我已经链接了页面和 cssdesk 代码,让你看看发生了什么。提前谢谢你。在 css 桌面中,列是正确的,但在网站上,似乎所有内容都因某种原因被推下。

http://www.cssdesk.com/BVCf2

http://jason.carpedp.com/coinlogistics/charities-co-ordinator/aviation-sector/

4

3 回答 3

1

不要在没有打开 p 的情况下使用关闭 p 并且不要--在评论中使用,一些浏览器将其解释为评论的结尾。

<div class="left"><!--COLLEFT--NOTHING-->
     </p>
     <div class="airport"><!--CENTER--><br/>
     </p>
     <h4>AIRPORTS</h4>

使用 w3c 验证器查找更多错误:http: //validator.w3.org

于 2013-06-20T08:27:45.957 回答
0

我查看了代码并快速下载了页面并将其放入 HTML 编辑器中。

从我收集的内容来看,有一个空白

机场列中的标签(我的编辑器上的代码行 86)将所有内容都降低了一个级别。

删除它后,它又开始在我这边正常显示。

原来的

 <div class="airport"><!--CENTER--><br>
 <p></p>
 <h4>AIRPORTS</h4>
 <p><img alt="Donation boxes are strategically placed in busy areas of the airport" src="./Aviation Sector - Coin Logistics_files/airport.jpg">
 </p>
 <p>With a substantial rise in international and foreign travel in recent years; the volume of foreign coins entering and departing the airports have increased. This makes airports the perfect location for the donation boxes to be located, giving travelers the opportunity to rid themselves of their unwanted change and enabling them to perform the good deed of donating to the designated charity and allowing their small change to make a big difference.
 </p>
 </div>

新的

     <div class="airport"><!--CENTER--><br>

     <h4>AIRPORTS</h4>
     <p><img alt="Donation boxes are strategically placed in busy areas of the airport" src="./Aviation Sector - Coin Logistics_files/airport.jpg">
     </p>
     <p>With a substantial rise in international and foreign travel in recent years; the volume of foreign coins entering and departing the airports have increased. This makes airports the perfect location for the donation boxes to be located, giving travelers the opportunity to rid themselves of their unwanted change and enabling them to perform the good deed of donating to the designated charity and allowing their small change to make a big difference.
     </p>
     </div>
于 2013-06-20T08:17:06.937 回答
0

如果你在 firebug 中检查你的 html 代码,你会发现一些不必要的空标签,比如删除它们,仅此而已<p></p><br/>

于 2013-06-20T08:23:01.993 回答