<style>
? ? ? ? div{width: 100Px; height: 100px;
? ? ? ? background-color: red;
? ? background-image: url();
background-repeat: no-repeat;}/* 這是背景圖片脖捻,選擇背景圖片會默認將div占滿 */
/* background-repeat: no-repeat背景只出現(xiàn)一次满哪,不會多出 ? repeat-x就是在x軸重復 */
/* background-position: 10px 20px 可以選擇圖片位置 background: position left center 左邊居中 background:left position bottom是指下面 ?還可以用 background: position 50%這樣的百分數(shù)選擇位置,這個50%是指div高度的一般 ?background: position center center ?也是中間*/
div{width: 200px;height: 200px; background-color: red; ?background:left position bottom ;}/* 元素就是盒子模型組成的 */
? ? </style>
? ? <!-- background是個復合屬性赞季,里面的可以寫在一起 -->
</head>
<body>
<!-- 圖片后有文字使用這個vertical-align:middle -->
<!--去掉li身上的小黑點list-style-type:none ?-->
<!-- color:rgb() ? qq截圖惨远,ctrl+alt+a然后再按住c鍵奶段。就可以復制目標色號 ?或者再按住ctrl+c也可以直接復制 -->
<!-- *表示通配符微峰,代表所有的標簽。margin:0 padding:0可以去除額外空格 -->
<!-- ul li 表示ul下面的所有l(wèi)i元素 ? ?-->
<!-- height=XX ?line heigjt=xx ? -->
<!--text ident 縮進-->
<!-- 盒子 -->