- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我看到很多网站的 before 元素的内容是这样给出的
twitter.icon:之前{ 内容:'\f099'
它首先看起来像一个方框,然后变成一个 twitter 图标,没有使用背景图像或 javascript,有人可以解释一下这些图标是如何创建的吗,您可以在 http://www.freelancerinsights.com/upwork-reject-profile/ 上查看示例
简而言之,我想知道在上面的站点中,共享图标是如何创建的,他们既不使用背景图像也不使用图像,那么他们是如何创建这些图标的呢?
最佳答案
这些图标是用矢量图标字体创建的,例如 Font Awesome .访问他们的网站,获取有关如何在您的元素中实现 FA 的简单说明。
在您链接的网站上,检查您提到的社交图标会发现 Font Awesome 实现:
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
关于html - :before psuedo element changes into share icon怎么办,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41380452/
好吧,首先,我想要做的是在 web 浏览器控件内单击 flash 对象内的特定点。我不确定为什么它不起作用,但我似乎无法单击任何窗口,无论是记事本还是实际程序。 这是我正在使用的代码。 [Dl
我已经在我的 :after psuedo 中使我的背景图像响应,但无法控制高度响应,所以我最终在图像底部有一个大的空白区域。 我的 CSS: .element:after { content:
最近我一直在研究 Shower HTML5+CSS3 presentation template进行即将进行的演示。花洒用CSS :target pseudo-class这使得在幻灯片概览中轻松识别当
我已经设置了这个 jsFiddle 来说明这个问题。我正在使用 CSS 伪元素创建一个指针,它偏移了父元素。 http://jsfiddle.net/fLTFP/ 它在 FireFox 和 Webki
我有以下声明: var optionsWithAttribute = $(element).find("option[data-attribute]"); 我现在想从该集中获取选定的选项,所以我写道:
对于我的生活无法让他工作 - 我尝试在 div 中的一组 h1 标签之前插入一个图标字体。我可以在每个 H1 标签之前获得一种图标字体,但这不是我想要的。重申一下,在 div 之前使用一种图标字体,而
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 关闭 7 年前。 编辑问题以包含 desired behavior, a specific probl
我有一些 CSS 可以在 Chrome 和 Firefox 中使用,但不能在 IE 11 中使用。 这是一个带有管道分隔符的简单水平导航栏。 这是 CSS: .language li{ dis
最近我一直在研究 Shower HTML5+CSS3 presentation template进行即将进行的演示。花洒用CSS :target pseudo-class这使得在幻灯片概览中轻松识别当
我看到很多网站的 before 元素的内容是这样给出的 twitter.icon:之前{ 内容:'\f099' 它首先看起来像一个方框,然后变成一个 twitter 图标,没有使用背景图像或 java
据说,pssh 的 -x 选项会传递额外的 SSH 命令行参数。 SSH 的“-t”选项应该已经解决了“伪终端”错误。是否应该使用另一个 pssh/ssh 选项? # pssh -i -H ec2-u
我想知道为什么使用 $.css() 时 button:hover 和 button:active 不起作用 button { background: #781111; color: w
我正在尝试创建一个将元素标记为“已修改”的 CSS 类。修改后的元素由页面主体左侧边距中的垂直线指示。 我正在使用 :before 伪元素,但是因为我的元素没有相对位置,所以我似乎无法让它与父元素匹配
这个很难解释。我正在尝试做这样的事情: https://codepen.io/pen/yLBaJOq .button { position: relative; display: in
我从 here 改编了一些代码为了检测我的 Phonegap 应用程序中的方向变化(为横向和纵向加载不同的 CSS 文件)。我收到“无法读取空错误的属性‘内容’,暗示 DOM 调用有问题。代码涉及将这
所以我有一个典型的场景:使用 :hover 伪类将按钮样式设置为在悬停时转换其颜色。 该按钮还有一个 :active 触发类,以便在单击时再次改变颜色;但这次我不想要过渡,所以这个类禁用了所有过渡(我
我想使用网格系统来显示大量图标。我从博客中了解到这一点并将代码放在 JSFiddle 中.我已经使网格系统响应 JSFiddle 示例,但我不明白两件事。 首先,如果我将 :before 伪元素的 p
这是一个说明我遇到的问题的代码笔: http://codepen.io/pcostanz/pen/ukzIf 我正在将排序指示符作为伪元素添加到内联 block 元素的网格中,我正在使用 :after
我有一个三 Angular 形:在表单中的每个表格元素之后(不要跟我谈论标记。我只能访问 CSS >.>),在 IE9/IE10/Chrome/FF 中它工作正常。但是,当我在 IE8 中检查它时,我
我是一名优秀的程序员,十分优秀!