CSS3(笔记)

CSS简介

  1. CSS是什么

Cascading Style Sheet层叠样式表
CSS:表现(美化网页)
字体,颜色,边距,高度,宽度,背景图片,网页定位,网页浮动

  1. CSS怎么用(快速入门)
  2. CSS选择器(重点+难点)
  3. 美化网页(文字,阴影,超链接,列表,渐变…)
  4. 盒子模型
  5. 浮动
  6. 定位
  7. 网页动画(特效效果)
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><!--规范,<style>可以编写CSS的代码,每一个声明最好以“;”结尾语法:选择器{声明1;声明2;声明3;}--><link rel="stylesheet" href="../css/style.css">
</head>
<body>
<h1>CSS测试</h1>
</body>
</html>
h1{color: crimson;
}

CSS的3种导入方式

Title
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><!--内部样式--><style>h1{color: green;}</style><!--外部样式--><link rel="stylesheet" href="css/style.css" />
</head>
<body><!--优先级:就近原则--><!--//那个离这行代码近--><!--行内样式:在标签元素中,编写一个style属性,编写样式即可-->
<h1 style="color: red">这是标签</h1>
</body>
</html>

外部样式两种方法

链接式

html

<!--外部样式--><link rel="stylesheet" href="css/style.css" />

导入式

@import是CSS2.1特有的!

<!--导入式--><style>@import url("css/style.css");</style>

选择器

作用:选择页面上的某一个或者者某一类元素

基本选择器

1、标签选择器

选择一类标签 标签{}

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>h1{color: orange;background: blue;border-radius: 10px;}</style>
</head>
<body>
<h1>标签选择器</h1>
</body>
</html>
1234567891011121314151617

2、类选择器 class

选择所有class一致的标签,跨标签,格式:.类名{},可以复用

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>/*类选择器的格式 .class的名称{}好处:可以多个标签归类,是同一个class,可以复用*/.demo1{color: blue;}.demo2{color: red;}.demo3{color: aqua;}</style>
</head>
<body>
<h1 class = "demo1">类选择器:demo1</h1>
<h1 class="demo2">类选择器:demo2</h1>
<h1 class="demo3">类选择器:demo3</h1>
</body>
</html>
123456789101112131415161718192021222324252627

3、id 选择器:

全局唯一,格式:#id名{}

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>/*id选择器:id必须保证全局唯一#id名称{}不遵循就近原则,优先级是固定的id选择器 > 类选择器  >  标签选择器*/#demo1{color: aqua;}.demo2{color: red;}#demo2{color: orange;}h1{color: blue;}</style>
</head>
<body><h1 id="demo1">id选择器:demo1</h1>
<h1 class="demo2" id = "demo2">id选择器:demo2</h1>
<h1 class="demo2">id选择器:demo3</h1>
<h1>id选择器:demo4</h1>
<h1>id选择器:demo5</h1>
</body>
</html>

优先级:id > class > 标签

层次选择器

1.后代选择器 (空格)

在某个元素的后面

/*后代选择器*/
<style>
body p{background:red;
}
</style>

2.子选择器 (>)

一代

/*子选择器*/
<style>
body>p{background:orange;
}
</style>

3.相邻的兄弟选择器(+)

同辈

/*相邻兄弟选择器:只有一个,相邻(向下)*/
<style>
.active+p{
background: red
}
</style><body><p class="active">p1<p><p>p2</p>
</body>

4.通用选择器(~)

<style>
/*通用兄弟选择器,当前选中元素的向下的所有兄弟元素*/.active~p{background:red;
}
</style>
<body><p class="active">p1<p><p>p2</p>
</body>

结构伪类选择器

伪类

<style>/*ul的第一个子元素*/ul li:first-child{background: aqua;}/*ul的最后一个子元素*/ul li:last-child{background: blue;}/*选中p1:定位到父元素,选择当前的第一个元素选择当前p元素 的父级元素,选中父级元素的第一个,并且是当前元素才生效!*/p:nth-child(1){/*不分类型*/background: orange;}/*选中父元素下的,第2个p元素*//*此类型*/p:nth-of-type(2){background: red;}</style>

