Skip to content

Commit

Permalink
使背景图像覆盖整个页面,保持其比例,避免出现拼接
Browse files Browse the repository at this point in the history
  • Loading branch information
lmq8267 authored Jan 6, 2025
1 parent 6a362cb commit e5f3b42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trunk/user/www/n56u_ribbon_fixed/bootstrap/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
body{
background: url("../img/bg/wood.jpg") repeat scroll center top transparent;
/* background: url("../img/bg/wood.jpg") repeat scroll center top transparent; */
background: url("../img/bg/wood.jpg") no-repeat scroll center top transparent;
background-size: cover; /* 使背景图像覆盖整个页面,保持其比例,避免出现拼接 */
background-color: #282828;
overflow-y: scroll;
z-index:-1;
Expand Down

0 comments on commit e5f3b42

Please sign in to comment.