css 字体 twitter 像关闭按钮一样,我错过了什么?
twitter 有一个关闭按钮,它是单个字符“x”。
我需要类似的东西,但是在检查 x
之后,我按照 firebug 告诉我的那样创建了 css 规则:
.close-button {
font-family: Tahoma,Arial,sans-serif;
font-size: 14px;
line-height: 20px;
font-weight: 700;
font-style: normal;
color: #888;
}
但是,它们看起来永远不会一样,我错过了什么?
twitter:
我的:
twitter has it's close button which is a single character 'x'.
and i need to something like that, but after i inspect the <span>x</span>
, i create the css rules as the firebug told me :
.close-button {
font-family: Tahoma,Arial,sans-serif;
font-size: 14px;
line-height: 20px;
font-weight: 700;
font-style: normal;
color: #888;
}
however, they just never looks the same, what did i missing??
twitter:
mine:
for more information: http://jsfiddle.net/bitsmix/gb23A/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是字母“x”仔细观察字符 × x X.. 它是 ascii
×(乘法符号) ALT+0215
It's not an alphabetical "x" look closely at the character × x X.. it's ascii
× (Multiplication Symbol) ALT+0215
它不是一个普通的X,而是一个Unicode字符。
尝试
✖
该符号也称为“重乘 X”,如下所示: ✖
这个问题也可能对您有帮助:“X”取消/关闭的 Unicode 字符?
It is not a normal X, but a Unicode character.
Try
✖
The sign is also called 'Heavy Multiplication X' and looks like this: ✖
this question might also help you: Unicode character for "X" cancel / close?