2015-10-13 69 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