在导航栏的基础上添加背景

1 body{
2             margin:0px;
3              background-image: url("images/7.jpg");
4              min-height: 380px;
5               background-position: center;
6               background-repeat: no-repeat;
7               background-size: cover;
8               position: relative;
9         }

使用这段代码就可以添加背景图片

 

posted @ 2019-07-08 17:31  梦人亭  阅读(855)  评论(0编辑  收藏  举报