css font twitter like close button, what did I mis

2019-04-10 13:49发布

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:

this is the twitter close button.

mine:

this is my close button.c

for more information: http://jsfiddle.net/bitsmix/gb23A/

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-04-10 14:38

It's not an alphabetical "x" look closely at the character × x X.. it's ascii

× (Multiplication Symbol) ALT+0215

查看更多
登录 后发表回答