2017-04-25 117 views

回答

1

请尝试以下变化:

.navUser-section.navUser-section--alt { 
    /* add the following rule */ 
    display: inline-block; 
} 

.navUser-section--alt { 
    /* change float:right to float: none */ 
    float: none; 
} 

.navUser{ 
    /* add the following rule */ 
    text-align:center; 
} 
+0

完美,谢谢!看起来我试图使用块而不是内联块,这是我的问题。 – BrandonD