首页 > Web开发 > 详细

web基础,用html元素制作web页面

时间:2017-10-13 20:58:27      阅读:185      评论:0      收藏:0      [点我收藏+]

用div,form制作登录页面,尽可能做得漂亮。

练习使用下拉列表选择框,无序列表,有序列表,定义列表。

观察常用网页的HTML元素,在实际的应用场景中,用已学的标签模仿制作。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MIS问答平台</title>
</head>
<body>
<h1>MIS问答平台</h1>
<h2>2017-2018</h2>
<p></p>
<div  id="container" style="width:400px " >
    <div id="header" style="background-color:red;"><h2 align="center" style="margin-bottom:0;">LOGIN</h2></div>

    <div id="content" style="background-color:yellow;height:200px;width:400px;float:left;">
        <form action="">
            Username:<input type="text" name="user"placeholder="用户名"><br>
            Password:<input type="password" name="password"placeholder="密码">
            <br>
            <input type="radio"name="role"value="stu">student
            <input type="radio"name="role"value="tea">teacher
            <br>
            <input type="button" value="login">
            <input type="button" value="cancel">
        </form>
    </div>
    <div id="footer" style="background-color:red;clear:both;text-align:center;">版权所属@ 海力</div>
</div>
<div  id="container" style="width:400px " >
    <div id="header" style="background-color:yellow;"><h2 align="center" style="margin-bottom:0;">SEARCH</h2></div>

    <div id="content" style="background-color:yellow;height:200px;width:400px;float:left;">
        <from>
            <select>
                <option>选项</option>
                <option>收藏</option>
                <option>点赞</option>
                <option>嫌弃</option>
            </select>
        </form><br>
      相关查询:
      <ul>
         <li>教学资料查询</li>
          <li>考试查询</li>
      </ul>
       <ol>
         <li>课室查询</li>
           <li>专业课表查询</li>
      </ol>

    </div>
    <div id="footer" style="background-color:#C0C0C0;clear:both;text-align:center;">版权所属@ 海力</div>

</div>

<hr>
 <P>友情链接</P>
  <a href="http://www.gzcc.cn/">广州商学院<br>
      <img src="http://www.gzcc.cn/2016/images/banner.png" width="600" height="300" alt="gzcc.cn"  ></a>


</body>
</html>

效果图:

技术分享

web基础,用html元素制作web页面

原文:http://www.cnblogs.com/0058kyle/p/7662902.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!