- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在为几个 friend 创建一个网站,每当我使用
时,我的文字都会越过页脚。我已经包含了 HTML 和 CSS 文件,我似乎无法解决我的问题。那可能是因为我对这一切还很陌生,但我愿意学习。当页面滚动时,我是页脚要说的地方,文本可以自由地沿着页面向下移动,而不需要让页脚留在原地并与文本重叠。谢谢大家!
@font-face {
font-family: pricedown;
src: url('fonts/pricedown.TTF');
}
body {
margin: 0;
padding: 0;
font-family: Verdana;
font-size: 16px;
background-color: #0e0e0e;
}
/*hr {
color: #000000;
background-color: #000000;
}*/
#header-wrapper {
height: 274px;
background: url(images/panorama.jpg) repeat-x;
}
#header {
width: 800px;
height: 275px;
margin: 0 auto;
padding: 0px 20px;
}
#header-text h1 {
font-size: 36px;
padding: 50px 0px 0px 0px;
text-shadow: 0px 0px 5px #000000;
color: white;
}
#header-text p {
font-size: 12px;
color: white;
}
#toolbar {
width: 800px;
height: 50px;
margin: 0 auto;
padding: 0px 20px;
background: url(images/tb-bg.png) repeat-x;
border-bottom: 1px solid black;
border-left: 1px solid black;
border-right: 1px solid black;
box-shadow: 0px 0px 5px #000000;
/*position: fixed;*/
}
#menu {
float: right;
width: 450px;
margin: 0 auto;
padding: 0;
text-transform: uppercase;
}
#menu ul {
float: right;
margin: 0;
padding: 12px 0px 0px 0px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
}
#menu a {
display: block;
margin-right: 1px;
text-decoration: none;
padding: 0px 0px 0px 10px;
font-size: 18px;
/*font-weight: bold;*/
color: white;
}
#toolbar2 {
height: 50px;
background: url(images/tb-bg.png) repeat-x;
border-bottom: 1px solid black;
border-top: 1px solid black;
box-shadow: 0px 0px 5px #000000;
}
#search {
width: 800px;
height: 50px;
margin: 0 auto;
padding-top: 10px;
float: right;
}
#content {
width: 680px;
height: 1200px;
margin: 0 auto;
padding-top: 20px;
}
#welcomee-message {
width: 610px;
height: 70px;
float: middle;
}
#welcome-message {
width: 110px;
height: 1120px;
float: left;
}
#welcome-message h1 {
color: white;
}
#welcomee-message p {
color: white;
}
#welcomee-message h1 {
color: white;
}
#welcomee-message p {
color: white;
}
#statistics {
padding-top: 45px;
}
#statistics h1 {
color: white;
font-size: 18px;
}
#statistics p {
color: white;
font-size: 11px;
}
#contact {
padding-top: 45px;
}
#contact h1 {
color: white;
font-size: 18px;
}
#contact p {
color: white;
font-size: 11px;
}
#information-center {
width: 250px;
height: 500px;
float: right;
}
#information-center p {
color: white;
}
#first-post {
width: 500px;
height: 470px;
padding-top: 10px;
float: left;
background-color: black;
border: solid 1px white;
}
#first-post h1 {
color: white;
padding-left: 10px;
font-size: 18px;
}
#first-post h2 {
color: white;
float: right;
font-size: 18px;
padding-right: 10px;
}
#first-post p {
color: white;
padding-left: 10px;
font-size: 11px;
}
#first-post a {
text-decoration: none;
font-size: 18px;
color: white;
}
#second-post {
width: 500px;
height: 440px;
padding-top: 10px;
float: left;
background-color: black;
border: solid 1px white;
}
#second-post h1 {
color: white;
padding-left: 10px;
font-size: 18px;
}
#second-post h2 {
color: white;
float: right;
font-size: 18px;
padding-right: 10px;
}
#second-post p {
color: white;
padding-left: 10px;
font-size: 11px;
}
#second-post a {
text-decoration: none;
font-size: 18px;
color: white;
}
#footer {
background: url(images/tb-bg.png) repeat-x;
border-bottom: 1px solid black;
border-top: 1px solid black;
box-shadow: 0px 0px 5px #000000;
overflow: auto
}
#footer-text {
width: 800px;
margin: 0 auto;
padding-top: 2px;
}
#menu2 {
float: right;
width: 450px;
margin: 0 auto;
padding: 0;
text-transform: uppercase;
}
#menu2 ul {
float: right;
margin: 0;
padding: 5px 0px 0px 0px;
list-style: none;
line-height: normal;
}
#menu2 li {
float: left;
}
#menu2 a {
display: block;
margin-right: 1px;
text-decoration: none;
padding: 0px 0px 0px 10px;
font-size: 11px;
/*font-weight: bold;*/
color: white;
}
#copyrights {
float: right;
}
#copyrights p {
float: right;
color: white;
font-size: 11px;
}
#changelog {
width: 500px;
height: 500px;
}
#changelog h1 {
color: white;
font-size: 16px;
}
#changelog p {
color: white;
font-size: 11px;
}
/*#changelog hr{
width: 300px;
float: left;
}*/
#post {
width: 475px;
padding-top: 120px;
}
#post p {
color: white;
font-size: 11px;
}
#welcome-message-post {
width: 500px;
height: 50px;
float: left;
}
#welcome-message-post h1 {
color: white;
}
/*#comments {
width: 400px;
height: 100px;
background-color: black;
border: 1px solid white;
}
#comments h2{
font-size: 14px;
color: white;
padding-left: 10px;
}
#profile-picture {
width: 50px;
height: 20px;
padding-left: 10px;
padding-bottom: 30px;
background-color:white;
}
#profile-picture {
width: 50px;
padding-left: 10px;
}
#profile-name {
width: 0px;
float: right;
padding-left: 20px;
}
#profile-name p{
font-size: 14px;
color: white;
}*/
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<title>Roleplay Server of Kane </title>
</head>
<body>
<div id="header-wrapper">
<div id="header">
<div id="toolbar">
<div id="menu">
<ul>
<li class="current_page_item"><a href="index.html">Home</a></li>
<li><a href="#">Forum</a></li>
<li><a href="#">Ucp</a></li>
<li><a href="changelog.html">Changelog</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="content-wrapper">
<div id="toolbar2">
</div>
</div>
<div id="main-wrapper">
<div id="content">
<div id="welcomee-message">
<center>
<h1>General Website Changelog</h1>
</center>
<hr>
</div>
<div id="information-center">
</div>
<div id="changelog">
<h1> Version 1.0 - 15.09.2017</h1>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
< </div>
</div>
</div>
<div style="clear:both;">
<div id="footer">
<div id="footer-text">
<div id="menu2">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#">Forum</a></li>
<li><a href="#">Ucp</a></li>
<li class="current_page_item"><a href="changelog.html">Changelog</a></li>
</ul>
</div>
<div id="copyrights">
<p>---- Roleplay © 2017 - Code and Design by Hazard </p>
</div>
</div>
</div>
</div>
</body>
</html>
最佳答案
删除所有这些类的高度并进行测试
#changelog {
width: 500px;
/* height: 500px; */
}
#information-center {
width: 250px;
/* height: 500px; */
float: right;
}
#content {
width: 680px;
/* height: 1200px; */
margin: 0 auto;
padding-top: 20px;
}
并且您的 html 结构不是以正确的方式尝试验证它
关于html - 文本超过页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46250195/
我使用这个 cmd 应用程序 https://github.com/tokland/youtube-upload 上传 50 个视频后,我收到此错误: [RequestError] Server re
尝试将 docker 容器提交到镜像时出现错误: [root@dockerregistry /]# docker commit da4180ab1536 dockerregistry:5000/myi
我只是想知道这样做会更好吗: if((fd = open(filename, O_RDWR)) == -1) { fprintf(stderr, "open [ %s ]\n", strerror(e
我在我的开发机器(单个笔记本)中使用 Elasticsearch 1.4.4。一切都设置为默认值,因为我从未更改过任何设置。 当我启动它时,我通常会收到以下消息: [2015-10-27 09:38:
我收到错误 Lock wait timeout exceeded;尝试重新启动事务。这是什么原因,如何解决?仅供引用:MySQL 配置文件中的 innodb_lock_wait_timeout = 1
我对 Slack 中的 block 功能有疑问。有人设法构建 3 列而不是 2 列吗? 我凭直觉尝试了以下代码,但它不起作用: { "blocks": [ {
div 中的内容超过由 css 决定的固定大小。 #fixeddiv { position: fixed; margin: auto; max-height: 300px
我想将 EditText 字段限制为 150 个字符,我可以很容易地做到这一点。但是,当用户试图超过该限制时,我还需要通过键入(即第 151 个字符)或粘贴超过 150 个字符来提醒用户。 解决这个问
我目前正在使用此代码并排记录两个窗口: ffmpeg -f gdigrab -framerate 30 -i title="" -f gdigrab -framerate 30 -i title=""
我在几个包含长字符串的单元格上使用嵌套的 SUBSTITUE 函数,并定期更新 SUBSTITUE fx,这导致我将其复制并粘贴到所有需要它的单元格中。问题是,我的 SUBSTITUTE 列表会随着时
我创建了一个标题 div,如下所示:
Here is the demo link 您怎么看,页面中只有 8 个广告可见,但我有 14 个广告。我已阅读有关广告限制的信息 here但不明白是不是我的情况?有人可以给我确切的答案,为什么我看不
我的非常简单的算法 - C 中的快速排序有问题。它非常有效(随机化大约 0.1 秒并检查列表是否已排序)但是当我想要对超过 500k 的元素进行排序时它会崩溃。不幸的是,我需要对它们进行更多排序,因为
我成功解决了一个关于 Hackerrank 的问题,它通过了所有测试用例,但我得到了一个错误,超过了时间限制。我猜如果我优化我的代码它会工作,但我想不出任何方法来使我的代码更有效率。 问题是: 对大小
你会如何用 包围下面的文字3 个反引号 ```使用 tpope 的 Vim Surround . 我所能做的就是 1 个反引号 使用 S`在视觉模式下: 最佳答案 这不是你问的,但这可以在没有环绕的情
我目前有一个模拟账户。我正在尝试为我的雇主使用 SwifType 制作 POC。我们有一个非常大的数据库,每 1 小时索引一次,并创建一个 JSON 文件。我认为与 Elastic 的集成将非常容易,
我为一个大约有 100 到 120 名成员的小型组织维护网站。 每个月,我们都会发送一封电子邮件,通知我们的成员我们将在即将举行的 session 中讨论的主题。 我正在尝试使用我们的网站为我们提供一
这个问题已经有答案了: How to automatically input an array formula as string with more than 255 characters in l
我有一个在 JBoss 6.1 中运行的 JSF 应用程序,它使用内部Tomcat Servlet 容器。 我已经通过apache commons文件上传实现了上传。我想防止上传过大的文件并设置了属性
当我尝试在 PyMySQL 上执行查询时,出现以下错误: pymysql.err.InternalError: (1205, 'Lock wait timeout exceeded; try rest
我是一名优秀的程序员,十分优秀!