html - 按钮内的资源管理器工具提示

标签 html css

工具提示 CSS:

.mainButtonContainer button:hover:after
{

    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.7);
    border-color: #093466;
    border-radius: 5px 5px 5px 5px;
    border-style: solid;
    border-width: 7px 2px 2px;
    bottom: -5px;
    color: #093466;
    padding: 5px 15px;
    position: absolute;
    width: 113px;
    z-index: -1;
}

html:

<button  id=mgf_main1 type="button" onclick="loadData(1)">
    <img src="Images/Magof-Icon.png" width="68" height="68"/>
</button>

工具提示在 Firefox、Chrome 等中看起来不错。

Firefox

但问题出在IE (10)

Explorer

工具提示包含在按钮的大小中,我该如何解决?

最佳答案

.mainButtonContainer 按钮 { overflow: visible } – DJDavid98

关于html - 按钮内的资源管理器工具提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18426811/

相关文章:

JavaScript 面积计算器

javascript - 如何正确创建一个textNode并附加到特定位置?

html - 如何使用 CSS3 flexbox 对齐 HTML 标签?

javascript - 如何自动缩放mPDF中的SVG对象以适合页面的其余部分?

html - 轮播不适用于 bootstrap v4

javascript - 选中复选框时启用/禁用输入

html - CSS div溢出隐藏和 float

CSS 菜单 a :hover when in parent div

javascript - 网站菜单栏下拉

Javascript在单击按钮时隐藏表格单元格