Sam*_*ark 6 html css border jquery-masonry
有没有办法,当我重叠(触摸)div时,使1px边框不变为2像素.我知道我可以在两个边上放一个边框,但是div的一个边缘没有边框.顺便说一下,我正在使用jQuery Masonry.
是的,右边的div看起来像这样
border: 1px solid #fff;
border-left: none;
Run Code Online (Sandbox Code Playgroud)
第二个border-left将覆盖刚刚放在那里的左边框
编辑:
好吧,因为你使用jQuery masonary - 就这样做
.container {
width:50px;
height:80px;
border:1px solid black;
margin-right: -1px;
margin-bottom: -1px;
}
Run Code Online (Sandbox Code Playgroud)
我提到的重叠方法会起作用