時間:2023-09-08 21:48:02 | 來源:網(wǎng)站運營
時間:2023-09-08 21:48:02 來源:網(wǎng)站運營
HTML+CSS實現(xiàn)基本網(wǎng)頁布局(一):我的打算的創(chuàng)作步驟是:靜態(tài)頁面 -> 添加特效 -> 動態(tài)頁面 -> 添加后臺更新 -> 進一步完善。<p>這是一個段落。</p>
HTML標簽的種類有:selector {declaration1; declaration2; ... declarationN }
2.CSS背景語法div{ background-color: #70C000; 設(shè)置背景顏色 background-image: url(../img/1jmphz166b.jpg); 設(shè)置背景圖像 background-repeat: no-repeat; 設(shè)置背景重復:no-reapeat不重復;repeat-x橫向重復;repeat-y:縱向重復 background-position: center; 背景定位:center:居中;top:頂部;bottom:底部;right:右部;left:左部 background-attachment: fixed; 背景關(guān)聯(lián)}
3.CSS文本設(shè)置p{ text-align: center; 文本對齊方式 font-family: "微軟雅黑"; 字體樣式 font-size: 12px; 字體大小 font-weight: bold; 字體加粗}
4.鏈接a:link {color:#FF0000;} 未被訪問的鏈接 a:visited {color:#00FF00;} 已被訪問的鏈接 a:hover {color:#FF00FF;} 鼠標指針移動到鏈接上 a:active {color:#0000FF;} 正在被點擊的鏈接
5.CSS盒子模型div{ height: 500px; 高度 width: 500px; 寬度 padding: 5px 5px; 內(nèi)邊距 margin: 5px 5px; 外邊距 border: 5px; 邊框 position: absolute; 定位 display: none; 顯示 overflow: hidden; 溢出顯示方式 float: left; 浮動}
關(guān)鍵詞:布局,基本,實現(xiàn)
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。