css
div{
overflow: hidden;
width: 600px;
margin: 80px auto 10px;
}
span{
float: left;
}
p{
float: right;
}
p>img{
width: 15px;
height: 15px;
}
p:hover{
cursor: pointer;
}
ul{
overflow: hidden;
width: 600px;
height: 300px;
margin: 0 auto;
}
li{
width: 300px;
height: 60px;
float: left;
list-style: none;
}
.ul2{
display: none;
}
html
<div>
<span>百度</span>
<p>
换一换
</p>
</div>
<ul>
</ul>
js
var arr= [
"人民日报八论六中全会",
"伊藤美诚又被打哭了",
&