摘要: background:url(),url(),…… 多个背景图片用逗号隔开,越靠前的图片层级越高。 每一个背景图片的写法都和以前单个背景图片的写法是一样的。可以指定图片的平铺方式,位置等等。 · background: url(img/bg.png) no-repeat,url(img/1.jpg) 阅读全文
posted @ 2020-01-30 18:01 张尊娟 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 背景尺寸(background-size) background: url(img/bg.jpg)( no-repeat ) background-size: cover / contain / auto 有先后顺序,background-size放在 background后面才会生效 backgr 阅读全文
posted @ 2020-01-30 17:15 张尊娟 阅读(445) 评论(0) 推荐(0) 编辑
摘要: icon图标的引入 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>站长之家</title> 6 <link rel="shortcut icon" type="image/x-icon" 阅读全文
posted @ 2020-01-30 16:38 张尊娟 阅读(391) 评论(0) 推荐(0) 编辑