gpt4 book ai didi

css - 我在这个 div 上做错了什么?

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

显然这里有些不对劲。 #wrap 的 CSS 没有显示出来。不知道我做错了什么。请查看下面我的代码:

<html>
<head>
<title> WhateverWorks </title>
<style>
body{
background-color: #0066CC;
color: white;
}
h1{
font-size: 18pt;
color: white;
font-style: bold;
font-family: calibri;
}
#wrap{
border solid 2px #000;
background-color: #00033;
width: 800px;
height: 200px;
}
</style>
</head>
<body>
<div id="wrap">
This site is under construction...<br /> please see our facebook page for now!
</div>
</body>
</html>

最佳答案

你忘记了一个: after border

border: solid 2px #000;

关于css - 我在这个 div 上做错了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19250010/

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