中易网

如何用Jquery实现DIV由中间向两边展开的效果

答案:3  悬赏:30  
解决时间 2021-01-15 02:20
  • 提问者网友:感性作祟
  • 2021-01-14 19:18
如何用Jquery实现DIV由中间向两边展开的效果
最佳答案
  • 二级知识专家网友:廢物販賣機
  • 2021-01-14 19:27




menu

* {
margin: 0;
padding: 0;
outline: 0;
vertical-align: baseline;
}

body {
overflow: hidden;
}

div {
height: 500px;
text-align: center;
line-height: 500px;
margin: auto;
cursor: pointer;
border: 1px solid black;
top: 0px;
font-size: 100px;
}

div.center {
width: 300px;
background-color: blue;
}

div.left,div.right {
position: absolute;
display: none;
}

div.left {
float: left;
background-color: orange;
}

div.right {
float: left;
background-color: yellow;
}







寿

全部回答
  • 1楼网友:躲不过心动
  • 2021-01-14 20:22
没有分吗?
  • 2楼网友:洒脱疯子
  • 2021-01-14 19:37
我暂时保留我的看法!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息