title 换行显示

 首先要知道换行符,如下:

  &#10     

代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <div title="2020年5月14日&#10气温15-29℃">
        <p>2020年5月14日</p>
        <p>气温15-29℃</p>
    </div>

</body>
</html>
原文地址:https://www.cnblogs.com/zhinian-/p/12886314.html