如何在 HTML 的标题属性中添加新行/换行符

2022-01-22 00:00:00 hover html css accessibility

我正在使用这个

<a href="#" title="select from 1: this 2: that" >点击这里</a>

当有人将鼠标悬停在它上面时,我会在一行中看到所有文本.

When someone hover over it I see all the text in one line.

有没有办法在新行显示它?

Is there any way to show it on new line?

推荐答案

你可以使用&#013;&#010;.

<a href="#" title="select from 1: this &#013; 2: that" >Click here</a>

<a href="#" title="select from 1: this &#010; 2: that" >Click here</a>

相关文章