属性选择器(常用)

id + class结合

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>.demo a{display: block;height: 50px;width: 50px;float:left;border-radius: 10px;background: blue;text-align: center;color: beige;text-decoration: none;margin-right: 5px;font: bold 20px/50px Arial;}/*属性名,属性名=属性值(正则)=表示绝对等于*=表示包含^=表示以...开头$=表示以...结尾存在id属性的元素  a[]{}*//* a[id]{background: red;}*//*id=first的元素*//* a[id=first]{background: aqua;}*//*class中有links元素*//* a[class = "links item2 first2"]{background: orange;}*//*a[class*="links"]{background: black ;}*//*选中href中以http开头的元素*/a[href^="http"]{background: orange;}</style></head>
<body>
<p class="demo"><a href="http://www.baidu.com" class="links item first" id="first">1</a><a href="/adad/faf" class="links item2 first2" >2</a><a href="qwe123" class="links item3 first3" >3</a><a href="eweqe" class="links item4 first4" >4</a><a href="rrrrr" class="links item5 first5" >5</a><a href="ttt" class="links item6 first6" >6</a><a href="yyy" class="links item7 first7" >7</a>
</p>
</body>
</html>

span标签

重点要突出的字,使用span标签套起来

<style>#title1{font-size: 50px;}
</style>
<body>
学习语言<span id="title1">JAVA</span>
</body>

字体样式

font-family:字体
font-size:字体大小
font-weight:字体粗细

font-weight:bolder;/*也可以填px,但不能超过900,相当于bloder*/
/*常用写法:*/
font:oblique bloder 12px "楷体"

文本样式

  1. 颜色–>color
  2. 文本对齐方式–>text-align:center
  3. 首行缩进–>text-indent:2em
  4. 行高–>line-height:300px;
  5. 下划线–>text-decoration
text-decoration:underline/*下划线*/
text-decoration:line-through/*中划线*/
text-decoration:overline/*上划线*/
text-decoration:none/*超链接去下划线*/

图片、文字水平对齐

img,span{vertical-align:middle}

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Z0vUNcL5-1608875405695)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225003006064.png)]

超链接伪类

<style>a{/*超链接有默认的颜色*/text-decoration:none;color:#000000;}a:hover{/*鼠标悬浮的状态*/color:orange;}a:active{/*鼠标按住未释放的状态*/color:green}a:visited{/*点击之后的状态*/color:red}
</style>

阴影

/*	第一个参数:表示水平偏移第二个参数:表示垂直偏移第三个参数:表示模糊半径第四个参数:表示颜色
*/
text-shadow:5px 5px 5px 颜色

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-gFnix5Xu-1608875405699)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225095229521.png)]

列表ul li

/*list-style{none:去掉原点circle:空心圆decimal:数字square:正方形
}*/
ul li{height:30px;list-style:none;text-indent:1em;
}
a{text-decoration:none;font-size:14px;color:#000;
}
a:hover{color:orange;text-decoration:underline
}
/*放在div中,作为导航栏*/
<div id="nav"></div>
#nav{width:300px;
}

背景

  1. 背景颜色:background
  2. 背景图片
background-image:url("");/*默认是全部平铺的*/
background-repeat:repeat-x/*水平平铺*/
background-repeat:repeat-y/*垂直平铺*/
background-repeat:no-repeat/*不平铺*/

3.综合使用

background:red url("图片相对路径") 270px 10px no-repeat
background-position:/*定位:背景位置*/

渐变

网址:https://www.grablent.com
径向渐变、圆形渐变

盒子模型

  1. margin:外边距
  2. padding:内边距
  3. border:边框

边框

border:粗细 样式 颜色

  1. 边框的粗细
  2. 边框的样式
  3. 边框的颜色

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-llfEVadD-1608875405700)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225103546532.png)]

外边距----妙用:居中

margin-left/right/top/bottom–>表示四边,可分别设置,也可以同时设置如下

