第五天(渐变)

news2024/10/6 22:33:01

文章目录

    • 笔记
    • 第五章 ⻚⾯布局
        • 5.1弹性盒⼦
    • 练习题目(使用实现学校官网的首页面)
    • 效果截图
    • 项目反思:

笔记

  • 其他效果

     渐变
    
<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
 <title></title>
 <style type="text/css">
 div {
 width: 200px;
 height: 200px;
 /* border: 1px solid red; */
 /* 默认渐变效果是从上到下 */
 background-image: linear-gradient(red,blue);
 
 }
 
 /* 渐变可以控制渐变⽅向 */
 div{
 background-image: linear-gradient(to right,red,blue);
 }
 
 /* 渐变可以进⾏对⻆渐变 */
 div{
 background-image: linear-gradient(to bottom right,red,blue);
 }
 
 /* 你可以通过⻆度来设置渐变*/
 div{
 background-image: linear-gradient(40deg,red,blue);
 }
 /* 可以多各种颜⾊进⾏渐变 */
 div{
 background-image: linear-gradient(40deg,red,blue,yellow,green,pink);
 }
 /* 渐变⽀持透明 */
 div{
 background-image: linear-gradient(40deg,red,rgba(255,0,0,0));
 }
 
 /* 重复性渐变 */
 div{
 background-image: repeating-linear-gradient(50deg,red,blue 20%,green
30%);
 }
 
 /* 径向渐变 */
 div{
 background-image: radial-gradient(red,blue,yellow,pink);
 }
 
 /* 重复径向渐变 */
 div{
 background-image: repeating-radial-gradient(red,yellow 10%,pink 20%);
 }
 </style>
 </head>
 <body>
 <div></div>
 </body>
</html>
  • 多列

多列相关属性及使⽤⻅以下代码。

<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
 <title></title>
 <style>
 body{
 /* 控制有多少列,控制列数的最⼤值 */
 column-count: 3;
 /* 控制⼀列有多宽,控制列数的最⼩值 */
 column-width: 20px;
 /* 可以像给标签加边框⼀样给每⼀列加边框 */
 column-rule: 1px solid red;
 /* 可以拆分以下三个属性 */
 column-rule-width: 10px;
 column-rule-style: dashed;
 column-rule-color: rebeccapurple;
 }
 h1{
 column-span: all;
 text-align: center;
 }
 </style>
 </head>
 <body>
 <h1>匆匆</h1>
 <p style="text-indent: 32px;">我⼀直都在期待着那些英雄能够超出原本的模样,变成他们⾃
⼰想象的样⼦,可是我们所想象的其实并没有什么多好的景象,只是在这样漫天⻜舞的雪花当中能够看清
楚。这些幸福其实就是如此简单,根本就不是你所想象的那样。</p>
 </body>
</html>
  • 字体图标

五种图标

1.正常图⽚如png,jpg。他们的有点事图像精美复杂 缺点 放⼤后失真。
2.svg图像他的有点是放⼤后不会失真,但是制作复杂图像困难。
3.css图像同楼上 。
4.精灵图属于⽬前较好的图标解决⽅案。缺点维护性差。
5.字体图标,他是将已有的svg,css,png等图标制作成⼀个字体⽂件供开发者使⽤。

  • CSS的变量

  • 变量的声明

⾸先创建⼀个变量,必须两个中划线开始(–)。CSS变量跟⼀般属性如color没有本质差别,只是color
被系统赋予内在含义。所以css的变量海被称为⾃定义属性。

  • 怎么使⽤变量

通过var函数使⽤变量

  • 变量的类型

变量是由类型的可以是字符串也可是数字或者像素等等带单位量,创建变量的时候应要注意他的类型,
否则可能引起引⽤上的错误。

  • CSS的常⻅函数
函数     描述            CSS 版本
attr() 返回选择元素的属性值。 2
calc() 允许计算 CSS 的属性值,⽐如动态计算⻓度值。 3
cubic-bezier() 定义了⼀个⻉塞尔曲线(Cubic Bezier)。 3
hsl() 使⽤⾊相、饱和度、亮度来定义颜⾊。 3
hsla() 使⽤⾊相、饱和度、亮度、透明度来定义颜⾊。 3
linear-gradient() 创建⼀个线性渐变的图像 3
radial-gradient() ⽤径向渐变创建图像。 3
repeating-lineargradient() ⽤重复的线性渐变创建图像。 3
repeating-radialgradient() 类似 radial-gradient(),⽤重复的径向渐变创建图像。 3
rgb() 使⽤红(R)、绿(G)、蓝(B)三个颜⾊的叠加来⽣成各式各
样的颜⾊。 2
rgba() 使⽤红(R)、绿(G)、蓝(B)、透明度(A)的叠加来⽣成各式
各 样的颜⾊。 3
var() ⽤于插⼊⾃定义的属性值。 3
  • 常⻅的CSS单位和倒影
