hbox 应该始终位于底部
我开发了一个带有弹出面板的 Firefox 插件。在面板上我有三个带有水平盒的元素。第一个和第二个水平盒具有固定大小(20 像素和 400 像素)。最后一个元素应始终位于底部并被拉伸。我该怎么做?
I develop a Firefox plugin with popup panel. On the panel I have three elements with a hbox. First and second hbox have a fixed size (20px and 400px). The last element should be always on the bottom and stretched. How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不太确定您想要实现什么,但您可以使用
flex="1"
来确保元素用完所有剩余空间,并使用align="end"
来对齐其内容到底部:Not quite sure what you want to achieve but you can use
flex="1"
to make sure the element uses up all remaining space andalign="end"
to align its contents to the bottom: