我绝对是在浮动电视里定位元素。最后一个绝对定位的元素粘在div的顶部,直到我们调整窗口的大小(请参阅这里)。
到目前为止我尝试过的事情:
这只发生在铬。知道为什么/发生了什么吗?

发布于 2013-04-08 20:29:25
你只需要做一件小事,其他的一切都是很棒的。使用这个
.schedule-course-slot-wrapper {
position: absolute; /*Important*/
border: thin solid;
border-radius: 3px;
margin: 0 2px;
padding: 0 3px;
height: 100%;
}相反,
.schedule-course-slot-wrapper {
position: relative; /*Important*/
border: thin solid;
border-radius: 3px;
margin: 0 2px;
padding: 0 3px;
height: 100%;
}发布于 2014-07-03 23:28:50
你必须用
pop.style.left = l+"px";
pop.style.top = t+"px";而不是
pop.style.posLeft = l;
pop.style.posTop = t;或者两者都是。
https://stackoverflow.com/questions/15874571
复制相似问题