
CSS3
辣条小哥哥
生活不易,请继续努力,在未来的路上,愿你步伐坚定且内心温柔
展开
-
利用flex实现元素水平垂直居中
<div class="father"> <div class="son"> </div> </div> *{ margin: 0; padding: 0 } .father{ width: 400px; height: 400px; border: 1px dashed black; display: flex;/*父元素设置flex属性*/ justify-content: cent原创 2021-09-28 14:21:10 · 690 阅读 · 0 评论 -
CSS3有哪些新特性?
1.CSS3的选择器 E:last-child 匹配父元素的最后一个子元素E。 E:nth-child(n)匹配父元素的第n个子元素E。 E:nth-last-child(n) CSS3 匹配父元素的倒数第n个子元素E。 2.@Font-face 特性 Font-face 可以用来加载字体样式,而且它还能够加载服务器端的字体文件,让客户端显示客户端所没有安装的字体。 @font-face { font-family: BorderWeb; src:url(BORDERW0.eot); }原创 2021-05-07 15:51:13 · 129 阅读 · 0 评论