<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
第五章 ⻚⾯布局
表格布局:表格当前的互联⽹环境下,已经被淘汰,因为他的可维护性交叉,通常要修改其中某⼀个区域的时
候,会影响到全局,到最后不得不重新设计⻚⾯。
盒⼦模型:也就是我们常⽤div+CSS的布局形式,它是当前互联⽹环境中最常⽤的布局⽅式。
5.1弹性盒⼦
⾸先要使⽤弹性盒⼦ 第⼀个应该将display设置为flex。
flex-direction属性:它是⽤来控制⼦元素的排列⽅式,可以横向或者纵向排列。
 row|row-reverse|column|column-revers
justify-content属性:控制⼦元素在主轴上如何布局的。
flext-start:在横向左对⻬ 在纵向上对⻬。
flex-end:在横向上右对⻬ 纵向下对⻬。
center:居中
space-between:在横向或者纵向上均匀的排列⼦标签。
 <title></title>
 <sTyLe>
 html{
 
 }
 :root{
 
 }
 div{
 --size:200;
 width: calc(var(--size)*1px);
 height:calc(var(--size)*1px);
 border: 1px solid red;
 background-color: hsl(235, 60%, 50%);
 -webkit-box-reflect: below 2px linear-gradient(transparent,transparent
50%,rgba(255,0,0,1));
 /* -webkit-box-reflect:below 2px lineargradient(transparent,transparent 50%,rgba(0,0,0,1)); */
 }
 span{
 
 }
 </style>
 </head>
 <body>
 <div>
 
 </div>
 </body>
</html>

第五章 ⻚⾯布局

表格布局:表格当前的互联⽹环境下,已经被淘汰,因为他的可维护性交叉,通常要修改其中某⼀个区域的时
候,会影响到全局,到最后不得不重新设计⻚⾯。
盒⼦模型:也就是我们常⽤div+CSS的布局形式,它是当前互联⽹环境中最常⽤的布局⽅式。

5.1弹性盒⼦

⾸先要使⽤弹性盒⼦ 第⼀个应该将display设置为flex。
flex-direction属性:它是⽤来控制⼦元素的排列⽅式,可以横向或者纵向排列。
row|row-reverse|column|column-revers

justify-content属性:控制⼦元素在主轴上如何布局的。
flext-start:在横向左对⻬ 在纵向上对⻬。
flex-end:在横向上右对⻬ 纵向下对⻬。
center:居中
space-between:在横向或者纵向上均匀的排列⼦标签。

  • align-item:⽤来设置弹性盒⼦在侧轴上的对⻬⽅式。
    flext-start:当前布局为横向时 控制⼦项向上对⻬。当前布局为纵向时 控制⼦项向左对⻬。
    flex-end:当前布局为横向时 控制⼦项向下对⻬。当前布局为纵向时 控制⼦项向右对⻬。
    center:居中。
    baseline:内容部分对⻬。
    strech:如果没有⾼度限制 该属性会将⼦标签填满⽗容器。
  • flex-wrap
    :⽤来设置弹性盒⼦的换⾏模式,wrap多⾏,nowrap单⾏,wrap-reverse多⾏逆序。
  • align-content
    :他是在多⾏模式下才能体现效果的属性,他会顶掉align-item的效果
<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
 <title></title>
 <style>
 .container{
 display: flex;
 width: 400px;
 height: 400px;
 background-color: rebeccapurple;
 flex-direction: row;
 justify-content: flex-start;
 align-items: center;
 flex-wrap:wrap;
 align-content: flex-start;
 }
 .container > div{
 width: 100px;
 height:100px;
 background-color: red;
 border: 1px solid black;
 }
 </style>
 </head>
 <body>
 <div class="container">
 <div>1</div>
 <div>2</div>
 <div>3</div>
 <div>4</div>
 <div>5</div>
 <div>6</div>
 </div>
 </body>
</html>

练习题目(使用实现学校官网的首页面)

为了隐私我就没有放学校官网,这里我仿了淘宝into you的页面

HTML代码图:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>指尖唇釉镜面显色秋冬口红持久滋润显白平价</title>
	<link rel="stylesheet" type="text/css" href="into.css">
</head>
<body>
   <div id="head">
   	 <center><p style="font-family: 黑体;font-size: 100px;color: #966d95;list-style: none;">INTO YOU</p></a></center>
   	 <div id="div1">
   	<ul>
   		<a href="https://item.jd.com/10037741964287.html"><li>所有产品</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>首页</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>唇部产品</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>眼部产品</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>脸部产品</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>品牌故事</li></a>
   		<a href="https://item.jd.com/10037741964287.html"><li>会员中心</li></a>
   	</ul>
     </div>
       <img style="margin-top: 30px;border: solid #f5f5f5 2px;width:29%;" src="img/2.jpg">
     <div id="div2">
     	</br></br>
      <p>
      	<span style="color:white;background-color: #258f04;font-size: 50px;">新品</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 50px;color:#767876; ">INTO YOU指尖唇釉镜面显色秋冬口红持久滋润显白平价 哑光-E04</span>
      </p>
         <div id="div3">
         	<p style="color:  #858180;font-size: 50px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s><span style="color: #767876;font-size: 60px;width: 20px;">¥98.00--¥180.00</s></span></br></p>
         	<p style="color:  #858180;font-size: 50px;">促销价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #f66351;font-size: 60px;width: 20px;">¥50.00--¥169.00</span></p></br></br></br></br></p>
         	<p style="color: #686666;font-size: 50px;">&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #767876;font-size: 50px;width: 20px;">浙江嘉兴&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;四川&nbsp;&nbsp;&nbsp;&nbsp;快递:0.00</span></p>
         	<p style="border-top: #c6bebe solid 2px;margin-top: 40px;"></p>
         	<p align="center" style="color:  #858180;font-size: 50px;float: left; border-right: solid 2px  #c6bebe  ;width: 33%;margin-top: 20px;">月销量&nbsp;&nbsp;<span style="color: #f66351;font-size: 60px;width: 20px;">30万+</span></p>
         	<p align="center" style="color:  #858180;font-size: 50px;float: left; border-right: solid 2px  #c6bebe  ;width: 33%;margin-top: 20px;">累计评价&nbsp;&nbsp;<span style="color: #f66351;font-size: 60px;width: 20px;">150万+</span></p>
         	<p align="center" style="color:  #858180;font-size: 50px;float: left; border-right: solid 2px  white ;width: 33%;margin-top: 20px;">送天猫积分 &nbsp;&nbsp;<span style="color: #56b609;font-size: 60px;width: 20px;">29</span></p>
           <p style="border-top: #c6bebe solid 2px;margin-top: 150px;"></p>
            <p style="color:  #858180;font-size: 50px;margin-top: 30px;">&nbsp;&nbsp;</p>
           	  <div id="div5">
              <ul>
              	<a href="https://item.jd.com/10037741964287.html"><li>摩尔唇泥</li></a>
              	<a href="https://item.jd.com/10037741964287.html"><li>水雾唇釉</li></a>
              	<a href="https://item.jd.com/10037741964287.html"><li>女主角唇泥</li></a>
              	<a href="https://item.jd.com/10037741964287.html"><li>指尖唇釉</li></a>
              </ul>
              </div>
           <p style="color:  #858180;font-size: 50px;margin-top: 150px;">颜色分类
           	  <div id="div6">
           <a href="https://item.jd.com/10037741964287.html"><li><img style="width:300%;margin-top: 50px;" src="img/3.jpg"></li></a>
           <a href="https://item.jd.com/10037741964287.html"><li><img style="width:300%;margin-top: 50px;" src="img/4.jpg"></li></a>
           <a href="https://item.jd.com/10037741964287.html"><li><img style="width:300%;margin-top: 50px;" src="img/5.jpg"></li></a>
           <a href="https://item.jd.com/10037741964287.html"><li><img style="width:300%;margin-top: 50px;" src="img/6.jpg"></li></a>
           </p> 
              </div> 
           <p style="color:  #858180;font-size: 50px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>1&nbsp;&nbsp;</span></p>
              <div id="div7">
              	<ul>
              		<a href="https://item.jd.com/10037741964287.html"><li>立即购买</li></a>
              		<a href="https://item.jd.com/10037741964287.html"><li>加入购物车</li></a>
                </ul>
             </div>
     </div>
   </div>
     <div  id="div8">
     	   <center><p style="font-family: 黑体;font-size: 100px;color: #966d95;list-style: none;">INTO YOU</p></a></center>
     </div>
     <div id="div9">
     <p align="center" style="color:  #858180;font-size: 50px;">&nbsp;&nbsp;<span style="color: #959494;">intoyou旗舰店</span></p></br></br>
     <p align="center" style="color:  #858180;font-size: 50px;text-decoration: none;list-style: none;"><a style="list-style: none;text-decoration: none;" href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></p></br></br>
     <p align="center" style="color:  #858180;font-size: 50px;">4.8&nbsp;&nbsp;<span style="color: green;"></span>&nbsp;&nbsp;4.7&nbsp;&nbsp;<span style="color: red;"></span>&nbsp;&nbsp;4.9&nbsp;&nbsp;<span style="color: green;"></span></p></br>
       <div id="div10">
              	<ul>
              		<center><a href="https://item.jd.com/10037741964287.html"><li>进店逛逛</li></a></center>
              		<a href="https://item.jd.com/10037741964287.html"><li >收藏店铺</li></a>
                </ul>
      </div>
                <div style="border: solid 2px #b4b0b0;" id="div11">
           	  	   	<p style="color:  #858180;font-size: 50px;">产品分类</p></br>
           	  	   	<a style="list-style: none;text-decoration: none;" href="https://item.jd.com/10037741964287.html"><p align="center" style="color:  #858180;font-size: 50px; margin-top: 20px;"> 脸部产品:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #fc7536">唇泥</span></p></br></a> 
           	  	   	<a style="list-style: none;text-decoration: none;" href="https://item.jd.com/10037741964287.html"><p align="center"  style="color:  #858180;font-size: 50px; margin-top: 20px;">眼部产品:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #fc7536">眼影</span></p></br></a>
           	  	   	<a style="list-style: none;text-decoration: none;" href="https://item.jd.com/10037741964287.html"><p align="center"  style="color:  #858180;font-size: 50px; margin-top: 20px;">唇部产品:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #fc7536">口红</span></p></br></a>
           	  	   <a style="list-style: none;text-decoration: none;" href="https://item.jd.com/10037741964287.html"><p align="center"  style="color:  #858180;font-size: 50px; margin-top: 20px;"> 卸妆产品:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #fc7536">卸妆水</span></p></br></a>
                 </div>          
     </div>
     <div id="div12">
     	<div id="div12-1">
     	<p style="color:  #858180;font-size: 50px;">产品介绍</p></br>
        </div>
        <div id="div12-2">
            <p style="color:#c8c3c2;font-size: 60px;">产品参数</p></br>
        </div>
        <div id="div12-3">
            <p style="color:  #858180;font-size: 50px;"> 产品名称:INTO YOU INTOYOU心慕</p></br>
            <p style="color:  #858180;font-size: 50px;"> 产地: 中国</p></br>
            <p style="color:  #858180;font-size: 50px;"> 上市时间: 2020年</p></br>
            <p style="color:  #858180;font-size: 50px;"> 是否为特殊用途化妆品: 否</p></br>
        </div>
        <div id="div12-4">
            <p style="color:  #858180;font-size: 50px;"> 品牌: INTO YOU</p></br>
            <p style="color:  #858180;font-size: 50px;"> 颜色分类: W01 蜜桃荔枝饮 W02 树莓</p></br>
            <p style="color:  #858180;font-size: 50px;"> 
