日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 前端技术 > CSS >内容正文

CSS

via css书签,Unicode via CSS :before

發(fā)布時(shí)間:2024/5/14 CSS 71 豆豆
生活随笔 收集整理的這篇文章主要介紹了 via css书签,Unicode via CSS :before 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

可以將文章內(nèi)容翻譯成中文,廣告屏蔽插件可能會(huì)導(dǎo)致該功能失效(如失效,請(qǐng)關(guān)閉廣告屏蔽插件后再試):

問題:

I am using Font Awesome on my webpage and I want to display an icon inside the :before pseudo element.

According to the documentation/cheatsheet, I have to type ? to get this font, but it isn't working. I believe that is normal because HTML entities aren't supported in :before.

So I googled a bit and found out, that if you want to display HTML entities in :before, you have to use the escaped hex reference.

So I was searching for the hex reference to ? but I found nothing. I believe that is because these are "private use" values, whatever that means.

Is there any way to get it working in :before?

回答1:

The escaped hex reference of ? is \f066.

content: "\f066";

回答2:

In CSS, FontAwesome unicode works only when the correct font family is declared (version 4 or less):

總結(jié)

以上是生活随笔為你收集整理的via css书签,Unicode via CSS :before的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。