新疆行知书

HTML制作静态网页—新疆行知书
基本布局思路:
1.div块级标签布局
2.整个大容器container内, 从上到下分为六个小容器top, nav, left, middle, right, bottom
3.小容器里的内容采用无序列表填充
网页效果图
代码如下

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新疆行知书</title>
    <style type="text/css">
        * {
    
            margin: 0;
            padding: 0;
        }
        #container {
    
            width: 780px;
            height: 880px;
            background-color: #123456;
            margin: 0 auto;
        }
        #top {
    
            width: 780px;
            height: 150px;
        }
        #nav {
    
            width: 780px;
            height: 33px;
        }
        #nav li {
    
            width: 78px;
            line-height: 33px;
            list-style: none;
            float: left;
        }
        #nav a {
    
            display: block;
            text-align: center;
            background-image: url("images/button1.jpg");
        }
        #nav a:hover {
    
            background-image: url("images/button1_bg.jpg");
        }
        #left {
    
            width: 200px;
            height: 655px;
            background-color: #5ea6eb;
            margin: 3px 1.5px 1.5px 3px;
            float: left;
        }
        #weather {
    
            width: 100%;
        }
        #weather h3 {
    
            width: 100%;
            height: 47px;
            text-align: center;
            background-image: url("images/weather.jpg");
            background-attachment: initial;
            font-size: 16px;
            color: white;
            border-bottom: 1px solid white;
        }
        #weather span {
    
            position: relative;
            top: 25px;
            left: 5px;
        }
        #weather li {
    
            font-size: 12px;
            line-height: 24px;
            text-align: center;
            color: white;
        }
        #weather ul {
    
            width: 190px;
            list-style: inside;
            list-style-image: url(images/icon1.gif);
            border-left: 5px solid white;
            border-right: 5px solid white;
        }
        #today {
    
            width: 190px;
            height: 487px;
            border-left: 5px solid white;
            border-right: 5px solid white;
            border-bottom: 5px solid white;
        }
        #today h3 {
    
            font-size: 16px;
            color: white;
            line-height: 30px;
            margin: 0 auto;
            background-color: #bbddff;
            background-image: url("images/icon2.gif");
            background-repeat: no-repeat;
            background-position: 5px 12px;
        }
        #today span {
    
            position: relative;
            left: 20px;
        }
        #today ul {
    
            list-style: none;
        }
        #today a {
    
            display: block;
            text-align: center;
            text-decoration: none;
        }
        #today img {
    
            margin-top: 10px;
        }
        .l1 a {
    
            font-size: 14px;
            line-height: 20px;
            color: white;
        }
        #middle {
    
            float: left;
            width: 358px;
            height: 650px;
            background-color: white;
            border: 5px solid white;
            margin: 3px 1.5px 1.5px 1.5px;
        }
        #middle>div:nth-child(1) {
    
            width: 100%;
            height: 260px;
            background-image: url("images/ghost.jpg")
  • 5
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值