我是jQuery的新手,並且已經嘗試了ToolTip Widget。jQuery工具提示顯示額外的div
當顯示工具提示時,在顯示的工具提示內容的文本內容下還會顯示一個額外的div。
這是不受歡迎的,我不知道如何擺脫它。
請參閱: jsFiddle link for Trying jQuery ToolTip瞭解我遇到問題的代碼示例。
這裏是我張貼的jsfiddle代碼:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>tooltip demo</title>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<style type="text/css">
.ui-tooltip
{
padding: 8px;
position: absolute;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px #aaa;
box-shadow: 0 0 5px #aaa;
background: black;
color: White;
}
body .ui-tooltip
{
border-width: 2px;
}
</style>
</head>
<body>
<p>
<a href="#" title="Anchor description">Anchor text</a>
<input title="Input help">
</p>
<script type="text/javascript">
$(document).tooltip();
</script>
</body>
</html>
由於我的主應用程序配置的方式,我避開了那個css文件。感謝您的幫助,指引我進入.hidden-accessible類的方向。 – Frinavale