[英]Position button in Bootstrap Panel
Hi guys i am using bootstrap panel on a page and i want to align button in the panel-heading
嗨,大家好,我在页面上使用引导面板,我想在
panel-heading
对齐按钮
I tried using padding
but it doesnt work it just stretched the button
我尝试使用
padding
但无法正常工作,只是拉伸了button
Here is the image of the panel-group
and in that you can see that the checkin
button is not aligned properly 这是
panel-group
的图像,可以看到checkin
按钮未正确对齐
Let me know which property i can use 让我知道我可以使用哪个物业
Thank you 谢谢
And here is the html
elements of the panel
这是
panel
的html
元素
Try using margin
instead padding
. 尝试使用
margin
代替padding
。
Update :- Try set your property position to absolute and use Margin. 更新:-尝试将您的财产位置设置为绝对,并使用保证金。 It will work .
它将起作用。 Regards.
问候。
it is not advisable to use position absolute. 不建议使用绝对位置。 Depends, more info can check here.
视情况而定,更多信息可以在这里查看。
Is it considered bad practice to use absolute positioning? 使用绝对定位是否被认为是不好的做法?
This is just an example 这只是一个例子
Try to set panel-title display to flex, align-items to center. 尝试将面板标题显示设置为可弯曲,将对齐项居中。 Wrap the title text and set the wrapper's flex value to 1 and that's it.
包装标题文本,并将包装器的flex值设置为1即可。 Refrain from using absolute positioning as much as possible.
尽可能避免使用绝对定位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.