我想将我的虚线移动到 后面 我的 div。 它一直停留在我的 div 的顶部。
这是我目前拥有的:
这是我希望得到的:
**CSS**
/*Background Border*/
.border-center {
width: 100%;
position: relative;
}
.slide:before {
content: '';
position: absolute;
border-bottom: 3px #3498db dashed;
z-index: 1;
top: 50%;
margin-top:-2px;
right: 10%;
left: 40%;
width: 25%;
}
我希望我可以添加更多代码,因为我的代表很低,我收到了这个警告:
更多详情:JSFiddle
最佳答案
给你的 fiddle 一个 z-index of 0
完成这个,并在你的 .tl-box
上一个 background:white
关于jquery - 我怎样才能在我的 div 后面放一条线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29395538/