下面是我用於我的jquery插件的CSS。在Jquery工具提示插件中插入一條新線
CSS
<style type="text/css">
body, div { font-family: arial, sans-serif;}
body { margin: 0; padding: 0; }
h3 {
font-size: 110%;
font-weight: normal;
margin: .2em 0 .5em 0;
}
#tooltip {
position: absolute;
z-index: 3000;
border: 1px solid #111;
padding: 5px;
}
#tooltip h3, #tooltip div { margin: 0; }
</style>
腳本
<script type="text/javascript">
$(function() {
$('.studentclass').tooltip({ showURL: false, positionLeft: true, html:true});
$("#block").click($.tooltip.block);
});
</script>
HTML
<label id="lblstudentname"
runat="server"
title="Name of the student in the class "
class="studentclass">
STUDENT
</label>
我一直在使用/ BR,/ R/N和緊迫的標題進入,但沒有人似乎工作嘗試。有人可以幫幫我嗎 。
**您正在使用哪個** jQuery工具提示插件? –
可能將我們與[jsfiddle](http://jsfiddle.net/)聯繫起來? – Srinivas
錯過了添加我的問題。這裏是jquery插件的鏈接http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ – Janet