html - css 类不影响

标签 html css class

我制作了一个 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/

相关文章:

html - 在 div 中 Bootstrap 响应图像

javascript - 为多个元素实现滚动进度条

html - Google VR View 错误 - 无法从 ffff.jpg 加载纹理

html - 为什么这个元素不是从其父元素的顶部开始的?

html - 如何使 ™ 出现在 XYZ 文本上方?

css - 如何将标题移动到 Bootstrap 4 卡片元素内文本的左侧?

python - Kivy - 在其他屏幕中创建的访问实例

css - 如何删除两个 CSS float 之间的空间?

c++ - 用共享指针实现复制 Controller ?

c++ - _begintheadex函数调用问题