首页 新闻 会员 周边

bootstrap ghyphicon ghyphicon-xxx 样式设定的含义

0
悬赏园豆:10 [待解决问题]

例如

.glyphicon-envelope:before {
content: "\2709";
}

我想请问一下这个content中的16进制数字代表的是什么?

为什么就能定位到一个图片呢?

VoctrALs的主页 VoctrALs | 初学一级 | 园豆:199
提问于:2014-05-27 11:56
< >
分享
所有回答(2)
0

能定位到的图片说明你的图片的class="glyphicon-envelope"

\2709应该是一个特殊符号吧

刘宏玺 | 园豆:14020 (专家六级) | 2014-05-27 12:11
0

本来想说同求的,后来想想还是自己动手,丰衣足食;

首先给链接:http://www.vanseodesign.com/web-design/icon-fonts/

再贴原文:In the code above we’ve already seen the two main routes to solving the screen reader issue, aria-hidden in html and speak in css. One other possibility is better mapping of the icon to unicode characters. There are many, many thousands of unsigned code points in unicode that could be used for icon fonts that won’t be read aloud.

自己的理解:那个就是unicode,而且是没有分配过的编码,目的是解决屏幕阅读器会将字体图标读出来的问题,因为字体图标,虽然我们正常人看到的是图标,但是屏幕阅读器还是当作字体了,所以会读出声音来,所以字体图标最好分配一个没有分配的unicode编码

ThreeTree | 园豆:1490 (小虾三级) | 2014-05-27 13:07
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册