0

http://www.mammacoil.com/

このメニューを中央に配置するのに苦労しているので、iveはmargin auto cssを試しましたが、機能していないようです。誰か助けてくれませんか。

これを100%にしてから、自動マージンを設定する方が簡単でしょうか?

#access {
clear: both;
margin-top: -20%;;
margin-left: 15%;
width: 100%;
font-family: SansitaOne;
font-weight: 100;
text-shadow: 2px 2px #000000;
height: 43px;
text-align: center;

}
#access ul {
font-size: 18px;
list-style: none;
}
#access li {
position: relative;
float: left;
}

前もって感謝します。

カースティ

4

1 に答える 1

1

あなたはmargin:0 auto;それがすべての解像度で動作することによってこれを行うことができます

幅を設定します

#access {
    clear: both;
    font-family: SansitaOne;
    font-weight: 100;
    height: 43px;
    margin: 0 auto;
    text-shadow: 2px 2px #000000;
    width: 960px;              <-----set this
}
于 2012-11-03T17:29:29.320 に答える