简体   繁体   English

引导面板中的位置按钮

[英]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 这是panelhtml元素

在此处输入图片说明

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 这只是一个例子

DEMO DEMO

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM