Html
    Css
    Js

    
                        
 #box {
	width:320px;
	margin:0 auto;
}
.one {
	width:400px;
	border-left:1px solid red;
	padding-left:5px;
}
.top::before {
	content:"";
	height:60px;
	width:3px;
	display:block;
	position:absolute;
	background:linear-gradient(red,blue);
}
.top {
	/* border:1px solid red;
	*/
            height:60px;
	display:flex;
	justify-content:space-between;
	align-items:center;
	line-height:30px;
	/* background-color:aliceblue;
	*/
            box-shadow:1px 1px 5px #888888;
}
.text {
	padding-left:10px;
}
.rl {
	margin-right:20px;
	width:20px;
	height:20px;
	font-size:30px;
	line-height:20px;
	border:1px solid blue;
	border-radius:50%;
	text-align:center;
	cursor:pointer;
}
.buttom {
	display:none;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:2.1.1
 立即下载

手风琴效果例子

0