2
我已经添加了一个自定义天气Web部件到我的SharePoint页面,但是我想要一个悬停消息来显示其他信息。CSS工具提示定位/ Chrome浏览器与IE 11
我在Chrome中制作的这些作品看起来很棒,但在IE 11中并没有那么棒。我需要在两个版本中看起来相同 - 任何提示?
.tooltip {
display:inline;
position: relative;
font-family:Arial,Helvetica,sans-serif;
font-size:9pt;
}
.tooltip:hover:after {
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
top: 6px;
color: #fff;
content: attr(title);
left: 5px;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 220px;
/*width: auto;*/
}
.tooltip:hover:before {
border: solid;
border-color: #333 transparent;
border-width: 0 6px 6px 6px;
top: 40px;
content: "";
left: 25px;
position: absolute;
z-index: 99;
}
这里是我的jsfiddle:http://jsfiddle.net/hcoa82wb/
太棒了。非常感谢!我会根据您的建议重新命名.tooltip。 – rle10dre 2014-12-01 21:29:18