是否可以在绝对模式下使用滚动条定位元素的底部?
现在,如果我有一个比视口更大的元素,那么我不确定如果是视口,我如何使元素锚定到底部。我可以用
data-0="transform:translate(0,100%); (to push the element off the screen) and
data-0="transform:translate(0,0%); (to anchor the top of the element to the top of the viewport),
data-0="transform:translate(0,-100%);(to push the bottom of the element off the top of the viewport)
我想弄清楚当元素的高度大于视口的高度时,是否有办法将元素的底部锚定到视口的底部。如果这个布局是响应式的,我想使用 % 而不是 px,但是考虑到这个想法,有问题的元素标签的高度是一个移动的目标。到目前为止,我在测试想法方面没有运气。
谢谢!