首页 > 其他分享 >第一个网页练习

第一个网页练习

时间:2022-09-25 12:12:23浏览次数:48  
标签:ipsum 网页 第一个 sit 练习 consectetur elit dolor amet

步骤

一、观察设计稿

 

设计稿大致分为两部分:body背景、article包含header

二、创建工程,index.html+index.css+reset(样式重置)

1.创建工程

2.链接css

    <link rel="stylesheet" href="css/reset.css">     <link rel="stylesheet" href="css/index.css">

 三、自下而上,先html后css

<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>     <link rel="stylesheet" href="css/reset.css">     <link rel="stylesheet" href="css/index.css"> </head> <body>     <article class="container">         <header>             <h1>ZMN的第一个博客</h1>             <div class="address-link">             网站地址:<a href="https://www.cnblogs.com/zmngo/" >http://www.cnblogs.com/zmngo</a>             </div>         </header>         <section>             Lorem ipsum, dolor sit amet consectetur adipisicing elit. Mollitia tempora exercitationem dolores libero laboriosam, similique dolorem itaque alias! Rerum suscipit consequuntur quae nostrum tempora numquam earum, reprehenderit ipsum vero ipsam.         </section>         <section>             <h2>章节1</h2>             <p><span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum, autem! Voluptatem sapiente sequi architecto praesentium repellat quam dolorum tempore ad est totam temporibus fugiat aliquid id provident consectetur, dolores illo?</span><span>Praesentium, sint quisquam, ad id atque ullam rerum aperiam nobis dolorum exercitationem labore repellat libero quam quae? Numquam delectus tempore aliquam nisi deleniti eligendi dolores laboriosam. Optio, quidem! Rem, minima?</span></p>             <p><span>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia exercitationem magni aspernatur ipsa ipsam voluptas dolores quibusdam asperiores amet ad quod expedita, vitae blanditiis sed reprehenderit nesciunt dicta veritatis aliquid.</span><span>Culpa, accusamus omnis dolorem cupiditate voluptates reiciendis non laudantium accusantium labore. Sed cupiditate placeat sit minima rem dolor distinctio labore dolorum. Maxime harum, aperiam officiis nisi molestias nesciunt illum voluptatibus.</span></p>             <p><span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto quia aspernatur laboriosam officiis sapiente animi aliquam porro id fuga eligendi nemo omnis beatae quisquam ipsa praesentium voluptatum, doloribus laudantium? Saepe.</span><span>Tenetur dolor quibusdam et nisi maxime repellat reiciendis eaque expedita reprehenderit assumenda ipsum doloribus exercitationem, quae illo quod voluptas maiores rem explicabo ad, corporis dolorem quos. Pariatur quidem asperiores nobis?</span></p>         </section>         <section>             <h2>章节2</h2>             <p><span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius ex molestias exercitationem fuga harum sequi animi tempore magni perferendis, reiciendis neque est ducimus necessitatibus officia qui adipisci, molestiae, accusamus impedit?</span><span>Accusantium, quisquam eum nostrum necessitatibus animi nam soluta odit aliquam delectus dicta voluptatibus ad doloremque iusto sapiente, quam, sint ut optio inventore. Sequi, iusto? Iure aliquam voluptas sapiente officiis minima.</span></p>             <p><span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo alias atque non cum adipisci rem fugit magnam nemo exercitationem, fugiat ratione fuga ipsam consequatur doloremque mollitia. Saepe, dignissimos at? Iste.</span><span>Quae a similique qui, deserunt, inventore maiores reprehenderit asperiores consectetur minima expedita minus quasi voluptates temporibus omnis ipsam. Quae expedita asperiores libero dolor iure mollitia cumque eligendi veniam temporibus fugit.</span></p>             <p><span>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Deserunt, tempora cumque nihil delectus iusto soluta nostrum omnis cupiditate, molestiae, laudantium eveniet necessitatibus nam eligendi vero facilis perferendis praesentium perspiciatis sed?</span><span>Eius eveniet voluptatum cumque voluptatem doloremque doloribus veniam tenetur cupiditate nobis a libero recusandae, in, quasi laboriosam. Magnam a quis voluptates nemo expedita, est aut tempora sed, cupiditate veritatis illum.</span></p>         </section>         <section>             <h2>章节3</h2>             <p><span>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus culpa, sed deleniti laborum expedita aut id similique earum nam magnam dignissimos vitae tempore doloribus dolor exercitationem. Repellat provident sed numquam.</span><span>Incidunt reprehenderit assumenda ipsam commodi autem odio quas atque consectetur rem aperiam recusandae dolorem harum neque fuga perferendis reiciendis facilis error non eius quasi pariatur, quibusdam quo iusto. Et, quibusdam.</span></p>             <p><span>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque, voluptates iusto soluta nam quia omnis quos odio, qui nisi sed a ipsam eveniet dolores iure ullam facilis eum tenetur eius?</span><span>Porro debitis omnis suscipit aliquam, atque eveniet illum libero facere laudantium harum similique assumenda, adipisci sapiente, iste molestias non? Dicta quaerat reiciendis repudiandae, labore itaque iusto dolorum eaque provident commodi.</span></p>             <p><span>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae officiis aliquid vel accusamus asperiores modi sit, explicabo labore sunt, neque ducimus saepe reprehenderit iusto quod ipsum? Dolorum quas nihil explicabo?</span><span>Ullam eaque et cumque aliquid velit doloribus obcaecati quisquam maiores asperiores, illo rem ab vitae, eligendi, culpa molestiae aperiam dolores? Modi ex aliquid officiis labore neque quod et accusamus vel?</span></p>         </section>     </article> </body> </html>     body{     background-color: #4d4a40;     line-height: 2;     padding: 20px 0;     min-width: 1000px;//网页最小尺寸 } .container{     background-color: #fff;     width: 90%;     padding: 30px 0;     margin: 0 auto; } .container header{     background-color: #267890;     border: 5px solid;     color: #fff;     text-align: center;     font-weight: bold;     border-color: #14414e;     margin: 0 -34px; } .container header h1{     font-size: 42px; } .container header .address-link{     color: #dbdbdb;     padding-bottom: 20px; } .container header .address-link a{     text-decoration: underline; } .container header .address-link a:hover{     color: #fff; } .container section{     width: 90%;     margin: auto; } .container section h2{     font-size: 32px;     border-top: 1px dotted;     border-bottom: 1px dotted; }