功效: 提升气色 不粘杯 持久</p></br>
            <p style="color:  #858180;font-size: 50px;"> 限期使用日期范围: 2023-04-11至2023-07-11</p></br>
        </div>
        </div>
            <div id="div13">
            <p style="font-size: 50px;">消费提醒: 国家药监局提示您:化妆品不能宣称医疗作用,也没有治疗作用,宣称治疗儿童湿疹等皮肤病的产品不属于化妆品。</p>
             </div>
             <div id="div14">
             	<div id="div14-1">
             	<p style="color:  #858180;font-size: 50px;">累计评价</p></br>
               </div>
               <div id="div14-2">
                 	<p style="color:#858180;font-size: 50px;">与描述相符</p>
           	       <p style="color:#858180;font-size: 50px;"><span style="color: #ff7a4d;font-size:50px;width: 30px;">4.6</span></p>
           	       <p style="color:#858180;font-size: 50px;" ><span style="color: yellow;">★★★★★</span></p>
               </div>
                <div id="div14-3">
                   <ul>
                     <p style="color:#858180;font-size: 100px;"><li><a href="#">非常不满意(5)</a></li></p>
     	  	         <p style="color:#858180;font-size: 100px;"><li><a href="#">不满意(2)</a></li></p>
     	  	         <p style="color:#858180;font-size: 100px;"><li><a href="#">一般(2)</a></li></p>
     	  	        <p style="color:#858180;font-size: 100px;"> <li><a href="#">满意(2)</a></li></p>
     	  	        <p style="color:#858180;font-size: 100px;"> <li><a href="#">非常满意(10)</a></li></p>
                   </ul>
           	     </div>
           	     <div id="div14-4">
             	       <div id="div14-4-1">
                       <p style="color:#858180;font-size: 50px;">颜色实测还是适合皮肤偏白的比较好看些~,也太好看了吧,在手臂试色倒是有点水光感,从上到下是01,大爱唇釉的质地,正品!整体评价好保湿效果还行,原相机拍摄,,w02一个是橡皮粉,不吃东西的时候不会掉色,真的变白了,很好的染唇液爱了..
                       </p>
                      <img style="width: 200px;" src="img/7.jpg">></br>
                       </div>
                       <div id="div14-4-2">
                       <p style="color:#858180;font-size: 50px;">颜色分类:W01 蜜桃荔枝饮</p>
                       </div>
                       <div id="div14-4-3">
                       <p style="color:#858180;font-size: 50px;">x***0(匿名)<span style="color: #ea9f08;">超级会员</span></p>
                       </div>
                       <div id="div14-4-4">
                       <p style="color:#858180;font-size: 50px;">颜色实测还是适合皮肤偏白的比较好看些~,也太好看了吧,在手臂试色倒是有点水光感,从上到下是01,大爱唇釉的质地,正品!整体评价好保湿效果还行,原相机拍摄,,w02一个是橡皮粉,不吃东西的时候不会掉色,真的变白了,很好的染唇液爱了..
                       </p>
                      <img style="width: 200px;" src="img/8.jpg">></br>
                       </div>
                       <div id="div14-4-5">
                       <p style="color:#858180;font-size: 50px;">颜色分类:W08 粉提荔枝饮</p>
                       </div>
                       <div id="div14-4-6">
                       <p style="color:#858180;font-size: 50px;">q***n(匿名)<span style="color: #ea9f08;">超级会员</span></p>
                       </div>
            </div>
             <div id="div15">
             	<div id="div12-1">
            	<p style="color:  #858180;font-size: 50px;">图片详情</p></br>
                </div>
            	<div id="div15-1">
            		<center><img style="width:900px;" src="img/9.jpg"></center></br>
            		<p align="center" style="color:  #858180;font-size: 50px; font-family: 黑体">礼盒</p>
            	</div>
            	<div id="div15-1">
            		<center><img style="width:850px;" src="img/11.jpg"></center></br>
            		<p align="center" style="color:  #858180;font-size: 50px; font-family: 黑体">色号展示</p>
            	</div>
            	<div id="div15-1">
            		<center><img style="width:680px;" src="img/12.jpg"></center></br>
            		<p align="center" style="color:  #858180;font-size: 50px; font-family: 黑体">效果展示</p>
            	</div>
            	 <div style="margin-top: -800px;" id="div13">
                 <center><p style="font-family: 黑体;font-size: 100px;color: #966d95;list-style: none;">INTO YOU</p></a></center>
                 </div>
                </div>
            </div>
            </div>
