gpt4 book ai didi

按钮之间的 CSS 空间

转载 作者:太空宇宙 更新时间:2023-11-04 00:07:41 26 4
gpt4 key购买 nike

我试图在 jQuery Mobile 中的两个按钮之间留出空白。现实中的布局是这样的:

Button 1      Button 2 (Hidden w/ display: none)        Button 3

在我的页面上它看起来像这样:

Button 1      Button 3

我希望它看起来像这样:

Button 1                            Button 3

不删除隐藏的第二个按钮,因为该按钮将显示为返回搜索结果的后退按钮。因此,如果有搜索结果,它应该看起来像在页面顶部一样,除了显示:没有消失。

我试过 float: right on the 3rd button,但这给了我这个:

               Button 3              Button 1

任何知道如何解决此问题的 CSS 专家都将不胜感激。谢谢。

最佳答案

使用 visibility: hidden; 而不是 display: none;

关于按钮之间的 CSS 空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14319513/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com