Rumah > Artikel > pembangunan bahagian belakang > 点上传之后怎么让图片显示在红色的框里,页面不跳?
<code class="language-html">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
<span class="nt"></span>
<span class="nt"><meta> <span class="na">http-equiv=</span><span class="s">"content-type"</span> <span class="na">content=</span><span class="s">"txt/html;charset=utf-8"</span> <span class="nt">/></span>
<span class="nt"><title></title></span>javascript实现IE,firefox客户端图片预览<span class="nt"></span>
<span class="nt"><script></script></span>
<span class="c1">//使用IE条件注释来判断是否IE6,通过判断userAgent不一定准确</span>
<span class="k">if</span> <span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">all</span><span class="p">)</span>
<span class="nb">document</span>
<span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="s1">'</span></span></code>