简体   繁体   English

HTML标记下的多余空格

[英]Extra whitespace under the HTML tag

This is the website I am developing right now: in-nabavi.com . 这是我现在正在开发的网站: in-nabavi.com There is nothing in it but a few blocks. 除了几个街区,里面什么也没有。 As you see there is an extra white space at the end of the document that I really have no idea why it is in there. 如您所见,文档末尾有一个额外的空白,我真的不知道为什么要在其中。

This is the firebug result 这是萤火虫的结果

在此处输入图片说明

As you see the area with red line around it is not included in the HTML area. 如您所见,带有红线的区域没有包含在HTML区域中。

I also tried the following 我也尝试了以下

body, html{
    margin:0;
    height: 100%;
}

but it didn't work again. 但它不再起作用。

Thanks. 谢谢。

You have used content: "." 您使用了以下content: "." inside clearfix class for setting layout. 在内部clearfix类中,用于设置布局。 Use content: ""; 使用content: ""; only. 只要。

.clearfix:after {
   visibility: hidden;
   display: block;
   content: "";
   clear: both;
   height: 0;
}

There is a .clearfix:after css class in which there is a content:"." .clearfix:after CSS类.clearfix:after有一个.clearfix:after其中有一个content:"." Remove that. 删除那个。

Or override it, so that it does not hamper anything else. 或覆盖它,以便它不会妨碍任何其他操作。

.clearfix:after {
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    content: close-quote;
}

你可以试试这个。

.panels-flexible-1 .panels-flexible-row-last{position: absolute;}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM