Html
    Css
    Js

    
                        
#box {
	position:relative;
	width:140px;
	height:140px;
	float:right;
}
#ewm {
	width:140px;
	height:140px;
}
#ewm img{
	width:140px;
	height:140px;
}	
#close {
	width:20px;
	height:20px;
	line-height:20px;
	background-color:#000000;
	position:absolute;
	top:-5px;
	left:-5px;
	color:#FFFFFF;
	text-align:center;
}
.open {
	width:30px !important;
	height:100px  !important;
	left:110px !important;
	line-height:30px;
	padding-top:20px;
	box-sizing:border-box;
}

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

js侧栏关闭显示

更新时间:2021-03-09 20:38:26

简单的隐藏、显示的js代码,兼容ie8

0