在CSS之后使用HTML标记悬停状态 [英] Using HTML in CSS After Tag for Hover State

查看:161
本文介绍了在CSS之后使用HTML标记悬停状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图传入一些html到:在css中的伪类后,添加一个箭头后链接一次悬停。我已经看到这样做相当一段时间前的股票WordPress主题,以前的默认安装。我觉得我必须缺少一些简单的东西。

I am currently trying to pass in some html into the the :after pseudo class in css to add an arrow after a link once hovered on. I have seen this done quite some time ago in the stock WordPress theme that used to ship with the default install. I feel like I must me missing something simple.

a:hover:after{content: "»"}  

预先感谢!

推荐答案

您需要使用十六进制值 \00BB

You need to use the hex value \00BB.

http://jsfiddle.net/durilai/AGDbH/

这篇关于在CSS之后使用HTML标记悬停状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