当前位置:网站首页>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
边栏推荐
- How does Apache Hudi accelerate traditional batch mode?
- Intranet penetration series: icmptunnel of Intranet tunnel (by master dhavalkapil)
- Alibaba sentinel学习QA
- 内网渗透系列:内网隧道之icmptunnel(DhavalKapil师傅的)
- Chapter IV intangible assets
- LeetCode 1611. 使整数变为 0 的最少操作次数
- Talk about the essence of interface idempotent and consumption idempotent
- 访问数据库的时候出现错误 Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.详解
- Ctf-misc learning from start to give up
- KVM安装部署
猜你喜欢
CTF-MISC学习之从开始到放弃
数据库之MySQL——基础篇
CTF attack and defense world brush questions 51-
The displayed amount of ABAP ALV is inconsistent with the exported amount
内网渗透系列:内网隧道之icmptunnel(DhavalKapil师傅的)
Analysis of Nacos source code
How does Apache Hudi accelerate traditional batch mode?
内网渗透系列:内网隧道之dns2tcp
Chapter V investment real estate
国基北盛-openstack-容器云-环境搭建
随机推荐
《内网安全攻防:渗透测试实战指南》读书笔记(八):权限维持分析及防御
云计算赛项--2020年赛题基础部分[任务3]
云计算技能大赛 -- openstack私有云环境 第一部分
Expression related to month, year and day in SVG
BUUCTF MISC刷题
RAID0和RAID5的创建和模拟RAID5工作原理
Research on software security based on NLP (2)
第四章 无形资产
Research on system and software security (5)
strcat()、strcpy()、strcmp()、strlen()
求3个字符串(每串不超过20个字符)中的最大者。
BUFFCTF文件中的秘密1
Intranet penetration series: pingtunnel of Intranet tunnel
Learning records of some shooting ranges: sqli labs, upload labs, XSS
Research on system and software security (I)
Ctf-misc learning from start to give up
RGB color to hex and unit conversion
Intranet penetration series: dns2tcp of Intranet tunnel
Intranet security attack and defense: a practical guide to penetration testing (6): domain controller security
FUEL: Fast UAV Exploration using Incremental Frontier Structure and Hierarchical Planning