CSS網(wǎng)頁布局基礎(chǔ)、網(wǎng)頁布局
時(shí)間:2023-09-06 23:54:01 | 來源:網(wǎng)站運(yùn)營
時(shí)間:2023-09-06 23:54:01 來源:網(wǎng)站運(yùn)營
CSS網(wǎng)頁布局基礎(chǔ)、網(wǎng)頁布局:
可設(shè)置的CSS屬性包括:- 字體屬性:font-family、font-style、font-variant、font-weight、font-size
- 文本屬性:word-spacing、letter-spacing、text-decoration、vertical-align、text-transform、text-align、text-indent、line-height
- 顏色及背景屬性:color、background(background-color、background-image、background-repeat、background-attachment、background-position)
- 邊框?qū)傩裕篵order(border-top、border-right、border-bottom、border-left)(border-width、border-style、border-color)
- 邊距屬性、填充屬性:margin、padding、width、height、float、clear
- 分類屬性:display、white-space、list-style-type、list-style-image、list-style-position、list-style
- 鼠標(biāo)屬性:auto、crosshair、default、hand、move、e-resize、ne-resize、nw-resize n-resize、se-resize、sw-resize、s-resize、w-resize、text、wait、help
CSS文件命名規(guī)范:
- 全局樣式:global.css;
- 框架布局:layout.css;
- 字體樣式:font.css;
- 鏈接樣式:link.css;
- 打印樣式:print.css;
- 頁 眉:header
- 內(nèi) 容:content
- 容 器:container
- 頁 腳:footer
- 版 權(quán):copyright
- 導(dǎo) 航:menu(nav)
- 主導(dǎo)航:mainMenu
- 子導(dǎo)航:subMenu
- 標(biāo) 志:logo
- 標(biāo) 語:banner
- 標(biāo) 題:title
- 側(cè)邊欄:sidebar
- 圖 標(biāo):Icon
- 注 釋:note
- 搜 索:search
- 按 鈕:btn
- 登 錄:login
- 鏈 接:link
- 信息框:manage
- 搜索框:searchInput
- 搜索圖標(biāo):searchIcon
- 搜索按鈕:searchBtn
- <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
- 標(biāo)準(zhǔn)的XML文檔語言定義:
- <?xml version=”1.0″ encoding=” utf-8″?>
- <meta http-equiv=”Content-Language” content=” utf-8″ />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/*內(nèi)部樣式*/
</style>
<link rel="stylesheet" href=""><!-- 外部樣式 -->
</head>
<body>
<div style="內(nèi)聯(lián)樣式">
</div>
</body>
</html>