什么是HTML字符代码8203? [英] What's HTML character code 8203?

查看:185
本文介绍了什么是HTML字符代码8203?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

字符代码(HTML)​ 是什么?我在我的一个jQuery脚本中发现了它,并想知道它是什么。



谢谢。

编辑:



这是它所在的脚本(它被添加到最后,在Firebug中找到它)

 < script src =http://code.jquery.com/jquery-latest.jstype =text / javascript>< /脚本> 
< script type =text / javascript>
var $ jnyh = jQuery.noConflict();


$ jnyh(function(){
$ jnyh(#title-nyh)。click(function(){
$ jnyh(。show如果(!$ jnyh(this).data('pinned'))
$ jnyh(){
},函数(){
) (.show-hide-nyh)。slideUp(slow);
});
$ jnyh(#title-nyh)。click(function(){
$ jnyh(this).parent()。toggleClass(title-btm-brdr);
$ jnyh(this).toggleClass(chev-up-result);
var pin = $ jnyh(this).data('pinned');
$ jnyh(this).data('pinned',!pin);
if(pin)$ jnyh(。show-hide-nyh ).slideUp(slow);
});
});&#8203;
< / script>


解决方案

这是 Unicode字符'ZERO WIDTH SPACE'(U + 200B)


此字符用于换行符控制;它没有宽度,但它在两个字符之间的存在并不妨碍在对齐方面增加字母间距。

根据给定的代码示例,实体在这方面完全是多余的。它必须插入一些意外事件,很可能是由一个错误的编辑器试图用空格或突出显示来做聪明的事情,或者是一个使用键盘语言的最终用户,其中本来就使用了这种字符,例如阿拉伯语。


What does the character code (HTML) &#8203;? I found it in one of my jQuery scripts and wondered what it was..

Thanks.

Edit:

Here is the script it was in (it was added to the end, found it in Firebug)

<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
var $jnyh = jQuery.noConflict();


$jnyh(function() {
    $jnyh("#title-nyh").click(function() {
      $jnyh(".show-hide-nyh").slideDown("slow");
    }, function() {        
      if(!$jnyh(this).data('pinned'))
        $jnyh(".show-hide-nyh").slideUp("slow");
    });
    $jnyh("#title-nyh").click(function() {
    $jnyh(this).parent().toggleClass("title-btm-brdr");
       $jnyh(this).toggleClass("chev-up-result");
      var pin = $jnyh(this).data('pinned');
      $jnyh(this).data('pinned', !pin);
      if(pin) $jnyh(".show-hide-nyh").slideUp("slow");      
    });
});​&#8203;
</script>

解决方案

It's the Unicode Character 'ZERO WIDTH SPACE' (U+200B).

this character is intended for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification

As per the given code sample, the entity is entirely superfluous in this context. It must be inserted by some accident, most likely by a buggy editor trying to do smart things with whitespace or highlighting, or an enduser using a keyboard language wherein this character is natively been used, such as Arabic.

这篇关于什么是HTML字符代码8203?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