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

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

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>音乐在线</title>
</head>
<body>


<div  id="container" style="width:400px " >
    <div id="header" style="background-color:cornflowerblue;"><h2 align="center" style="margin-bottom:0;">倾听你的音乐</h2></div>

    <div id="content" style="background-color:lightsteelblue;height:150px;width:400px;float:left;">
        <form action="">
            Number:<input type="text" name="user" placeholder="请输入会员号"><br>
            Password:<input type="password" name="password" placeholder="请输入专属秘密">
            <br>
            <input type="radio" name="role" value="stu">普通会员
            <input type="radio" name="role" value="teacher">高级会员
            <br>
            <input type="button" value="login">
            <input type="button" value="cancel">
        </form>
    </div>
    <div id="footer" style="background-color:cornflowerblue;clear:both;text-align:center;">独家版权 © wjl</div>

</div>


<div  id="container" style="width:400px " >
    <div id="header" style="background-color:cornflowerblue;"><h2 align="center" style="margin-bottom:0;">搜索</h2></div>

 <div id="content" style="background-color:lightsteelblue;height:200px;width:400px;float:left;">
 <select>
                <option value="" style="color: lightsteelblue;">---请选择---</option>
                <option>会员</option>
                <option>游客</option>
            </select>

 <ul>
             <li>古典音乐</li>
             <li>摇滚音乐</li>
             <li>嘻哈音乐</li>
         </ul>
             <ol>
                 <li>扫一扫</li>
                 <li>听歌识曲</li>
             </ol>
         </div>

 <div id="footer" style="background-color:cornflowerblue;clear:both;text-align:center;">独家版权 © wjl</div>


<hr>
 <P>友情链接</P>
  <a href="http://www.gzcc.cn/">娱乐one by one<br>
      <img src="1.jpg" width="300" height="100" alt="music.cn"  ></a>

</body>
</html>

运行结果如图:

 

 

posted on 2017-10-13 21:48  094吴嘉绿  阅读(210)  评论(0编辑  收藏  举报