gpt4 book ai didi

html - css 类不影响

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

我制作了一个 HTML 文件并将其链接到一个 CSS 文件。我有 3 个类(class),2 个在工作,1 个不在(“信息”类不工作)你能帮我理解为什么吗?

HTML:

<table class="menues">
<tr>
<td>F</td>
<td>P</td>
<td>C</td>
</tr>
</table>
<table class="carrousel">
<tr>
<td>C</td>
</tr>
</table>
<table class="info">
<tr>
<td>F</td>
</tr>
<tr>
<td>A</td>
</tr>
</table>

链接到它的css文件:

.menues{
text-align: center;
background-color: blue;
width: 100%;
color: aliceblue;
}
.carrousel{
width: 100%;
height: 200px;
text-align: center;
color: aqua;
}
.info{
width: 80%;
text-align: center;
height: 100px;
margin-left: 50p;
margin-right: 20px;
color: blueviolet;

}

最佳答案

您在“margin-left: 50p;”上遗漏了“x”。它应该是'margin-left: 50px;'

关于html - css 类不影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33817268/

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