【发布时间】:2019-02-21 09:03:07
【问题描述】:
如果 "Card.io" 写在 html 字符串中,UIWebview 会在下面的字符串中将其显示为带下划线的文本。
<p>
<strong>Card.io</strong>
<br />The MIT License (MIT)<br />
Copyright (c) 2013-2016 PayPal Holdings, Inc.<br />
Permission is hereby granted, ...<br />
The above copyright notice ...<br />
THE SOFTWARE IS PROVIDED "AS IS" ... <br />...
......
</p>
如果写的是“Hello World”而不是“Card.io”,UIWebview 会将其显示为粗体,但没有像预期的那样加下划线。
<p>
<strong>Hello World</strong>
<br />The MIT License (MIT)<br />
Copyright (c) 2013-2016 PayPal Holdings, Inc.<br />
Permission is hereby granted, ...<br />
The above copyright notice ...<br />
THE SOFTWARE IS PROVIDED "AS IS" ... <br />...
......
</p>
为什么 UIWebView 将“Card.io”显示为带下划线的字符串?有什么想法吗?
【问题讨论】: