我有一個容器div和兩個div。div內的兩個div看起來不正確
我試圖居中對齊div的內容,但由於某種原因,第二個div看起來不正確的關係到第一個div。
第一內格對齊這樣的:
.main-text {
position: absolute;
text-align: center;
color: red;
top: 20%;
width: 100%;
letter-spacing: .6em;
}
第二內格對齊這樣的:
.down-arrow {
text-align: center;
width: 100%;
}
.bottom {
color: white;
position: absolute;
top: 50%;
font-size: 2em;
}
與與內容「DWN」第二屆內格的外觀關閉演示的完整代碼: http://jsfiddle.net/qbmtap7t/
不知道我做錯了,多虧