</body>
</html>

CSS图

*
{
	margin: 0 auto;
	padding:0 auto;
	list-style: none;
}
#head
{
	/*border: solid #f5f5f5 2px;*/
	width: 3000px;
	height: 6300px;
	text-decoration: none;
}
#div1
{
	float: left;
	font-size: 50px;
	width: 100%;
	height: 100px;
	background: #9da29d;;
	margin-top: 20px;
	border-bottom: #b7bcb7 solid 2px;
	text-decoration: none;
}
#div1 li
{
	float: left;
	margin-left:200px;
	line-height: 100px;

}


#div2
{
	border: solid #b7bcb7  2px;
	width: 65%;
	height:1500px;
	float: right;
	margin-top: 20px;

}
#div3
{
	background: url("img/index.png");
	width: 100%;
	height: 180px;
	margin-top: 30px;

}
#div5
{
	float: left;
	font-size: 50px;
	width: 100%;
	height: 75px;
	border-bottom: white solid 2px;
	text-decoration: none;
}
#div5 li
{
	float: left;
	margin-left:200px;
	line-height: 100px;
	margin-top: -80px;

}
#div6
{
	float: left;
	font-size: 50px;
	width: 100%;
	height: 200px;
	border-bottom: white solid 2px;
	text-decoration: none;
}
#div6 li
{
	float: left;
	margin-left:250px;
	line-height: 100px;
    margin-top: -150px;

}
#div7
{
	float: left;
	font-size: 50px;
	width: 100%;
	height: 200px;
	text-decoration: none;
}
#div7 li
{
	float: left;
	margin-left:500px;
	line-height: 100px;
    margin-top: 100px;
    border: black solid 2px;
    background: #fcbcba;
}
#div8
{
	text-decoration: none;
	width: 30%;
	height:500px;
	float:left;
	margin-top: 90px;

}
#div9
{
	border: solid #b4b0b0 2px;
	width:30%;
	height:450px;
	text-decoration: none;
	float:left;
	margin-top: 340px;
	margin-left: -900px;
}
#div10
{
	float: left;
	font-size: 50px;
	width: 100%;
	height: 200px;
	text-decoration: none;
	margin-left: -60px;
}
#div10 li
{
	float: left;
	margin-left:200px;
	line-height: 100px;
    margin-top: 10px;
    border: black solid 2px;
    background: #fcbcba;
}
#div11
{
    border: #f0eae8 solid 1px;
	width:100%;
	height: 80px;
	float: left;
	margin-top: 10px;
	background:#f0eae8;
}
#div12
{
	 border: #f0eae8 solid 1px;
	width:65%;
	height:800px;
	float: right;
	margin-top:100px;
/*	background:#f0eae8;*/
}
#div12-1
{
	background:#f0eae8;
}
#div12-2
{
  margin-top: 20px;
}
#div12-3
{
  margin-top: 20px;
  width: 33%;
  height: 500px;
  /*border:red solid 2px ;*/
  float: left;
}
#div12-4
{
 
  width: 33%;
  height: 500px;
  /*border:red solid 2px ;*/
  float: right;
}
#div13
{
 
  
    border: white solid 1px;
	width:100%;
	height: 150px;
	float: left;
	margin-top: 300px;
	background:#fef4f4;
	line-height: 150px;
	color: #f1a127;
	text-indent: 2em;
}
#div14
{
   
    border: #f0eae8 solid 1px;
	width:100%;
	height:1600px;
	float: left;
	margin-top: 10px;
	/*background:#f0eae8;*/
	margin-top: 50px;
}
#div14-1
{
	background:#f0eae8;
	 border: #f0eae8 solid 1px;
	width:100%;
	height:100px;
	

}
#div14-2
{
	margin-top: 20px;
	text-align: center;
	width: 20%;
	float: left;
	height: 150px;
}
#div14-3
{
	margin-top: 40px;
	text-align: center;
	width: 70%;
	float:left;
	height: 150px;
	line-height: 150px;
	background:#fef4f4;
}
#div14-3 ul{ width: 100%;
   list-style: none;
   }
