我在箱子提示,至极都犯了这样的:
CSS代码:CSS:如何将提示框(a:悬停)移动到左侧?
a span
{
display:none;
}
a:hover span
{
position:fixed;
display:inline;
border: 1px solid #0000FF;
margin: 0px 0px 0px 10px;
padding: 5px;
color: #000000;
background: #faffc3;
opacity:.90;
}
HTML代码,提示是跨度之间标签和内部一个元素:
<div>
Some text,
<a href="#">link<span>Hint.<br>Second line of hint.</span></a>
, some text, and another
<a href="#">link<span>Hint</span></a>.
</div>
是否可以通过使用某些CSS属性将提示框从链接的右侧(默认位置)移动到左侧?
PS。对不起我的英语不好。
你为什么不试试[Twitter的引导提示](http://twitter.github.com/bootstrap/javascript.html#tooltips)? – 2013-04-05 10:28:45