简体   繁体   English

文字-IE 8中的空白文字节点问题

[英]Text - Empty Text Node issue in IE 8

I am using IE8 browser. 我正在使用IE8浏览器。 It creates an empty text node after <input /><span><textarea> like this tags. 像这样的标签,它在<input /><span><textarea>之后创建一个空文本节点。
I cant found how rectify this. 我找不到如何纠正这个问题。 Can anybody tell me to fix this issue..? 有人可以告诉我解决此问题吗?
Code :- 代码:-

        <form id="addNewsForm" action="/addNews.php" method="post" enctype="multipart/form-data">
            <label>Title : </label>
            <input type="text" class="addNewsTitle" name="addNewsTitle" />
            <label>Content : </label>
            <textarea rows="10" cols="35" name="addNewsCnt" class="addNewsCnt"></textarea>
            <label>Category : </label>
            <select>
                <option>world</option>
                <option>important</option>
                <option>common</option>
                <option>tamilnadu</option>
                <option>lifestyle</option>
            </select>
            <input type="button" name="noimage" class="newsImgAdd" value="ADD IMAGE" /> 
            <input type="file" name="file" class="addNewsImg" />
            <input type="submit" class="submit addNewsSubmit" value="SUBMIT" />
            <iframe id="addNewsFrame" name="addNewsFrame"></iframe>
        </form>

IE8 shows the empty text nodes because sometimes it considers the space between two elements as Empty Text Node. IE8显示空文本节点,因为有时它会将两个元素之间的间隔视为空文本节点。

You need to remove the space between the fields. 您需要删除字段之间的空间。

Fiddle - http://jsfiddle.net/uTDWD/1/ 小提琴-http: //jsfiddle.net/uTDWD/1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM