当前位置:网站首页>Mobile web (Font Icon, plane conversion, color gradient)
Mobile web (Font Icon, plane conversion, color gradient)
2022-04-23 08:05:00 【GuTaiWEI】
Record what you have learned , Welcome comments and corrections .
The fonts icon
Unionde Introduce methods :
- introduce
iconfont.css
file - Prepare a label , Add a... To this label iconfont The name of the class
- find
demo_index.html
Copy the corresponding font code Put it in the label
Font class Introduce methods :
- introduce
iconfont.css
file - Add two class names to a tag
iconfont
icon-xxx
iconfont
The purpose is to tell the text in this box is the Font Icon . Not ordinary words .icon-daohangdizhi
, Tell the box which small icon to use .
Pseudo elements display font icons
-
introduce
iconfont.css
file -
Add... To the label Pseudo elements
-
from
demo_index.html
Find the... Corresponding to the text Icon Unicode value , Copy from e Letter start value , Put into pseudo element content Properties of the -
Add... To the element
font-family
attribute The value isiconfont.css
in font-family ValueBe careful : Use pseudo element Font Icon , Be sure to declare the font . font-family: "iconfont"
deformation transform
Displacement translate
translate: You can let the box go along x Axis or y Axis to move .
//x,y Can be percentages and pixel values
transform: translate(x, y);
transform: translateX(x);
transform: translateY(y);
- When moving, you can write the percentage , If the percentage used , Moving is the box Its own width
translate
When only one value is set , amount totranslateX
rotate rotate
-
rotate: Rotation can make the box rotate by an angle .
// If it's a positive degree , It rotates clockwise // If it's a negative degree , It's counter clockwise transform: rotate(45deg); // Be sure to write the unit
-
transform-origin: Set the position of the center point of rotation
transform-origin: right bottom;
-
Multi form deformation tips
// If you need to move , You also need to rotate , Be sure to write mobile first , Post write rotation , css Attribute writing order affects code execution transform: translate(-50%, -50%) rotate(360deg);
Be careful : Multiple values are preceded by Whitespace separated .
The zoom scale
scale: He uses the center point to zoom , Again, he won't affect other boxes .
transform: scale(1.2);
scale It affects the level of the element , Need to use z-index,z-index Can only act on positioning elements
The gradient linear-gradient
Basic grammar :
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5))
版权声明
本文为[GuTaiWEI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230624538971.html
边栏推荐
- Complete learning from scratch, machine learning and deep learning, including theory and code implementation, mainly using scikit and mxnet, and some practices (on kaggle)
- yum源仓库本地搭建的两种方法
- Intranet penetration series: ICMP of Intranet tunnel_ Tran
- Talk about the essence of interface idempotent and consumption idempotent
- 《内网安全攻防:渗透测试实战指南》读书笔记(六):域控制器安全
- Concours de compétences en informatique en nuage - - première partie de l'environnement cloud privé openstack
- Research on system and software security (3)
- Research on system and software security (4)
- TA notes of Zhuang understand (VII) < Lambert + Phong + shadow + 3evcolor + Ao >
- Intranet penetration series: dns2tcp of Intranet tunnel
猜你喜欢
BUFFCTF文件中的秘密1
Intranet penetration series: icmptunnel of Intranet tunnel (Master James Barlow's)
yum源仓库本地搭建的两种方法
SAP tr manual import system operation manual
Cloud computing skills competition -- Part 2 of openstack private cloud environment
Go语学习笔记 - 数组 | 从零开始Go语言
TA notes of Zhuang understand (VII) < Lambert + Phong + shadow + 3evcolor + Ao >
Feign source code analysis
Using lambda expression to solve the problem of C file name sorting (whether it is 100 or 11)
upload-labs 靶场练习
随机推荐
nacos源码分析思路
MySQL——第一章节(MySQL中的数据类型)
Intranet penetration series: dnscat2 of Intranet tunnel
《内网安全攻防:渗透测试实战指南》读书笔记(六):域控制器安全
利用sqlmap注入获取网址管理员账号密码
BUUCTF MISC刷题
内网渗透系列:内网隧道之dnscat2
CTF-MISC总结
内网渗透系列:内网隧道之icmptunnel(DhavalKapil师傅的)
Flutter之Provider共享数据的两种方式
Research on software security based on NLP (I)
feign如何集成hystrix
Three minutes to teach you to use Houdini fluid > > to solve particle fluid droplets
[NLP notes] preliminary study on CRF principle
DVWA靶场练习
MySQL--锁的奥秘--数据怎么锁
Complete color conversion formulas and conversion tables (31 kinds)
BUUCTF MISC刷題
从ES、MongoDB、Redis、RocketMQ出发谈分布式存储
strcat()、strcpy()、strcmp()、strlen()