2016-10-01 175 views
1

我在這裏我的sidenav,但它每次在我的鏈接之前放置一個圖標時會保持縮進和縮進。請幫我..Materialise Sidenav Icon Issue Issue

<ul id="mobile-demo" class="side-nav"> 
    <li> 
    <div class="userView"> 
     <img class="background" src="http://materializecss.com/images/office.jpg"> 
     <a href="#!user"><img class="circle" src="http://materializecss.com/images/yuna.jpg"></a> 
     <a href="#!name"><span class="white-text name">Nelson Maranan</span></a> 
     <a href="#!email"><span class="white-text email">[email protected]</span></a> 
    </div> 
    </li> 
    <li><a href="#!"><i class="material-icons">home</i>Home</a></li> 
    <li><a href="#!"><i class="material-icons">list</i>Browse</a></li> 
    <li><a href="#!"><i class="material-icons">message</i>Messages <span class="badge">3</span></a></li> 
    <li><a href="#!"><i class="material-icons">notifications</i>Notifications <span class="badge">10</span></a></li> 
    <li><div class="divider"></div></li> 
    <li><a class="subheader">Subheader</a></li> 
    <li><a class="waves-effect" href="#!">Third Link With Waves</a></li> 
</ul> 

這裏是我的截圖顯示問題:

Image showing the problem I am having

但是當我刪除圖標,它顯示就好了。我該如何解決這個問題?

回答

0

我也遇到過這個問題。

只是在樣式表中添加此規則:

.side-nav li{ 
    clear: both; 
}