我有以下页面:
<!DOCTYPE html>
<html>
<head>
<title>The Divine Liturgy</title>
<meta charset='utf-8'>
<style type='text/css'>
body
{
font-family: Verdana, Arial, sans;
}
.ui-tooltip, .ui-widget, .ui-corner-all, .ui-widget-content,
.ui-tooltip-content
{
background-color: #ffff00;
width: 800px;
}
</style>
<link rel='stylesheet' type='text/css'
href='/js/jquery-ui-1.10.2.custom/css/smoothness/jquery-ui-1.10.2.custom.css'
/>
</head>
<body>
<p title="Bless, Master!">Deacon: Blagoslavie, Vladyko!</p>
<p title="Blessed is the Kingdom of the Father, and of the Son, and of the Holy Spirit: Now and ever, and unto the ages of ages.">Priest: Blagoslovenno tsarsvo Otsa i Sina, i Svatago Duha, nine e presno, i vo beki vekov.</p>
<p title="Christ is risen from the dead, trampling down death by death, and on those in the tombs bestowing life!">Clergy: Hristos voskrece iz mertvih, smertyio smert poprav, i sushim vo grodex zhevot darovav!</p>
<script src='/js/vendor/jquery-1.8.2-min.js'></script>
<script
src='/js/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.min.js'></script>
<script>
jQuery(document).tooltip();
</script>
</body>
</html>
我已经在 CSS 类上尝试了几种排列方式,它目前的行为是根据需要以更宽的宽度显示黄色背景悬停,但没有扩展黑白边框区域 - 所以工具提示会随着内容溢出而悬停在正确的边界上 - 不是所希望的。
如何要求包含框适合 800px 内部包含 div?
谢谢,