margin:0 0 0 0/*分别表示上、右、下、左;从上开始顺时针*/
/*例1:居中*/
margin:0 auto /*auto表示左右自动*/
/*例2:*/
margin:4px/*表示上、右、下、左都为4px*/
/*例3*/
margin:10px 20px 30px/*表示上为10px,左右为20px,下为30px*/

盒子的计算方式:
margin+border+padding+内容的大小

总结:
body总有一个默认的外边距 margin:0
常见操作:初始化

margin:0;
padding:0;
text-decoration:none;

居中的终极方法

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-bdJ0Y6Kk-1608875405703)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225110537377.png)]

圆角边框----border-radius

border-radius有四个参数(顺时针),左上开始
圆圈:圆角=半径

盒子阴影

box-shadow: 10px 10px 1px black;

源码之家网站:www.mycodes.net

光年后台管理系统: http://lyear.itshubao.com/index.html#

vue-element-admin:https://panjiachen.github.io/vue-element-admin-site/zh/

element:https://element.eleme.cn/#/zh-CN/component/installation

飞冰:https://ice.work

门户网站模板之家:https://ice.work

浮动

标准文档流

在这里插入图片描述

块级元素:独占一行 h1~h6 、p、div、 列表…
行内元素:不独占一行 span、a、img、strong

注: 行内元素可以包含在块级元素中,反之则不可以。

display(重要)

  1. block:块元素
  2. inline:行内元素
  3. inline-block:是块元素,但是可以内联,在一行

这也是一种实现行内元素排列的方式,但是我们很多情况用float

  1. none:消失
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><!--block 块元素inline 行内元素inline-block 是块元素,但是可以内联 ,在一行--><style>div{width: 100px;height: 100px;border: 1px solid red;display: inline-block;}span{width: 100px;height: 100px;border: 1px solid red;display: inline-block;}</style>
</head>
<body>
<div>div块元素</div>
<span>span行内元素</span>
</body>
</html>

QQ会员页面导航练习
在这里插入图片描述

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>QQ会员</title><link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="wrap"><!--头部--><header class="nav-header"><div class="head-contain"><a href="" class="top-logo"><img src="img/logo.png" width="145" height="90" /></a><nav class="top-nav"><ul><li><a href="">功能特权</a> </li><li><a href="">游戏特权</a> </li><li><a href="">生活特权</a> </li><li><a href="">会员特权</a> </li><li><a href="">成长体系</a> </li><li><a href="">年费专区</a> </li><li><a href="">超级会员</a> </li></ul></nav><div class="top-right"><a href="">登录</a><a href="">开通超级会员</a></div></div></header>
</div>
</body>
</html>
123456789101112131415161718192021222324252627282930313233
*{padding:0;margin: 0;
}
a{text-decoration: none;
}
.nav-header{height: 90px;width: 100%;background: rgba(0,0,0,.6);
}
.head-contain{width: 1180px;height: 90px;margin: 0 auto;text-align: center;
}
.top-logo,.top-nav,.top-nav li,.top-right{height: 90px;display: inline-block;vertical-align: top;
}
.top-nav{margin: 0 48px;
}
.top-nav li{line-height: 90px;width: 90px;
}
.top-nav li a{display: block;text-align: center;font-size: 16px;color: #fff;
}
.top-nav li a:hover{color: blue;
}.top-right a{display: inline-block;font-size: 16px;text-align: center;margin-top: 25px;border-radius: 35px;
}
.top-right a:first-of-type{width: 93px;height: 38px;line-height: 38px;color: #fad65c;border: 1px #fad65c solid;
}
.top-right a:first-of-type:hover{color: #986b0d;background: #fad65c;
}
.top-right a:last-of-type{width: 140px;height: 40px;font-weight: 700;line-height: 40px;background: #fad65c;color: #986b0d;
}
.top-right a:last-of-type:hover{background: #fddc6c;
}

float:left/right左右浮动

clear:both

overflow及父级边框塌陷问题

