简体   繁体   English

Adobe Dreamweaver CS6设计视图中的HTML页脚

[英]HTML Footer in Adobe Dreamweaver CS6 design view

I am working on getting the hang of HTML5/CSS and it is going OK thus far. 我正在努力摆脱HTML5 / CSS的束缚,到目前为止一切正常。 I recently added a footer to my play website, and have it attached to the bottom of the page and centered. 我最近在我的游戏网站上添加了页脚,并将其附加到页面底部并居中。 However, while the footer is centered correctly under my main content while previewing through a web browser, in the design view of Adobe Dreamweaver CS6 it shows the footer as way off to the side of the main content div. 但是,尽管在通过Web浏览器进行预览时页脚正确地位于我的主要内容下,但是在Adobe Dreamweaver CS6的设计视图中,页脚显示为偏离主要内容div的一侧。 I find it odd it would appear this way in design view, but work as intended while testing. 我觉得奇怪的是,它会以这种方式出现在设计视图中,但是在测试时可以按预期工作。 Is this just the cause of how I coded it? 这仅仅是我编码的原因吗? It is slightly annoying that I have to scroll way off to the right to see the footer in design view... 我不得不向右滚动一下才能在设计视图中看到页脚,这有点令人讨厌。

Any suggestions as to why this is, or any suggestions to the general coding, would be greatly appreciated. 对于为什么这样做的任何建议,或对通用编码的任何建议,将不胜感激。 Below is how I coded in my footer. 以下是我在页脚中的编码方式。 Thank you. 谢谢。

.footer {
    position: absolute;
    bottom: 0px;
    width: 960px;
    padding: 10px 0;
    background-color: #0033FF;
}

yes, its correct that Dreamweaver's output is quite different than that of web browser's output and there is nothing wrong with your code. 是的,Dreamweaver的输出与Web浏览器的输出完全不同,并且代码没有错,这是正确的。

Dreamweaver's internal web browser is not much updated and doesn't supports some HTML and CSS tags. Dreamweaver的内部Web浏览器没有太多更新,并且不支持某些HTML和CSS标记。 so just ignore Dreamweaver's web browser.. 因此,只需忽略Dreamweaver的Web浏览器即可。

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

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