我有这段代码,它在鼠标悬停时显示工具提示。如何使工具提示文本显示在下一行和左侧?演示
<div id="demo">
<p title="The tooltip text I want this in next line"> Tooltip 1</p>
<p title="The tooltip text I want this in next line">Tooltip 2</p>
<p title="The tooltip text I want this in next line">Tooltip 3</p>
<p title="The tooltip text I want this in next line">Tooltip 4</p>
</div>
CSS:
.tooltip {
display:none;
font-size:12px;
height:70px;
width:160px;
padding:25px;
color:#eee;
}
JS
$("#demo img[title]").tooltip();