2015-10-13 48 views
-1

所以,我編碼的網站,我有一個工具欄,鏈接和一些文本浮動到他離開和容器(類名稱工具欄容器)有一個邊框底部但邊界穿過文本。我希望一切看起來都一樣,但我想要下面的邊框。包含所有的代碼庫是:https://github.com/DigitalBlast/Digital-Blast/通過鏈接的邊框穿過鏈接時,鏈接向左漂移

+0

找不到網頁。 – makshh

+0

對不起,修正了該問題 – steve

+0

您需要在此處發佈相關的最小標記。 – Rob

回答

-2

HTML:

<div class="toolbar-container"> 
    <div class="toolbar-container-logo"> 
    Digital<span class="toolbar-container-logo-sub">Blast</span> 
    </div> 
    <div class="toolbar-container-home" onclick="window.location.href='home/index.html'"> 
    <h4>Home</h4> 
    </div> 
    <div class="toolbar-container-software" onclick="window.location.href='software/index.html'"> 
    <h4>Software</h4> 
    </div> 
    <div class="clear-left"></div> 
</div> 

CSS:

.clear-left { 
    clear: left; 
} 
+1

這是做什麼用的?它如何解決任何問題? – Rob

+0

你是什麼意思? – makshh

+2

你應該解釋你的答案,而不是隻爲他寫代碼。這不是什麼意思。 – Rob