我正在使用 Prototype 工具提示,但无法在内容中使用引号 (" ")、段落等。下面是示例。
<div style="margin-right: 2px" id="bio" class="masters-bio">Bio</div>
<script type="text/javascript" language="javascript">
new Tip('bio', "Lorem ipsum "dolor" sit amet, consectetur adipiscing elit. Ut rhoncus mollis tincidunt. Curabitur rhoncus suscipit dui, quis tristique est posuere in. Nam in pretium tellus.", {
title: "Bio",
closeButton: true,
showOn: 'click',
hideOn: { element: 'closeButton', event: 'click'},
stem: 'bottomMiddle',
hook: { target: 'topMiddle', tip: 'bottomMiddle' },
offset: { x: 0, y: -2 },
width: '300px',
style: 'protogrey'
});
</script>