gpt4 book ai didi

html - CSS 无法在网页中运行

转载 作者:太空宇宙 更新时间:2023-11-03 20:32:10 26 4
gpt4 key购买 nike

在我的样式表中,我定义了一些规则,基本上将对象放置在屏幕中央。我的 div 类根本不会格式化我的文本。

网页代码

body {
text-align: center;
}
h1 {
color: BLACK;
}
.active {} .wrapper {
text-align: center;
}
.button {
position: absolute;
top: 50%;
}
<!DOCTYPE html>

<html lane="en">

<head>
<meta charset="utf-8">

<title>The "How Drunk Do You Want to Be?" Machine</title>
<meta name="description" content="The best damn webpage you have ever seen">
<meta name="Jarred Parr" content="drinking games">

<link rel="Style Sheet" type="text/css" href="Style Sheet.css">

</head>

<body bgcolor="#b3b3cc">
<div class="wrapper">

<button class="button">Button</button>

</div>



</body>

</html>

最佳答案

只需更正您的 css 外部文件链接标签:

<link rel= "stylesheet" type= "text/css" href= "Style Sheet.css">

关于html - CSS 无法在网页中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39694142/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com