clear:
right:右侧不允许有浮动元素
left:左侧不允许有浮动元素
both:两侧不允许有浮动元素
none:

解决塌陷问题方案:

方案一

增加父级元素的高度;

方案二

增加一个空的div标签,清除浮动

<div class = "clear"></div>
<style>.clear{clear:both;margin:0;padding:0;
}
</style>

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-HuGA4JNe-1608875405705)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225123439932.png)]

方案三

在父级元素中增加一个overflow:hidden

overflow:hidden/*隐藏*/
overflow:scoll/*滚动*/

layui:https://www.layui.com/admin/

方案四(重要)

父类添加一个伪类:after

#father:after{content:'';display:block;clear:both;
}

小结:

  1. 浮动元素增加空div----》简单、代码尽量避免空div
  2. 设置父元素的高度-----》简单,元素假设没有了固定的高度,就会超出
  3. overflow----》简单,下拉的一些场景避免使用
  4. 父类添加一个伪类:after(推荐)----》写法稍微复杂,但是没有副作用,推荐使用

display与float对比

  1. display:方向不可以控制
  2. float:浮动起来的话会脱离标准文档流,所以要解决父级边框塌陷的问题。

定位

相对定位

相对定位:positon:relstive;
相对于原来的位置,进行指定的偏移,相对定位的话,它仍然在标准文档流中,原来的位置会被保留

top:-20px;
left:20px;
bottom:-10px;
right:20px<!--距离右边多少-->

绝对定位-absolute

定位:基于xxx定位,上下左右~
1、没有父级元素定位的前提下,相对于浏览器定位
2、假设父级元素存在定位,我们通常会相对于父级元素进行偏移
3、在父级元素范围内移动
总结:相对于父级或浏览器的位置,进行指定的偏移,绝对定位的话,它不在标准文档流中,原来的位置不会被保留

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>div{margin: 10px;padding: 5px;font-size: 12px;line-height: 25px;}#father{border: 1px solid #666;padding: 0;position: relative;}#first{background-color: #a13d30;border: 1px dashed #b27530;}#second{background-color: green;border: 1px dashed #0ece4f;position: absolute;right:30px;top:30px}#third{background-color: red;border: 1px dashed #ff1b87;}</style>
</head>
<body>
<div id = "father"><div id="first">第一个盒子</div><div id="second">第二个盒子</div><div id="third">第三个盒子</div>
</div>
</body>
</html>

固定定位-fixed

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><style>body{height: 1000px;}div:nth-of-type(1){/*绝对定位:没有相对的父级元素,所以相对于浏览器*/width: 100px;height: 100px;background:red;position: absolute;right: 0;bottom: 0;}div:nth-of-type(2){width: 50px;height: 50px;background: yellow;position: fixed;right: 0;bottom: 0;}</style>
</head>
<body><div>div1</div>
<div>div2</div>
</body>
</html>

z-index层级

在这里插入图片描述
图层~
z-index:默认是0,最高无限~999

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title><link rel="stylesheet" href="css/style.css"></head>
<body>
<div id="content"><ul><li><img src="images/bg.jpg" alt=""></li><li class="tipText">学习微服务,找狂神</li><li class="tipBg"></li><li>时间:2099-01=01</li><li>地点:月球一号基地</li></ul>
</div>
</body>
</html>#content{width: 380px;padding: 0px;margin: 0px;overflow: hidden;font-size: 12px;line-height: 25px;border: 1px solid yellow;
}
ul,li{padding: 0px;margin: 0px;list-style: none;
}
/*父级元素相对定位*/
#content ul{position: relative;
}
.tipText,.tipBg{position: absolute;width: 380px;height: 25px;top:216px
}
.tipText{color: white;z-index: 999;
}
.tipBg{background: orange;opacity: 0.5;/*背景透明度*/filter: alpha(opacity=50);
}

动画及视野拓展

菜鸟教程:https://www.runoob.com

总结

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-IGvckSf0-1608875405707)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225134804298.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-RmRi8zok-1608875405707)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225134837125.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-jRdYijjX-1608875405708)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225134917099.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-reE3wqBZ-1608875405709)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225134945388.png)]

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

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

相关文章

19年8月 字母哥 第三章 spring boot 配置原理实战 用热点公司网不行

第三章 spring boot 配置原理实战 3.1.结合配置加载讲解bean自动装配原理 3.2.详解YAML语法及占位符语法 3.3.获取自定义配置的两种实现方法 3.4.配置文件注入值数据校验 3.5.加载旧项目配置文件的两种方式 这节课就是适配老的项目而已所以要新建分支 因为不是很常用 3.6.profi…

.NET Core跨平台图形处理库ImageSharp

ImageSharp 是支持.NET Core跨平台图形处理库&#xff0c;ImageSharp是ImageProcessor 的.NET Core跨平台实现。 ImageSharp 支持如下操作&#xff1a; 调整大小&#xff0c;裁剪&#xff0c;翻转&#xff0c;旋转&#xff0c;边缘检测等。 支持BMP&#xff0c;PNG&#xff0c;…

JVM GC参数以及GC算法的应用

转载自 JVM GC参数以及GC算法的应用1. 串行收集器 串行收集器是最古老&#xff0c;最稳定以及效率高的收集器可能会产生较长的停顿&#xff0c;只使用一个线程去回收-XX:UseSerialGC新生代、老年代使用串行回收新生代复制算法老年代标记-压缩串行收集器的日志输出&#xff1a…

hibernate正向生成数据库表以及配置——Student.java

