html004:用框架的方法写html页面

  • 先做一个主体框架,其中把yemian作为主页面
    在这里插入图片描述
  • 按步骤做顶层的类容
    在这里插入图片描述
  • 做旁边的菜单栏
<style>
        a{
            text-decoration: none;
        }
        a:hover{
            color: red;
        }
        body{
            background-image: url("xia.jpg");
        }
        dl{
            font-size: 20px;
            font-family: 楷体;
            text-align: center;
        }
    </style>
</head>
<body>
    <dl>
        <dt>NBA:</dt>
        <dd><a href="https://china.nba.com/warriors/" target="main">勇士官网</a></dd>
        <dd><a href="https://china.nba.com/raptors/" target="main">猛龙官网</a></dd>
        <dd><a href="https://china.nba.com/rockets/" target="main">火箭官网</a></dd>
    </dl>
    <dl>
        <dt>腾讯:</dt>
        <dd><a href="https://v.qq.com/" target="main">腾讯视频</a></dd>
        <dd><a href="https://kbs.sports.qq.com/#hot" target="main">腾讯体育</a></dd>
        <dd><a href="https://www.qq.com/" target="main">腾讯官网</a></dd>
    </dl>
    <dl>
        <dt>购物:</dt>
        <dd><a href="https://www.taobao.com/" target="main">淘宝官网</a></dd>
        <dd><a href="https://www.jd.com/" target="main">京东官网</a></dd>
        <dd><a href="https://www.tmall.com/" target="main">天猫官网</a></dd>
    </dl>
</body>
  • 做主页面
    在这里插入图片描述
    打开页面。html看效果:
    在这里插入图片描述
  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值