-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
浅谈《年度盛典》后,对胡里花哨的样式爱恨情仇 #7
Labels
Comments
边框渐变色(圆角)方式一:
|
字体渐变方式一:
备注:优先使用color去控制,text-fill-color属于非标准属性
|
不规则图形一、平行四边形方式:transform:skew(-45deg) skew() 函数定义了一个元素在二维平面上的倾斜转换,这种转换是一种剪切映射(横切),它在水平和垂直方向上将单元内的每个点就去一定的角度,每个点的坐标根据指定的角度已经到原点的距离,进行成比例的值调整;因此,一个点离原点越远,其增加的值就越大
以上的写法会导致里面的内容也会变形,换个做法,在box里面添加一个伪元素去设置背景+skew(-45deg);
在设置不规则形状的时候,为了保证内容不受影响,可以通过伪元素来去实现 二、梯形
方式:
perspctive() css属性得到三维定位的元素的一些透视在z=0平面和用户之间的距离。perspctive z>0 的每个3D元素都会变大;z<0的每个3D的元素都会变小
2.直角梯形 方式一(有透明的问题):
方式二:
菱形方式一:
方式二:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在一些样式上,如果能用css在实现个人觉得是更优的一个选择,相比于通过图片来呈现
The text was updated successfully, but these errors were encountered: