当前位置:网站首页>Realize the effect of changing some colors of a paragraph of text
Realize the effect of changing some colors of a paragraph of text
2022-07-29 07:42:00 【Pontoon bridge】
Realize the effect of changing some colors of a paragraph of text
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Pseudo class implementation changes part of the color of a text </title>
<style> .hf {
display: inline-block; font-size: 80px; line-height: 80px; color: #000; position: relative; overflow: hidden; whitewater-space: pre; /* Processing spaces */ } .hf:before {
position: absolute; left: 0; top: 0; color: #f00; display: block; width: 30%; /* If you want to change half the text , Is set 50%*/ content: attr(data-content); /* Dynamic acquisition of pseudo elements */ overflow: hidden; } </style>
</head>
<body>
<div>
<span class="hf" data-content="W">W</span>
<span class="hf" data-content="e">e</span>
<span class="hf" data-content="b">b</span>
<span class="hf" data-content=" front "> front </span>
<span class="hf" data-content=" End "> End </span>
</div>
</body>
</html>

边栏推荐
- Prometheus与Grafana
- [summer daily question] Luogu p4414 [coci2006-2007 2] ABC
- [summer daily question] Luogu P6500 [coci2010-2011 3] zbroj
- Credit card shopping points
- RoBERTa:A Robustly Optimized BERT Pretraining Approach
- MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?
- [summer daily question] Luogu p7760 [coci2016-2017 5] tuna
- 【暑期每日一题】洛谷 P4414 [COCI2006-2007#2] ABC
- How to get to the deep-water area when the industrial Internet goes?
- 梳理市面上的2大NFT定价范式和4种解决方案
猜你喜欢

QT topic: basic components (button class, layout class, output class, input class, container class)

I, 28, a tester, was ruthlessly dismissed in October: I want to remind people who are still learning to test

新生代公链再攻「不可能三角」

halcon的安装以及在vs2017中测试,vs2017中dll的配置
![[WPF] realize language switching through dynamic / static resources](/img/23/1e089ce4a07128323824b25897a8c4.png)
[WPF] realize language switching through dynamic / static resources

log4qt内存泄露问题,heob内存检测工具的使用
![[untitled] format save](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled] format save
![【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK](/img/bf/c0e03f1bf477730f0b3661b3256d1d.png)
【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK

Use custom annotations to verify the size of the list

What are the answers about older bloggers?
随机推荐
State machine DP (simple version)
I, 28, a tester, was ruthlessly dismissed in October: I want to remind people who are still learning to test
Amazon cloud assistant applet is coming!
Gin abort cannot prevent subsequent code problems
程序的静态库与动态库的区别
@Detailed explanation of requestmapping usage
小D的刺绣
MySQL 45 讲 | 07 行锁功过:怎么减少行锁对性能的影响?
Logback log level introduction
zip gzip tar压缩进阶版
MySQL 45 talk | 07 line lock merits and demerits: how to reduce the impact of line lock on performance?
Calculate program run time demo
[MySQL] - [subquery]
Introduction to logback appender
State machine DP 3D
Popular cow G
【FPGA教程案例42】图像案例2——通过verilog实现图像二值化处理,通过MATLAB进行辅助验证
功能自动化测试实施的原则以及方法有哪些?
【暑期每日一题】洛谷 P4413 [COCI2006-2007#2] R2
207. Curriculum