#div14-3 li {
   	
   	float: left;
   text-align: center;
    margin-left: 100px;
    font-size: 50px;
   }
 #div14-3 li a 
{
	text-decoration:none;
	color: black;
	line-height: 38px;
}
#div14-4
{
	margin-top: 20px;
	width: 100%;
	height: 800px;
	/*border:red solid 1px;*/
}
#div14-4-1
{
	margin-top: 30px;
	width: 50%;
	height: 180px;
	float: left;
}
#div14-4-2
{
	margin-top: 30px;
	width: 20%;
	height: 180px;
	float: left;
	margin-left: 100px;
}
#div14-4-3
{
	margin-top: 30px;
	width: 24%;
	height: 180px;
	float: right;
}
#div14-4-4
{
	border-top:  #f0eae8 solid 1px;
	margin-top: 500px;
	width: 50%;
	height: 180px;
	float: left;
}
#div14-4-5
{
	margin-top:500px;
	width: 20%;
	height: 180px;
	float: left;
	margin-left: 100px;
	border-top:  #f0eae8 solid 1px;
}
#div14-4-6
{
	margin-top:500px;
	width: 24%;
	height: 180px;
	float: right;
	border-top:  #f0eae8 solid 1px;
}
#div15
{
	
	width: 100%;
	height: 2000px;
	margin-top: 800px;
}
#div15-1
{

	width: 33%;
	height: 2000px;
	margin-top:50px;
	float: left;
}

