当文本很长时如何换行默认的工具提示(标题)?

问题描述 投票:0回答:1

如果内容很长(例如 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>```
javascript html css tooltip title
1个回答
0
投票

请仔细阅读此问题,这是一个相关问题,并且提供了所有必需的信息。

如何更改锚标记内标题属性的样式?

希望有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.