html - 删除显示 :table and table-cell 后受影响的 Div 边框

标签 html css border

我的外部 div 上的边框有问题。 (全部) 我只需要从 html 中删除 display: table; 并从 .all 中删除 display: table-cell; 即可解决我遇到的问题。事实证明,他们正在检查 .all 上的边界。 我已经能够在 fiddle 中尽我所能地复制它。 http://jsfiddle.net/99e7cz8d/

在我的实际站点中,边框在右上角和左上角做同样的事情,在 fiddle 中只有左 Angular 在做。

我需要 .all 的边框显示在所有的边上。

最佳答案

.all 上尝试 overflow:hidden - http://jsfiddle.net/99e7cz8d/10/

.all {
    /*display: table-cell;*/
    border: 2px solid #006699;
    background-color: #0F3053;
    overflow:hidden
}

关于html - 删除显示 :table and table-cell 后受影响的 Div 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30067316/

相关文章:

jquery - 悬停进出时如何为边界半径的特定 Angular 设置动画? (火狐)

javascript - 使用angularjs交换图像标签中的ng-src属性

javascript - Google 协作平台 HTML Iframe(不是小工具)

javascript - 用于循环显示/隐藏复选框和列表的 Jquery 函数

html - 如何在 Bootstrap 中将菜单左右划分

html - 在外部 div 的底部设置一个 div

javascript - 如何使用url和jquery

html - 为什么左栏 "push"右栏的内容?

css - 在不影响边框的情况下在图像上添加悬停

Python PIL - 属性错误: 'NoneType' object has no attribute 'save'