加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 具有工具提示的Bootstrap按钮组故障

发布时间:2020-12-17 21:24:02 所属栏目:安全 来源:网络整理
导读:我有一个组按钮,每个按钮都启用了工具提示. 将鼠标悬停在组的最后一个按钮上时,工具提示会导致未对齐,并且按钮的边框不再呈圆形.我知道工具提示样式覆盖了按钮样式,但我无法找到它的位置. 演示:Bootply 更新: 通过更改 a来修复带有 button的元素elemnt然后
我有一个组按钮,每个按钮都启用了工具提示.
将鼠标悬停在组的最后一个按钮上时,工具提示会导致未对齐,并且按钮的边框不再呈圆形.我知道工具提示样式覆盖了按钮样式,但我无法找到它的位置.

演示:Bootply

更新:

通过更改< a>来修复带有< button>的元素elemnt然后使用自定义样式

按钮:

<button class="btn btn-small btn-danger" data-toggle="modal" title="Unlink" data-target="#@item.WOWorkPermitID"><i class="icon-resize-full icon-white"></i></button>

CSS:

.btn-group > .btn:last-of-type {
    -webkit-border-top-right-radius: 4px;
    -moz-border-top-right-radius: 4px;
    border-top-right-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

演示 – > Bootply

相关文章 – > twitter bootstrap tooltips over buttons inside table not displaying correctly

解决方法

尝试

$(".btn").tooltip({     
    'placement': 'top',container: 'body'  
 });

它对我有用:)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读