【发布时间】:2016-04-16 18:05:39
【问题描述】:
当我将鼠标悬停在里面的小盒子上时,我试图填充一个包装器 (600x600px)。对于左上角的框,使用常规的过渡定时功能很容易完成,但是当尝试在其他方向放大时,我就卡住了。
所以我有以下内容:
#allbox {
background: #bbb;
width: 600px;
height: 600px;
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0
}
带盒子:
div.box1 {
position: absolute;
top: 0%;
left: 0%;
}
div.box2 {
position: absolute;
top: 0%;
left: 37.5%;
}
我使用的过渡:
#div1 {-webkit-transition-timing-function: linear;}
#div1 {transition-timing-function: linear;}
div.box1:hover {
width: 600px;
height: 600px;
}
但我无法为下面的方框找到一个好的方法。
【问题讨论】:
-
需要您的 HTML 部分才能正确理解它。请编辑问题并添加 HTML 部分。
标签: css css-transitions transition