摘要: sticky 和 fixed区别 fixed:固定的位置。一般用作悬浮按钮的设计。不管当前页面如何滚动,它的位置始终相对于窗体不变。元素从普通文档流中删除,并没有空间为页面中的元素创建布局。 它是相对于初始定位包含块建立的视窗,除非其祖先之一transform, perspective,或filte 阅读全文
posted @ 2018-10-12 22:09 hayaahan 阅读(84) 评论(0) 推荐(0) 编辑
摘要: CSS 颜色表示法和颜色表 阅读全文
posted @ 2018-10-12 21:56 hayaahan 阅读(87) 评论(0) 推荐(0) 编辑
摘要: CSS 单位 em and rem: are often used to create scalable layouts, which maintain the vertical rhythm of the page even when the user changes the font size. 阅读全文
posted @ 2018-10-12 21:54 hayaahan 阅读(108) 评论(0) 推荐(0) 编辑