Bootstrap Popover边框CSS [英] Bootstrap Popover Border CSS

查看:367
本文介绍了Bootstrap Popover边框CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用CSS增加Popover边框的厚度。我设法使用这个代码,但它留下箭头与旧的细线。什么是CSS代码,以增加Popover箭头的厚度,使其看起来统一?

I want to increase the thickness of the Popover border using CSS. I managed to do it with this code, but it leaves the arrow with the old thin line. What is the CSS code to also increase the thickness of the Popover arrow so that it looks uniform?

.popover.bottom
  {
    border-top: 5px solid #000000;
    border-left: 5px solid #000000;
    border-right: 5px solid #000000;
    border-bottom: 5px solid #000000;
  }

感谢

推荐答案

您需要更改 .arrow border-width p>

You need to change the border-width of .arrow.

.popover>.arrow {
    border-width: 16px;
}

这需要重新定位:after

这样的东西可以工作得很好:

Something like this would work well:

此处举例

.popover.bottom>.arrow:after {
    top:7px;
    border-bottom-color: #f7f7f7;
}
.popover.bottom>.arrow {
    margin-left:-5px;
    border-bottom-color: #000;
    margin-top:-5px;
}

值得注意的是,您需要根据

It's worth noting that you will need to change this positioning based on the position of the popover..

例如,如果您的样式为 .popover.right $ c> .popover.bottom ),您可以使用这样的:

For instance, if you were styling .popover.right, (rather than .popover.bottom) you could use something like this:

此处的示例

.popover.right>.arrow:after {
    left: 8px;
    bottom: -10px;
}
.popover.right>.arrow {
    left: -16px;
    margin-top: -12px;
    border-right-color: #000;
}
.popover>.arrow {
    border-width: 12px;
}

这篇关于Bootstrap Popover边框CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