如果内容很长(例如 300px )它需要显示下一行,我想包装默认的标题(工具提示)属性,内容也是动态显示的,所以把 对我来说这不是一个好的选择。
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<p title="This is a very text that needs to wrap. The content is dynamic so \n is not good option">
This is a very text that needs to wrap . The content is dynamic so \n is not good option
</p>
<p title="Short text">
short text to check
</p>
</body>
</html>```