2018/10/8 渡课学习第六天

作业完成汇报

  1. 编程题
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="T1.css">
</head>
<body bgcolor="#FDFCF8">
<div id="wrapper">
  <div id="header">
    <h1><a href="./index.html" title="w3school 在线教程" style="float:left;">w3school 在线教程</a></h1>
  <div id="search">
    <form method="get" id="searchform">
        <input type="hidden" name="sitesearch" value="w3school.com.cn"/>
        <input type="text" name="as_q" class="box" id="searched_content" title="在此输入搜索内容。"/>
        <input type="submit" value="Go" class="button" title="搜索!"/>
    </form>
  </div>
</div>

<div id="navbar">
  <ul id="menu">
     <li id="h"><a href="#" title="HTML 系列教程">HTML 系列教程</a></li>
     <li id="b"><a href="#" title="浏览器脚本教程">浏览器脚本</a></li>
     <li id="s"><a href="#" title="服务器脚本教程">服务器脚本</a></li>
     <li id="d"><a href="#" title="ASP.NET 教程">ASP.NET 教程</a></li>
     <li id="x"><a href="#" title="XML 系列教程">XML 系列教程</a></li>
     <li id="ws"><a href="#" title="Web Services 系列教程">Web Services 系列教程</a></li>
     <li id="w"><a href="#" title="建站手册">建站手册</a></li>
  </ul>
</div>
</body>
</html>
/* common 开始 */
* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}
/* common 结束 */


/* 页面 开始 */
div#wrapper {
    width: 1240px;
    margin: 0 auto;
}
/* 页面 结束 */


/* 头部 开始 */
div#header {
    width: 1210px;
    height: 100px;

    background: #fdfcf8;
}

div#header a {
    width: 500px;
    height: 100px;
    text-indent: -9999px;
    float: left;

    background: transparent url("tt.png") 0 -150px no-repeat;
}

div#header a:hover {
    background: transparent url("tt.png") 0 -250px no-repeat;
}

div#header div#search {
    height: 100px;
    margin-right: 20px;
    float: right;
}

div#header div#search #searched_content {
    margin-top: 35px;

    width: 300px;
    height: 30px;
}

div#header div#search input.button {
    width: 30px;
    height: 30px;

    background: #ae4141;
    border: 0;
}
/* 头部 结束 */


/* 导航栏 开始 */
div#navbar {
    width: 1210px;
    height: 48px;

    background: transparent url("tt.png") 0 0 no-repeat ;

}

div#navbar ul#menu {
    width: 1210px;
    height: 48px;
    position: relative;
}

div#navbar ul#menu li {
    float: left;
    position: absolute;
}

div#navbar ul#menu li a {
    text-indent: -9999px;
    height: 48px;
    display: block;
}

#h {
    left: 0;
    width: 155px;
}

#b {
    left: 155px;
    width: 157px;
}

#s {
    left: 312px;
    width: 167px;
}

#d {
    left: 479px;
    width: 158px;
}

#x {
    left: 637px;
    width: 101px;
}

#ws {
    left: 738px;
    width: 185px;
}

#w {
    left: 923px;
    width: 177px;
}

#h a:hover {
    background: transparent url("tt.png") 0 -48px no-repeat;
}

#b a:hover {
    background: transparent url("tt.png") -155px -48px no-repeat;
}

#s a:hover {
    background: transparent url("tt.png") -312px -48px no-repeat;
}

#d a:hover {
    background: transparent url("tt.png") -479px -48px no-repeat;
}

#x a:hover {
    background: transparent url("tt.png") -637px -48px no-repeat;
}

#ws a:hover {
    background: transparent url("tt.png") -738px -48px no-repeat;
}

#w a:hover {
    background: transparent url("tt.png") -923px -48px no-repeat;
}


/* 导航栏 结束 */

在这里插入图片描述

今日学习总结

1.初步学习了页面divcss的结合。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值