【发布时间】:2012-11-24 02:52:15
【问题描述】:
<div id="box">
<div id="body">Blah blah blah</div>
</div>
#box {
box-shadow: 0 0 8px black;
}
#body {
height:100px;
transition: height 0.8s ease;
}
#body:hover {
height: 200px;
}
在 IE10 中,当过渡改变内容的高度时,框底部的阴影会出现故障。请注意,只有当 content 框改变高度时才会发生这种情况。如果是 container,阴影效果很好。但是,我无法更改容器的大小,因为我希望它是动态的以适应其内容。
有什么解决方法吗?
【问题讨论】:
标签: css-transitions css internet-explorer-10