简体   繁体   English

Dreamweaver网页上的恼人横幅

[英]annoying banner on webpage from dreamweaver

I used Dreamweaver to create a website off a template i got from timothy framework, the website can be seen here http://www.manchestertemplate.info/ If you notice at very top of the webpage there is a thin orange strip or banner that is not part of the background image. 我使用Dreamweaver根据我从timothy框架获得的模板创建了一个网站,可以在这里看到该网站http://www.manchestertemplate.info/如果您注意到网页的顶部有一条细的橙色条或横幅,不是背景图片的一部分。 it looks fine on that website, but if your trying to change the wallpaper it might not look as good.I really want to get rid of it and i cant seem to find the code for it anywhere, would it be in the HTML or the css style sheets. 它在该网站上看起来不错,但是如果您尝试更改壁纸可能看起来不太理想。我真的想摆脱它,而且我似乎无法在任何地方找到它的代码,是在HTML还是在CSS样式表。 Please help. 请帮忙。

Your div with the id of "wrapper" has a border-top of "10px #BF6000 solid". 您的ID为“包装”的div的边框顶部为“ 10px#BF6000 solid”。 This is your culprit. 这是你的罪魁祸首。

A good way to quickly troubleshoot these sorts of issues is with Google chrome's "Inspect Element" feature (or Firefox's equivalent). 快速解决这类问题的一种好方法是使用Google chrome的“检查元素”功能(或Firefox的等效功能)。 It's quite powerful and will save you a great deal of time. 它功能强大,可为您节省大量时间。

In your CSS file, there is a border on the #wrapper element: 在您的CSS文件中, #wrapper元素上有一个边框:

border-top:10px #BF6000 solid;

Delete that and it should be fine. 删除它,应该没问题。

Open your styles.css file and look for the #wrapper element. 打开您的styles.css文件,然后查找#wrapper元素。

In order to remove the annoying banner, remove the following rule: border-top:10px #BF6000 solid; 为了删除恼人的横幅,请删除以下规则: border-top:10px #BF6000 solid;

If you want to still have the main section of the page pushed down a little from the top so that you can see the background, change the following rule within the same element: margin:0 auto; 如果您仍然希望页面的主要部分从顶部向下移一点,以便可以看到背景,请在同一元素内更改以下规则: margin:0 auto; to: margin:10px auto 0 auto; 到: margin:10px auto 0 auto;

This change will push the #wrapper element down 10 pixels from the top of the page, so it will look exactly like how it does now, but the banner will change appropriately when you alter the background. 此更改会将#wrapper元素从页面顶部下移10个像素,因此它看起来与现在完全一样,但是当您更改背景时,横幅会相应更改。

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

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