效果截图

在这里插入图片描述

项目反思:

通过仿照页面我发现我的代码有以下问题:

1、div命名不规范
2、代码格式不规范
3、按钮设置样式不好看(下次可以改进)

下次一定注意!!!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/23124.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

「JVS低代码开发平台」设备维保到期自动提醒配置介绍

配置需求 构建一个 对设备管理的界面&#xff0c;在新增设备时&#xff0c;能录入设备到期的时间&#xff0c;发起维保后&#xff0c;能修改下次设备到期的时间&#xff0c;维保的状态系统自动根据当前时间和维保到期时间&#xff0c;自动调整。 整体配置思路 1、配置设备管理…

leecode#x平方根#爬楼梯

题目描述&#xff1a; 给你一个非负整数 x &#xff0c;计算并返回 x 的 算术平方根 。 由于返回类型是整数&#xff0c;结果只保留 整数部分 &#xff0c;小数部分将被 舍去 。 注意&#xff1a;不允许使用任何内置指数函数和算符&#xff0c;例如 pow(x, 0.5) 或者 x ** 0…

stm32cubemx hal学习记录:FreeRTOS信号量

一、基本配置 1、配置RCC、USART1、时钟84MHz 2、配置SYS&#xff0c;将Timebase Source修改为除滴答定时器外的其他定时器。 3、初始化LED的两个引脚、两个按键引脚 4、开启FreeRTOS&#xff0c;v1与v2版本不同&#xff0c;一般选用v1即可 5、创建二值信号量Binary Semap…

IPv6通信实验

♥️作者&#xff1a;小刘在C站 ♥️每天分享云计算网络运维课堂笔记&#xff0c;一起努力&#xff0c;共赴美好人生&#xff01; ♥️夕阳下&#xff0c;是最美的&#xff0c;绽放。 目录 实验命令指南 1&#xff09;配置ip地址 在r2上&#xff1a; 在r3上&#xff1a;…

TDengine

目录1、在linux上安装服务端2、在本地安装客户端3、通过Idea连接服务端4、控制台基本使用5、流式计算1、在linux上安装服务端 1、首先下载服务端&#xff0c;我下载的是&#xff1a; TDengine-server-2.6.0.30-Linux-x64.tar.gz 下载地址 2、下载过后传到虚拟机。并解压 3、运…

当有一天TCP/IP没有了TCP

前几天我在给NetDAM可靠传输想更好的算法&#xff0c;发现我自己也傻x了&#xff0c;最根本的原因是要抛弃滑动窗口呀&#xff0c;解耦保序才是关键. 本来想明年愚人节写如果有一天TCP/IP没了IP&#xff0c;那么只能TCP over RDMA了...但是也不排除为了兼容以太网只能TCP over…

C语言中,可变参数函数调用的过程?!

以下是一位同学&#xff0c;发送给我的问题。 如下图&#xff0c;是学生在学习完指针章节后&#xff0c;写的测试代码。 他的疑问是&#xff1a;pa为什么指向a[3]的地址啊&#xff1f; 查看程序的输出后&#xff0c;知道他想问的是&#xff1a;为什么第二个printf语句输出的分…

嵌入式开发:从C语言成功过渡的3个技巧

当谈到嵌入式系统编程语言时&#xff0c;毫无疑问&#xff0c;C是主导语言。在过去的几十年里&#xff0c;有无数次尝试改变&#xff0c;但当尘埃落定时&#xff0c;C编程语言似乎永远是屹立不倒的语言。近年来&#xff0c;关于用其他语言取代C语言的争论再次出现。无论潜在的篡…

A-Level经济例题解析及练习Analysis of trade

今日知识点&#xff1a;Analysis of trade 例题Without trade, PD $3000, Q 400; in world markets, PW $1500 Under free trade, how many TVs will the country import or export? Identify consumer surplus, producer surplus, and total surplus without trade, and w…

Golang标准库限流器rate使用

限流就是限制系统的输入和输出流量来达到保护系统的目的&#xff0c;限流在实际场景中应用十分广泛&#xff0c;尤其在高并发场景下&#xff0c;为了保证系统的可以用性&#xff0c;我们需要采取一些限流措施降级&#xff0c;一旦达到限制的阈值&#xff0c;就需要限制流量并采…

Vue-admin-template新增TagViews标签页功能,附完整代码

前言 vue-admin-template里面本身是没有TagViews标签页的&#xff0c;只有完整版的vue-element-admin才有&#xff0c;翻找网上的其他教程&#xff0c;要么代码不完整&#xff0c;要么有bug&#xff0c;本篇文章就教大家如何在vue-admin-template的基础上新增TagViews 步骤 …

分布式应用kafka + EFLFK集群部署

前言 Kafka是由Apache软件基金会开发的一个开源流处理平台&#xff0c;由Scala和Java编写。Kafka是一种高吞吐量的分布式发布订阅消息系统&#xff0c;它可以处理消费者在网站中的所有动作流数据。 这种动作&#xff08;网页浏览&#xff0c;搜索和其他用户的行动&#xff09;…

骨传导耳机优缺点有哪些?骨传导耳机科普与推荐

骨传导耳机是一种可以开放耳朵的耳机&#xff0c;所以对于耳朵比较敏感的人来说&#xff0c;这种耳机是比较友好的&#xff0c;同时因为它的佩戴方式&#xff0c;在运动圈内也很受欢迎。只不过骨传导耳机是一种新兴的耳机&#xff0c;所以很多人并不太了解它的优缺点。 我作为…

书店销售管理系统----数据库原理及应用综合实验

枯木逢春犹再发&#xff0c;人无两度再少年&#x1f342; 系统主要模块如下&#xff1a; &#xff08;1&#xff09; 书店销售管理系统设计与实现—图书入库管理及查询统计 图书入库管理&#xff1a;维护入库图书信息&#xff08;如图书编号、书名、作者、价格、图书分类、出版…

vue-element-admin后台前端解决方案(基于 vue 和 element-ui)

vue-element-admin后台前端解决方案参考文档下载安装目录结构参考文档 vue-element-admin官网&#xff0c;更多详细内容可以查看社区学习文档。 下载安装 可以把 vue-element-admin当做工具箱或者集成方案仓库&#xff0c;在 vue-admin-template 的基础上进行二次开发&#…

Java 8 给我们更好的消灭空指针解决方案

前言 大家好&#xff0c;在平时的业务开发中&#xff0c;空指针是我们经常遇到的问题&#xff0c; 他可能会导致我们的流程无法正常进行或者一些意外情况的发生。 这就是我们需要避免空指针的原因&#xff0c;那我们有哪些方式去解决这个问题呢&#xff1f; 空指针场景 包装…

Linux系统安装DB2数据库的详细步骤

1、DB2数据库的安装 一、将DB2的安装介质上传至/home目录&#xff0c;并解压&#xff1a; tar –zxvf v9.5fp3_linuxx64_server.tar.gz 二、执行LANGC 三、进入解压后的server目录&#xff08;cd server/&#xff09;&#xff0c;执行./db2setup,步骤如下&#xff1a; # cd…

数据结构-线性表与链性表(二)

目录 一、学习背景 二、简绍 三、线性表 一、什么是线性表 二、操作 1、插入 2、删除 3、查询 三、数组应用案例中源码分析 1、插入 2、删除 3、get与set 4、扩容 二、单向链表 单向链表结构 循环链表 三、数组和链表比较 1、时间复杂度角度 2、其他维度 3、…

【JS】原生js实现矩形框的绘制/拖动/缩放

1、要点及功能描述 通过js监听mouse事件来实现矩形框的绘制&#xff0c;再通过区分点击的是边角还是其他位置来实现矩形框的缩放和拖动&#xff0c;并且在拖动和缩放时&#xff0c;都做了边界限制&#xff0c;当缩放或拖动 到边界时&#xff0c;就不能继续拉缩放拖动了。当然在…

【个人简介】一枚在上海的AndroidiOSWindow逆向电子工程师

> Hello World!, I am Humenger 「 From Shanghai, China 」 「 Android Reverse engineer, applied electronic technology Shan Dong University, China 」 &#x1f41d;主要涉及平台: Android(70%),iOS(15%),Window(5%),macOS(3%),其他(7%) &#x1f98b;主要涉…