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>

 

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-06-22
  • 2021-12-04
  • 2021-08-20
  • 2021-08-25
  • 2021-10-15
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案