导航,头部,CSS基础

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;
        }

相关文章
相关标签/搜索