2015-11-20 102 views
0

我製作了一個HTML文件並將其鏈接到CSS文件。 我有3個班,2個工作,1個不是(班「信息」不起作用) 你能幫我理解爲什麼嗎?css類不會影響

的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; 

} 
+1

對我來說似乎很好! –

+1

這是什麼不工作?這對我也很好:https://jsfiddle.net/uo52m0wv/ – Radderz

回答

1

你失蹤的 'X' '保證金左:50P;'。它應該是'margin-left:50px;'