为什么我的某些HTML项目在双击时会额外获得<span id="transmark"> </span>
?
<p class="messageError">
Bitte geben Sie ein n
eues Kenn
w
<span id="transmark"></span>
ort ein.
</p>
当没有集中注意力时,我看到了这一点:
<p class="messageError">Bitte geben Sie ein neues Kennwort ein.</p>
额外信息:<p>
标签可以点击并淡出(使用Jquery)
我在Jquery中做了多少额外的事情:
var textMessage="<?php echo $errorText;?>";
$('#divid:first-child').prepend("<p class='messageError'>"+textMessage+"</p>");
和此:
$('div#divid > p').on('click',function(){
console.log($(this));
$(this).slideUp('fast');
});
LE:作为修复,我在CSS中设置了它
#transmark{ //firefox bug fix
display: none;
}
答案 0 :(得分:0)
我们看到这个标记被插入到可信的div中。
<span style=\"display: none; width: 0px; height: 0px;\" id=\"transmark\"></span>
禁用此firefox插件会阻止它。
https://addons.mozilla.org/en-US/firefox/addon/google-selection-translate-for/?src=userprofile