-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f9ef2f
commit 78d6354
Showing
19 changed files
with
169 additions
and
22 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
--> | ||
<div style="width: 200px; height: 200px; background-color: #FF00FF;"></div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ input{ | |
border: solid 1px red; | ||
} | ||
|
||
/*累选择器*/ | ||
/*类选择器*/ | ||
|
||
.myinput{ | ||
border: solid 2px blue; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
<option value ="5">--湖北省--</option> | ||
<option value ="6">--湖南省--</option> | ||
</select> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- | ||
~ Copyright (c) 2021/9/24 下午2:21 @程云博 <2484720940@qq.com> All Rights Reserved | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<!-- | ||
读音:mai ta | ||
meta主要用于设置网页中的一些元数据,元数据不是给用户看的。 | ||
charset 指定网页的编码的字符集 | ||
name 指定的数的名称 | ||
content 指定数据的内容 | ||
keywords 表示该网站的关键字 这个的作用就是当用户在百度或者其他搜索引擎上 | ||
输入手机、笔记本关键字的时候,可能就会搜到这个网站。 | ||
name 表示给这个网站设定的关键字。可以设定多个,中间使用逗号隔开。 | ||
description 代表在网页上(百度或者谷歌)上显示的对该网页的简介。 | ||
title标签用于在百度上显示该网页的标题(这个标题是这个网页的超链接) | ||
--> | ||
<meta name="keywords" content="网上购物,手机,笔记本"> | ||
<meta name="description" content="这是一个非常优秀的购物网站"> | ||
|
||
<!-- | ||
以下的mate是设置自动跳转其他网页的,3代表的是3秒,url代表的是跳转的地址。 | ||
<meta http-equiv="refresh" content="3;url=http://www.baidu.com> | ||
--> | ||
<meta charset="UTF-8"> | ||
<title>meta标签</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
~ Copyright (c) 2021/9/24 下午4:25 @程云博 <2484720940@qq.com> All Rights Reserved | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>块元素和行内元素</title> | ||
</head> | ||
<body> | ||
<!-- | ||
块元素(block element) | ||
- 在网页中一般通过块级元素来对网页进行布局。 | ||
行内元素(inline element); | ||
- 行内元素一般用来包裹文字 | ||
一般在块元素中放行内元素 而不在行内元素中放块元素 | ||
块元素中也可以放块元素 比如 div嵌套div | ||
但是p元素中不可以放任何的块元素。 | ||
网页中F12的元素显示出来的代码就是内存中实际存在的代码 | ||
在html中存在自动修复的过程 即如果将代码写到html外边 、p标签里边嵌套h标签 | ||
这些对于html是不合法的, | ||
但是这些依然可以在网页上显示内容 | ||
是因为在html中存在自动修复的过程 | ||
html会将html外的代码拿到html中,也会将p标签中的h标签拿出来显示 | ||
如果早html外又创建了一个子标签,此时不会报错,浏览器会帮我们将这个标签放到HTML标签中。 | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
~ Copyright (c) 2021/9/24 下午2:22 @程云博 <2484720940@qq.com> All Rights Reserved | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>实体符号</title> | ||
</head> | ||
<body> | ||
<!-- | ||
在HTML存在许多的实体符号,比如 < > @ 这些符号无法在网页中显示出来,此时需要使用实体符号 | ||
> > < < @ © | ||
注意:这些实体符是通用的,不仅可以在HTML中使用,还可以在Java、jsp。甚至在markdown中也可以通用。 | ||
注意:如果只是写一个< > 或者空格的话 不使用实体符号也可以的 | ||
注意:在网页中编写的多个空格默认情况下会自动被浏览器解析为一个空格。 | ||
--> | ||
|
||
a>b <!--这样写在网页中是可以显示出来>号的--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,5 @@ | |
|
||
<!-- alt用来设置当图片加载失败的时候的提示信息 --> | ||
<img src="图片1.jpg" alt="图片找不到了呦!" > | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- | ||
~ Copyright (c) 2021/9/24 下午4:02 @程云博 <2484720940@qq.com> All Rights Reserved | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>语义化标签</title> | ||
</head> | ||
<body> | ||
<!-- | ||
<h></h>属于块级元素 | ||
<p></p> | ||
在页面中只要独占一行的元素都叫块级元素(block element) | ||
在页面中不会独占一行的称为行内元素(inline element) | ||
<hgroup></hgroup> 标签用来为标签分组,可以将一组相关的标题放到一个hgroup中。 | ||
注意:是一组相关的标签 | ||
--> | ||
<hgroup> | ||
<h1>水果</h1> | ||
<h2>葡萄</h2> | ||
</hgroup> | ||
|
||
<!-- | ||
<blockquote> 代表的长引用,这个时候在页面显示的话会首行缩进。 | ||
<blockquote> 也是独占一行,属于块级元素。 | ||
--> | ||
程云博说: | ||
<blockquote> | ||
朝圣的路上我们坚持自己的道! | ||
</blockquote> | ||
|
||
<!-- | ||
<q></q> 代表短引用,这个时候不会独占一行,在文内进行引用。 | ||
<q> 是行内元素,不会独占一行。 | ||
即使这里换行了,但是只不过是在冒号后面多加了一个空格,因为在HTML编码中, | ||
多个空格会被看做一个空格。 | ||
--> | ||
孔子说: | ||
<q>学而不思则罔,思而不学则殆。</q> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.