简体   繁体   English

消除div标签之间的差距

[英]remove gap between div tags

There is an unnecessary gap between two divs..Is there any solution to remove that? 两个div之间有不必要的间隙。是否有解决方案来消除该缺陷?
Here is the jsfiddle 这是jsfiddle
If you observe the vUiTsTabs and vUiTsContainers div tags, you will find a gap between those two divs...(gap between black and red border). 如果您观察vUiTsTabsvUiTsContainers div标签,则会在这两个div之间找到一个间隙...(黑色和红色边框之间的间隙)。

clear the <ul> tag ( overflow: auto; is enough) and remove display: inline-block; 清除<ul>标记( overflow: auto;足够)并删除display: inline-block; from .vUiTsTabs 来自.vUiTsTabs

demo here: http://jsfiddle.net/FCwjc/3/ 演示在这里: http : //jsfiddle.net/FCwjc/3/

display: inline-block替换float: left for li

remove the display and clear the float:left on the lis by setting 移除显示屏并清除float:left通过设置在lis上float:left

display:inline-block;
overflow:hidden; /*or auto*/

for .vUiTsTabs and the gap will disappear: modified fiddle .vUiTsTabs ,差距将消失: 修饰的小提琴

I hope this may be helpful to you 希望对您有帮助
use this .vUiTsTabs code 使用此.vUiTsTabs代码

.vUiTsTabs {
border-bottom: 1px solid #660033;
display: table;
margin: 0;
width: 99.9%;
}

Demo: modified demo 演示: 修改后的演示

我将其固定在Chrome上,将“ vertical-align:top”放入您的vUiTsTab中。

Please try this: 请尝试以下方法:

Use following css: 使用以下CSS:

.vUiTsTabs {
   display: table;
   border-bottom: 1px solid #660033;
   width: 99.9%;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM