我有一个使用Firefox很好地显示的简单HTML文档。但是,使用Chrome时,它只会显示其中的一部分。使用Chrome查看源代码,我看到了:
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739104">A</span>TTGATGATATGTTGGAT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739122">C</span>AAG<spa
<spa
已损坏,此后的内容未显示。我在HTML文件中的代码如下:
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739104">A</span>TTGATGATATGTTGGAT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739122">C</span>AAG<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739126">T</span><span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739127">A</span>A<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739129">A</span>ATTTC<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739135">C</span>CTAATATTTGT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739147">A</span>TGATT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739153">T</span>AACTTATCCG<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739164">T</span>TGCTTTGA<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739173">A</span>
我的css
mnull
:
.mnull {
background-color: #FFFFCC;
color: #000000;
}
我没有显示整个代码,因为它太大了。您对谷歌浏览器的原因有什么了解吗?
答案 0 :(得分:0)
只是一个想法:当你为代码添加换行符时它有用吗? 所以,当你写
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739104">A</span>
TTGATGATATGTTGGAT
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739122">C</span>
AAG
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739126">T</span>
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739127">A</span>
A
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739129">A</span>
ATTTC
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739135">C</span>
CTAATATTTGT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739147">A</span>
TGATT
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739153">T</span>
AACTTATCCG
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739164">T</span>
TGCTTTGA
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739173">A</span>
而不是
<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739104">A</span>TTGATGATATGTTGGAT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739122">C</span>AAG<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739126">T</span><span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739127">A</span>A<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739129">A</span>ATTTC<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739135">C</span>CTAATATTTGT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739147">A</span>TGATT<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739153">T</span>AACTTATCCG<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739164">T</span>TGCTTTGA<span onClick="reply_click(this.id)" class="mnull" id="SL2.50ch04_49739173">A</span>