html global attribute title displays in multiple lines
下面的代码段主要是展现了4种方式让 title 属性的多行展示,经测试,至少兼容到了 ie8
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>html global attribute title displays in multiple lines </title>
</head>
<body>
<p>Newlines in title should be taken into account,like this
<abbr title="This is an example
multiline title">example</abbr>.</p>
<p>Newlines in title should be taken into account,like this
<mark title="This is an example
multiline title">example</mark>.</p>
<p>Newlines in title should be taken into account,like this
<span title="This is an example
multiline title">example</span>.</p>
<p>Newlines in title should be taken into account,like this
<span title="This is an example
multiline title">example</span>.</p>
</body>
</html>
展示图片效果: