gpt4 book ai didi

javascript - HTML 中的文本无法正确显示

转载 作者:行者123 更新时间:2023-11-28 13:25:12 24 4
gpt4 key购买 nike

有人可以看看我的 HTML 并告诉我为什么它不能正常工作以及我可以采取什么措施来解决它。问题是跨度内的文本无法正确显示。我不明白的是 ><12(数字)显示正确。

这是 fiddle https://jsfiddle.net/rwfg0wtL/

这是完整的代码

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<table border=0 style='table-layout:fixed;display:block; width:100%; cellPadding=3;' class='previewText'>

<thead>
<colgroup>
<col align='left' width='20px'>
<col align='left'>

</colgroup>
<tbody>
<tr id='complaintrow' name='complaintrow' selected=true>
<td style="" width:20px"" valign="" top""><img src='images/checkon.gif' height=16 width=16 style='cursor:hand' language=vbscript onclick='select'></td>
<td align=left>
<span language=vbscript ondrop='StopBubble' onpaste='CheckPaste' class=labelOnPreviewcc style="" width:100%; word-break:break-all;"" id=txtValue>

><test <!--'This does not work-->
<br/>
><12 <!--this works-->
<br/>
><1test <!--this works-->
</span>
</td>
</tr>
</tbody>
</table>

</body>
</html>

最佳答案

< , >&不允许出现在 XML 或 HTML 的原始文本中。要将它们放入文档中,您需要输入 &lt; (小于),&gt; (大于)和&amp; (与号)。

关于javascript - HTML 中的文本无法正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29834131/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com