package cn.bdqn.studentInfo.entity;import java.util.HashSet; import java.util.Set;/*** 学生表的实体类* author Administrator**/ public class Student {private Integer id;private String name;private Set<Teacher>teachersnew HashSet<Teacher>();publi…

全局配置_配置全局异常处理,结果没有想到,spring boot实践(3)

01 spring boot读取配置信息02 多环境配置这个功能详细大家在项目中也经常遇到&#xff0c;通常我们在写controller的时候会定义一个全局的异常处理。任何的controller出现异常都会进入到这个全局异常统一抛出&#xff0c;同时我们也可以定义一个自定义的异常类来处理一些特殊的…

蓝桥杯JAVA省赛2013-----B------5(有理数类)

五、有理数类 【答案】&#xff1a;Rational(this.rax.rb this.rbx.ra, this.rb*x.rb) public class Test01 {static class Rational //内部类 【main调用内部类 &#xff1a; 内部类前 要加 static】{private long ra;private long rb;private long gcd(long a, long b…

19年8月 字母哥 第四章 常用web开发数据库框架 不要用公司网络加载不出来 用热点!!!

第四章 常用web开发数据库框架 4.1.整合Spring JDBC操作数据 4.2 Spring JDBC多数据源的实现 4.3.Spring JDBC JTA实现分布式事务 4.4.ORM主流框架选型 4.5.bean转换Dozer的快速上手 4.6.整合Spring Data JPA操作数据 4.7.Sp…

分库分表的几种常见形式以及可能遇到的难

在谈论数据库架构和数据库优化的时候&#xff0c;我们经常会听到“分库分表”、“分片”、“Sharding”…这样的关键词。让人感到高兴的是&#xff0c;这些朋友所服务的公司业务量正在&#xff08;或者即将面临&#xff09;高速增长&#xff0c;技术方面也面临着一些挑战。让人…

JVM 调优和垃圾回收器说明

转载自 JVM 调优和垃圾回收器说明JVM垃圾收集算法JVM垃圾收集算法有四种&#xff1a;标记-清除算法、复制算法、标记-整理算法、分代收集算法标记-清除算法&#xff1a;该算法如同它的名字一样&#xff0c;分为两个阶段&#xff1a;标记、清除。首先标记出所有需要回收的对象…

python中的数组按顺序切片_python切片(获取一个子列表(数组))详解

切片&#xff1a;切片指从现有列表中&#xff0c;获取一个子列表返回一个新列表&#xff0c;不影响原列表。下标以 0 开始&#xff1a;list [红,绿,蓝,白,黑,黄,青]# 下标 0 1 2 3 4 5 6取单个值语法&#xff1a;列表[n]n为下标&#xff0c;n0表示第一个 &#xff0c; n1表示第…

.net core快速上手

2014年11月12日的Connect ();开发者活动上宣布将.NET堆栈基于MIT协议开源&#xff0c;并且提供开源保证&#xff0c;托管在Github上。当时的版本与最终目标相距甚远&#xff0c;然而有一点可以肯定的是&#xff0c;这是一个与.NET Framework 4.x完全不同的框架。 这在社区引发了…

hibernate正向生成数据库表以及配置——Teacher.java

package cn.bdqn.studentInfo.entity;import java.util.HashSet; import java.util.Set;/*** 老师的实体类* author Administrator**/ public class Teacher {private Integer id;private String name;private Set<Student> students new HashSet<Student>();publi…

19年8月 字母哥 第五章 静态资源与模板引擎的整合 用热点公司网不行

第五章 静态资源与模板引擎的整合 5.1.webjars与静态资源 5.2.模板引擎选型与未来趋势 5.3.web应用开发之整合jsp 5.4.web应用开发之整合freemarker 5.5.web应用开发之整合thymeleaf 5.6.thymeleaf基础语法讲解 5.7.thymeleaf内置对象与工具类 5.8.公共片段(标签)与内联…

python 随机排序_Python 如何随机打乱列表(List)排序

场景&#xff1a;现在有一个list:[1,2,3,4,5,6]&#xff0c;我需要把这个list在输出的时候&#xff0c;是以一种随机打乱的形式输出。专业点的术语&#xff1a;将一个容器中的数据每次随机逐个遍历一遍。注意&#xff1a;不是生成一个随机的list集。环境&#xff1a;Python 3.6…

深入JVM虚拟机(四) Java GC收集器

转载自 深入JVM虚拟机(四) Java GC收集器1 GC收集器 1.1 Serial串行收集器 串行收集器主要有两个特点&#xff1a;第一&#xff0c;它仅仅使用单线程进行垃圾回收&#xff1b;第二&#xff0c;它独占式的垃圾回收。 在串行收集器进行垃圾回收时&#xff0c;Java 应用程序中的线…

JavaScript(笔记)

UI框架 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-yYMMLanm-1608952213820)(C:\Users\王东梁\AppData\Roaming\Typora\typora-user-images\image-20201225142522925.png)] 简介 javaScript是一门世界上最流行的脚本语言 Java&#xff0c;Java…

19年8月 字母哥 第六章 生命周期内的拦截过滤与监听 用热点公司网不行

第六章 生命周期内的拦截过滤与监听 6.1.servlet与filter与listener的实现 servlet的filter(过滤器)listener(监听器) 6.2.spring拦截器及请求链路说明 6.3.自定义事件的发布与监听 6.4.应用启动的监听 第六章 生命周期内的拦截过滤与监听 6.1.servlet与filter与listener的…

外链式样式表_引入CSS样式表(书写位置)

CSS初识CSS(Cascading Style Sheets) 美化样式CSS通常称为CSS样式表或层叠样式表(级联样式表)&#xff0c;主要用于设置HTML页面中的文本内容(字体、大小、对齐方式等)、图片的外形(宽高、边框样式、边距等)以及版面的布局等外观显示样式。CSS以HTML为基础&#xff0c;提供了丰…

JVM 内存分代、垃圾回收漫谈

转载自 JVM 内存分代、垃圾回收漫谈这篇主要简单分享一下关于 JVM 内存模型、内存溢出、内存分代、以及垃圾回收算法的相关知识。如果这篇文章让你对相关知识产生了兴趣而意犹未尽&#xff0c;推荐去阅读周志明老师的《深入理解Java虚拟机》。 JVM 内存区域 这里也简单罗列一下…

hibernate正向生成数据库表以及配置——Student.hbm.xml

<?xml version"1.0" encoding"utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file au…