自学前端第十二天 :页面小练习

博客内容介绍了自学前端的第十二天,作者进行了小页面的综合练习,分别按照老师的指导和自己的理解创建了两个版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

小页面综合练习:(老师版)

<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>homework 0612</title>
  <style>
    * {
    
      margin: 0;
      padding: 0;
    }


    a {
    
      text-decoration: none;
    }

    a:hover {
    
      text-decoration: underline;
    }

    .fz12 {
    
      font-size: 12px;
    }

    .fz14 {
    
      font-size: 14px;
    }

    .c666 {
    
      color: #666;
    }

    .lh24 {
    
      line-height: 24px;
    }

    .lh36 {
    
      line-height: 36px;
    }

    .tl {
    
      text-align: left;
    }

    .tr {
    
      text-align: right;
    }

    .indent2x {
    
      text-indent: 2em;
    }

    .mr20 {
    
      margin-right: 20px;
    }

    .mr12 {
    
      margin-right: 12px;
    }

    .cb60 {
    
      color: #b60c0c;
    }

    .c045 {
    
      color: #0454a7;
    }

    /* 
    .hit {
      font-size: 12px;
      color: #666;
      line-height: 36px;
    } */

    .container {
    
      width: 640px;
      margin: 100px auto;
      padding: 10px 20px 30px;
      border: 1px solid #bbb;
      border-top: 3px solid #0454a7;
      font-size: 14px;
      line-height: 24px;
      text-align: center;
    }

    .header {
    
      border-bottom: 1px solid #ccc;
    }

    .header>h2 {
    
      font-size: 22px;
      line-height: 35px;
      color: #333;
      font-weight: 400;
    }


    .inset-pic {
    
      width: 558px;
    }

    .content {
    
      text-align: left;
      padding: 0 20px;

    }

    .content>p {
    
      margin-bottom: 22px;
    }

    .inter-news {
    
      width: 560px;
      padding: 10px;
      margin: 0 auto 20px;
      border: 1px dashed #666;
    }

    .keywords>a {
    
      color: #0454a7;
    }

    .bottom {
    
      display: inline-block;
      width: 518px;
      height: 28px;
      border: 1px solid #0454a7
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值