Fragen und Antworten
Wie behebe ich, dass die CSS-Eigenschaften der Fußzeile nicht korrekt angezeigt werden?
Wie behebe ich, dass die CSS-Eigenschaften der Fußzeile nicht korrekt angezeigt werden?
Meine Fußzeile zeigt CSS-Eigenschaften nicht korrekt an.
Ich habe versucht, Größe, Gewicht, Polsterung und Überlauf zu ändern, aber nichts hat sich geändert. Der Code lautet wie folgt
.footer {
background-color: black;
height: auto;
width: 100%;
padding-top: 40px;
color: #fff;
overflow: auto;
padding: 20px;
float: left;
}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styleody.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p>
Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College
in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes
from a line in section 1.10.32.
</p>
</body>
<footer>
<div class="footer-content">
<p>Επικοινωνήστε μαζί μας</p>
</div>
</footer>
</html>
Your Answer
1 antwortet
您使用的 CSS 选择器似乎不会选择 HTML 文档中的任何内容。您可能打算使用footer:
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Template</title>
<style>
footer{
background-color:black;
height:auto;
width:100%;
padding-top:40px;
color:#fff;
overflow: auto;
padding: 20px;
float: left;
}
</style>
<link rel="stylesheet" href="styleody.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p>
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
</p></body>
<footer>
<div class="footer-content">
<p>Επικοινωνήστε μαζί μας</p>
</div>
</footer>
</html>
或.footer-content:
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Template</title>
<style>
.footer-content{
background-color:black;
height:auto;
width:100%;
padding-top:40px;
color:#fff;
overflow: auto;
padding: 20px;
float: left;
}
</style>
<link rel="stylesheet" href="styleody.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p>
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
</p></body>
<footer>
<div class="footer-content">
<p>Επικοινωνήστε μαζί μας</p>
</div>
</footer>
</html>
Hot-Tools-Tags
Hot Questions
function_exists() kann die benutzerdefinierte Funktion nicht ermitteln
2024-04-29 11:01:01
So zeigen Sie die mobile Version von Google Chrome an
2024-04-23 00:22:19
Das untergeordnete Fenster bedient das übergeordnete Fenster, aber die Ausgabe antwortet nicht.
2024-04-19 15:37:47
Im übergeordneten Fenster erfolgt keine Ausgabe
2024-04-18 23:52:34
Wo gibt es die Kursunterlagen zum CSS-Mindmapping?
2024-04-16 10:10:18
Hot Tools
Sammlung der Laufzeitbibliothek vc9-vc14 (32+64 Bit) (Link unten)
Laden Sie die Sammlung der Laufzeitbibliotheken herunter, die für die Installation von phpStudy erforderlich sind
VC9 32-Bit
VC9 32-Bit-Laufzeitbibliothek für die integrierte Installationsumgebung von phpstudy
Vollversion der PHP-Programmierer-Toolbox
Programmer Toolbox v1.0 PHP Integrierte Umgebung
VC11 32-Bit
VC11 32-Bit-Laufzeitbibliothek für die integrierte Installationsumgebung von phpstudy
SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen
Heißer Artikel
Prognose der zehn wichtigsten Trends auf dem Kryptowährungsmarkt im Jahr 2025: Wo ist der nächste Trend?
2025-11-07
By DDD
Wie erkennt man die einheimischen Hundeprojekte im Währungskreis? Vermeiden Sie die Fallen und Risikowarnungen von Zerocoin
2025-11-07
By DDD
Was tun, wenn Win10-Schriftarten nach der Installation und Identifizierung von Win10-Schriftarten nicht in der Software gefunden werden können?
2025-11-07
By DDD