标签:ipsum,网页,第一个,sit,练习,consectetur,elit,dolor,amet
From: https://www.cnblogs.com/zmngo/p/16727311.html

相关文章

  • 每个网页设计师都应该知道的 CSS 技巧
    每个网页设计师都应该知道的CSS技巧1.字体速记像往常一样,我们将字体样式编写如下字体粗细:粗体;字体样式:斜体;字体变体:小型大写;字体大小:1em;行高:1.5em;......
  • 第一个C程序
    写C代码创建工作区创建工程创建文件(.c源文件、.h头文件)main函数是程序执行的入口,有且只有一个函数printf(printfunction打印函数)[库函数-C语言本身提供给我们使......
  • 刻意练习可以用来改变性格
    刻意练习很适合用来改变性格1.性格可以看成是无数个习惯组成的系统,2.习惯可以通过刻意练习来改变3.所以刻意练习可以改变性格,也许是是唯一的方法,......
  • 练习-集合元素处理传统方式和Stream方式
    练习-集合元素处理(传统方式)练习:集合元素处理(传统方式)现在有两个ArrayList集合存储队伍当中的多个成员姓名,要求使用传统的for循环(或增强for循环)依次进行以下......
  • 运行的第一个Django
    2022-09-24创建了一个Django项目后,进行测试,输入指令:pythonmanage.pyrunserver出现了如下问题:   我还想着,Django模块通过安装“pipinstalldjango”导入了好......
  • 流程控制练习
    流程控制练习打印三角形五行for(inti=1;i<=5;i++){  for(intj=5;j>=i;j--){    System.out.print("*"); }  for(intj=1;j......
  • DC-9靶场练习
    Vulnhub靶场-DC-9准备工作kali和靶机都选择NAT模式(kali与靶机同网段)下载链接:https://download.vulnhub.com/dc/DC-9.zip一、主机发现nmap扫描内网主机查看ip4命令:ip......
  • android webview展示网页空白
    1、res->xml目录下增加network_security_config.xml<?xmlversion="1.0"encoding="utf-8"?><network-security-config><base-configcleartextTrafficPermitted="tru......
  • SQL堂上练习二
    显示某个表所有的内容select*fromdepartments;输出如下DEPARTMENT_IDDEPARTMENT_NAMEMANAGER_IDLOCATION_ID-......
  • go-冒泡排序-练习
    packagemainimport"fmt"funcmain(){ nums:=[]int{1,5,4,3,2,9,8,7,6,0}/* //第一轮 fori:=0;i<len(nums)-1;i++{ ifnums[i]>nums[i+1]{ nums[i],nums......