goTOP
October 7, 2015

CSS 背景全畫面

| |
網頁語言 » CSS | 閱覽(3509) | Posted by apao at 07:20
如果設定在body背景上,也可以完成相類似的效果。
html {
  background: url(你的圖片) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Facebook twitter LINEk
文章来自: 本站原創
Tags: , ,
0 Comment(s)
我要發表評論
暱稱
密碼 [ 訪客無需密碼 ]
電郵
網址
開啟HTML 開啟UBB 開啟表情 隱藏 記住我