当前位置:网站首页>对伪类的理解
对伪类的理解
2022-06-25 22:05:00 【妄想_wangx】
伪类学过一段时间了,但是一直迷迷糊糊的,今天才有些理解。
CSS伪类是用来添加一些选择器的特殊效果。
使用方法是在标签名/类名后+冒号+伪类名+伪类体
比如 a:hover {color:#FF00FF;} /* 鼠标划过链接 */
常用的有:
a:link {
color:#FF0000;} /* 未访问的链接 */
a:visited {
color:#00FF00;} /* 已访问的链接 */
a:hover {
color:#FF00FF;} /* 鼠标划过链接 */
a:active {
color:#0000FF;} /* 已选中的链接 */
p:before
{
content:"aaaaa";
}
/*在段落前加 aaaaa*/
.类名:after{
content: "bbbbbb";
}
/*生成bbbbbb作为最后一个元素*/
边栏推荐
- Episode 3: thread synchronization using thread lock
- Px4 simulation basis
- 经典图像分割网络:Unet 支持libtorch部署推理【附代码】
- 登录拦截器
- Mutual conversion between QT utf8 and Unicode encoding, and the Unicode encoding output format is &xxxxx
- C2. k-LCM (hard version)-Codeforces Round #708 (Div. 2)
- C. Fibonacci Words-April Fools Day Contest 2021
- Extraction system apk
- DPVS-FullNAT模式管理篇
- QT Chinese and English use different fonts respectively
猜你喜欢

解析產品開發失敗的5個根本原因

森林的先序和中序遍历

LeetCode-1528-重新排列字符串-哈希表-字符串

idea 查看单元测试覆盖率

How does excel translate Chinese words into English automatically? This formula teaches you

后序线索二叉树

Gradle的环境安装与配置

Visual studio code create minimal web API (asp.net core)

Hibernate architecture introduction and environment construction (very detailed)

解析产品开发失败的5个根本原因
随机推荐
Episode 3: thread synchronization using thread lock
qtcreator 格式化代码
CSDN原力值
Bi-sql stored procedure (I)
php性能优化
(serial port Lora module) centrida rf-al42uh private protocol test at instruction test communication process
Once beego failed to find bee after passing the go get command Exe's pit
Analysis on the control condition and mode of go cooperation overtime exit
A. Balance the Bits--Codeforces Round #712 (Div. 1)
The package name of the manifest file in the library project and the app project are not the same
phoenix索引
OpenJudge NOI 2.1 15:Counterfeit Dollar
idea 查看单元测试覆盖率
CSDN add on page Jump and off page specified paragraph jump
Online customer service - charging standards and service provision of third parties
C2. k-LCM (hard version)-Codeforces Round #708 (Div. 2)
Qt 中文和英文分别使用不同的字体
Today's 61 Fu
mysql版本升级+数据迁移
QComboBox下拉菜单中有分隔符Separator时的样式设置