gpt4 book ai didi

html - 我的 HTML/CSS3 做错了什么?

转载 作者:太空宇宙 更新时间:2023-11-04 11:59:07 26 4
gpt4 key购买 nike

我正在尝试让 background-size 属性起作用 - 但是 - 我认为我的 CSS 做错了什么,阻止它首先起作用。我需要弄清楚 CSS 图像应该如何显示——一旦它显示出来——我希望能够在上面写上文字。需要一点帮助吗?

<html>
<head>
<title>The Lord of the Rings</title>
<style>

h3.start{color: #8391E1; background-color: #black;, border: 1px; font-size: 100px; float: left font-size: 20px; box-shadow: 2px 2px; line-height: 200px;}
p {color: #DD8797; font-size: 32px; line-height: 200%; padding: 5px; width: 300; padding: 10px 0 px 0 px 10px; float: left; margin: 0px 0px 0px 0px; width: 500px; margin: 5px; display: inline; transform:scale(1,1); behavior: url(ie-css3.htc); :scale(3,1); z-index:100; left: 250px; top: 350px;}}
p.ex{height: 200px; width: 200px;}
p.test{width: 700px; height: 300px;
border: 1px dashed #000000;
word-break: break-all;}
#image {
background:url(https://caronedmunds.files.wordpress.com/2008/09/old-paper21.jpg);
background-repeat: no-repeat;
padding:15px;
text-align: left; behavior: url(ie-css3.htc);}
#image2{background-size: 500px 700px;}
#text { position: relative;color:red;font-size:36px;font-weight:bold;}
body {background-color: #87DDA2;}
</style>
</head>
body
<h3 class="start">Lord of the Rings: the Fellowship of the Ring</h3>
<DIV ID="image">
<div id="image 2"> p The Lord of the Rings the Fellowship of the Rings was a great movie. When I was younger I
tried watching it but I wasn't able to get everything that was going on. Coupled with the fact that I didn't know what the Hobbit was, it was clear, that I didn't understand it. That said, I'm a lot older now, and, I'm better able to appreciate it, so, let's see why this film is such a good film shall we? </p>
</div>
</div>

最佳答案

我不相信“#black”是有效的。它的值应该是“black”或“#000000”。另外,就像亚历克斯说的,你的 body 标签坏了。

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

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