摘要:
background-color:#000; background-size:cover; background-position:50% 50%; text-align:center; color:white; (background-size是css3中新增的属性,background-size 阅读全文
摘要:
- 全屏的元素及其父元素都要设置height:100% - 将html、body标签设置成height:100% 注(height:100%是跟随其父元素高度变化而变化的) 阅读全文