在我的示例中,我需要将按钮固定.lot-item .bid-now
到下面的.lot-item
jsFiddle 示例中的底部。我知道最流行的方法是使position: relative
子元素position: absolute
then 成为 then bottom 0
。但在这种情况下,我所有的物品都会失去weight
财产并且会很丑陋。因为我的按钮最宽的元素在父元素中。此外,我无法weight
为.lot-item
. 如果我的情况有任何不同的解决方案?jQuery 解决方案也是一个很好的解决方案
https://jsfiddle.net/z7Lgme5s/
慕码人2483693
相关分类