1.製做本身的導航條。css
2.HTML頭部元素:html
<base> 定義了頁面連接標籤的默認連接地址spa
<style> 定義了HTML文檔的樣式文件3d
<link> 定義了一個文檔和外部資源之間的關係code
3.練習樣式表:行內樣式表;內嵌樣式表;外部樣式表htm
分別練習定義三類選擇器:blog
HTML 選擇器資源
CLASS 類選擇器文檔
ID 選擇器get
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>MISS</title> <base href="http://i1.sinaimg.cn/dy/weather/main/index14/007/icons_32_yl/"target="_blank"> <link rel="stylesheet" type="text/css" href="T5.css"> <style type="text/css"> p{ color:darkcyan;font-size: 10px; } .textblue{ color:blue; text-decoration: underline; } .tea{ background-color:yellow; } c{ color:yellow; } </style> </head> <body> <nav> <img src="w_02_08_00.png"> <a href="http://www.gzcc.cn/">首頁</a> <a href="">下載</a> <input type="text" name="search"> <button type="submit">搜索</button> <a href="">登陸</a> <a href="">註冊</a> </nav> 行內樣式 <div style="width:500px;height:50px;background:blue;"></div> 內嵌樣式 <style type="text/css"> #div{width:500px;height:50px;background:blue;} </style> <div id="div"></div> 外部樣式 <div id="div"></div> <hr> <h1> MIS問答平臺</h1> <div id="container" style="width: 400px"> <div id="header" style="background-color: bisque"><h2 align="center" style="margin-bottom: 0;">登陸</h2></div> <div id="content" style="background-color: bisque;height: 150px;width: 400px;float: left;"align="center"> <from> 用戶名<input type="text" name="firstname"> <br> 密碼<input type="password" name="pwd" > <br> <input type="radio" name="role" value="stu" center >學生 <input type="radio" name="vehicle" vailue="Bike">教師<br> <input type="button" value="Enter"> </from> </div> <div id="footer" style="background-color: lawngreen;clear: both;text-align: center;"> duym</div> </div> <hr> <div id="container" style="width: 400px"> <div id="header" style="background-color: mistyrose"><h2 align="center" style="margin-bottom: 0;"></h2>相關欄目 related sections</div> <div id="content" style="background-color: lightskyblue;height: 300px;width: 500px;float: left;"> <from> <select> <option>請選擇</option> <option>提問</option> <option>下載</option> <option>收藏</option> </select> </from> <ul> <li>教師經常使用表格</li> <li>學生經常使用表格</li> <li>教學管理表格</li> <li>教學管理文件</li> <li>參考資料</li> </ul> <ol> <li>教師經常使用表格</li> <li>學生經常使用表格</li> <li>教學管理表格</li> <li>教學管理文件</li> <li>參考資料</li> </ol>廣州商學院官網 </div> </div> <div id="footer" style="background-color: lightskyblue;clear: both;text-align: center;"></div> <hr> <p> 一學院一特點,一專業一品牌</p> <p class="tea"> 廣州商學院:走適合本身的發展道路</p> <p class="textblue"> 一學院一特點,一專業一品牌</p> <p class="tea">校長思政第一課這樣的思政課「有知有味」</p> <hr> <p>友情連接</p> <a href="https://www.gzcc.cn/"> <img src="http://www.gzcc.cn/2016/images/banner.png" width="500" height="200" alt="taobao.com" /> <br>廣州商學院 </a> </body> </html>
CSS:
p{
color: crimson;
}
h1{
background-color: cyan;
}
.textyellow{
color: gold;
background-color: cyan;
}
#tt{
color: chartreuse;
}