<div id="article_content" class="article_content clearfix">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-b5506197d8.css">
<div id="content_views" class="markdown_views prism-atom-one-dark">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
</svg>
<p></p>
<div class="toc">
<h3><a name="t0"></a><a name="t0"></a>普歌-HTML5+CSS3复习总结</h3>
<ul><li><a href="#HTML_1" target="_self">一.HTML基础</a></li><li><ul><li><a href="#1_2" target="_self">1.网页开发工具</a></li><li><a href="#2_32" target="_self">2.常用基本标签</a></li><li><ul><li><a href="#1_33" target="_self">(1)文本标签</a></li><li><a href="#2_114" target="_self">(2)表格标签</a></li><li><a href="#3_138" target="_self">(3)列表标签</a></li><li><a href="#4_166" target="_self">(4)表单标签</a></li></ul>
</li><li><a href="#3HTML5_333" target="_self">3.HTML5新增</a></li><li><ul><li><a href="#1HTML5__334" target="_self">(1)HTML5 新增的语义化标签</a></li><li><a href="#2_341" target="_self">(2)新增的多媒体标签</a></li><li><a href="#3input__347" target="_self">(3)新增的input 类型</a></li><li><a href="#4_349" target="_self">(4)新增的表单属性</a></li></ul>
</li></ul>
</li><li><a href="#CSS_352" target="_self">二.CSS</a></li><li><ul><li><a href="#1css_353" target="_self">1.css选择器</a></li><li><ul><li><a href="#1css_355" target="_self">(1)css基础选择器</a></li><li><a href="#2css_395" target="_self">(2)css复合选择器(引用选择器)</a></li></ul>
</li><li><a href="#2css_402" target="_self">2.css字体属性</a></li><li><a href="#3css_404" target="_self">3.css文本属性</a></li><li><a href="#4css_449" target="_self">4.css的引入方式</a></li><li><a href="#5css_471" target="_self">5.css元素显示模式</a></li><li><a href="#6css_477" target="_self">6.css背景</a></li><li><a href="#7css_523" target="_self">7.css三大特性</a></li><li><a href="#8_533" target="_self">8.页面布局</a></li><li><ul><li><a href="#1_534" target="_self">(1)盒子模型</a></li><li><a href="#2_571" target="_self">(2)浮动</a></li><li><a href="#3_576" target="_self">(3)定位</a></li></ul>
</li><li><a href="#9css_601" target="_self">9.css用户界面样式</a></li><li><a href="#10_verticalalign__620" target="_self">10. vertical-align 属性应用</a></li><li><a href="#11_629" target="_self">11.溢出的文字省略号显示</a></li><li><a href="#12CSS3__633" target="_self">12.CSS3 的新特性</a></li><li><ul><li><a href="#1_634" target="_self">(1)属性选择器</a></li><li><a href="#2_639" target="_self">(2)结构伪类选择器</a></li><li><a href="#3_646" target="_self">(3)伪元素选择器</a></li><li><a href="#42D_649" target="_self">(4)2D转换</a></li><li><a href="#5_684" target="_self">(5)动画</a></li><li><a href="#63D_740" target="_self">(6)3D转换</a></li><li><a href="#7_787" target="_self">(7)浏览器私有前缀</a></li></ul>
</li></ul>
</li></ul>
</div>
<p></p>
<h1><a name="t1"></a><a name="t1"></a><a id="HTML_1"></a>一.HTML基础</h1>
<h2><a name="t2"></a><a name="t2"></a><a id="1_2"></a>1.网页开发工具</h2>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token doctype"><!DOCTYPE html></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>html</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>en<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>head</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>meta</span> <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>X-UA-Compatible<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>IE=edge<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>viewport<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>width=device-width, initial-scale=1.0<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>title</span><span class="token punctuation">></span></span>Document<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>title</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>head</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>html</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul></pre>
<p>(1)<strong><!DOCTYPE >标签</strong></p>
<blockquote>
<ul><li>它是文档类型声明,作用就是告诉浏览器使用哪种HTML版本来显示网页。</li><li>声明位于文档中的最前面的位置,处于< html> 标签之前。</li><li>它不是一个HTML 标签,是文档类型声明标签。</li></ul>
</blockquote>
<p>(2)<strong>lang语言</strong></p>
<blockquote>
<ul><li>用来定义当前文档显示的语言。</li><li>en定义语言为英语 , zh-CN定义语言为中文</li><li>对于文档显示来说,定义成en的文档也可以显示中文,定义成zh-CN的文档也可以显示英文</li></ul>
</blockquote>
<p>(3)<strong>charset 字符集</strong></p>
<blockquote>
<ul><li>字符集(Character set)是多个字符的集合。以便计算机能够识别和存储各种文字。</li><li>上面语法是必须要写的代码,否则可能引起乱码的情况。一般情况下,统一使用“UTF-8”编码。</li></ul>
</blockquote>
<h2><a name="t3"></a><a name="t3"></a><a id="2_32"></a>2.常用基本标签</h2>
<h3><a name="t4"></a><a name="t4"></a><a id="1_33"></a>(1)文本标签</h3>
<ul><li><mark>标题</mark></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h1</span><span class="token punctuation">></span></span>标题一共六级选,<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h1</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h2</span><span class="token punctuation">></span></span>文字加粗一行显。<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h2</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h3</span><span class="token punctuation">></span></span>由大到小依次减,<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h3</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h4</span><span class="token punctuation">></span></span>从重到轻随之变。<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h4</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h5</span><span class="token punctuation">></span></span>语法规范书写后,<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h5</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h6</span><span class="token punctuation">></span></span>具体效果刷新见。<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h6</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210402201341276.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h1</span> <span class="token attr-name">align</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>对齐方式<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>文本内容<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h1</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">三种对齐方式:left,center,right
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<ul><li><mark>文本</mark></li></ul>
<p><img src="https://www.icode9.com/i/ll/?i=20210402202301513.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<p>上标与下标:</p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>sup</span><span class="token punctuation">></span></span>上标标记内容<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>sup</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>sub</span><span class="token punctuation">></span></span>下标标记内容<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>sub</span><span class="token punctuation">></span></span>
例:
x<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>sup</span><span class="token punctuation">></span></span>3<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>sup</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>br</span><span class="token punctuation">></span></span>
2x<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>sub</span><span class="token punctuation">></span></span>2<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>sub</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210402203318923.png" alt="在这里插入图片描述"></p>
<ul><li><mark>段落,水平线</mark></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>p</span><span class="token punctuation">></span></span>段落标签<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>p</span><span class="token punctuation">></span></span> //有较大空白缝隙
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span><span class="token punctuation">></span></span>换行标签 //强制换行,单标签
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>hr</span><span class="token punctuation">></span></span> //水平线标记
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<ul><li><mark>div和span标签</mark></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>div</span><span class="token punctuation">></span></span> // 用来布局,但是现在一行只能放一个div。大盒子
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>span</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>span</span><span class="token punctuation">></span></span> //用来布局,一行上可以多个span。小盒子
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<ul><li><mark>图像标签和路径</mark></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>图片的位置<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<div class="table-box"><table><thead><tr><th>属性</th><th>属性值</th><th>说明</th></tr></thead><tbody><tr><td>src</td><td>图片路径</td><td>必须属性</td></tr><tr><td>alt</td><td>文本</td><td><strong>替换文本</strong>,图片不能显示的文字</td></tr><tr><td>title</td><td>文本</td><td><strong>提示文本</strong>鼠标放到图像上,显示文字</td></tr><tr><td>width</td><td>像素</td><td>设置图片的宽度</td></tr><tr><td>height</td><td>像素</td><td>设置图像的高度</td></tr><tr><td>border</td><td>像素</td><td>设置图片的边框粗细</td></tr></tbody></table></div>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> *相对路径*:以引用文件所在位置为参考基础,图片相对于HTML页面的位置
*绝对路径*:是指目录下的绝对位置,直接到达目标位置,通常是从**盘符**开始的路径。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210402210817501.png" alt="在这里插入图片描述"></p>
<ul><li><mark>超链接标签</mark></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>跳转目标<span class="token punctuation">"</span></span> <span class="token attr-name">target</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>目标窗口的弹出方式<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>文本或图像<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210402211436940.png" alt="在这里插入图片描述"><br> 链接分类:</p>
<ul><li>1.<strong>外部链接</strong></li><li>2.<strong>内部链接</strong></li><li>3.<strong>空链接</strong>:如果当时没有确定链接目标时,< a href="#"> 首页< /a > 。</li><li>4.<strong>下载链接</strong></li><li>5.<strong>网页元素链接</strong>: 在网页中的各种网页元素,如文本、图像、表格、音频、视频等都可以添加超链接.</li><li>6.<strong>锚点链接</strong>: 点击链接,可以快速定位到页面中的某个位置。</li></ul>
<h3><a name="t5"></a><a name="t5"></a><a id="2_114"></a>(2)表格标签</h3>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>table</span><span class="token punctuation">></span></span> //是用于定义表格的标签
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span> //定义表格中的行,必须嵌套在<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>table</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>table</span><span class="token punctuation">></span></span>标签中。
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>th</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>th</span><span class="token punctuation">></span></span> // 表格的表头部分,加粗显示
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>单元格内的文字<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span> // 定义表格中的单元格,必须嵌套在<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>标签中。
...
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
...
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>table</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li></ul></pre>
<p><mark>表格结构标签</mark></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>thead</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>thead</span><span class="token punctuation">></span></span>: //用于定义表格的头部。
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tbody</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tbody</span><span class="token punctuation">></span></span>: //用于定义表格的主体。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p><mark>合并单元格</mark><br> 跨行合并:rowspan=“合并单元格的个数”<br> 跨列合并:colspan=“合并单元格的个数”</p>
<p><strong>表格相关属性:</strong><br> <img src="https://www.icode9.com/i/ll/?i=20210402214251794.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h3><a name="t6"></a><a name="t6"></a><a id="3_138"></a>(3)列表标签</h3>
<p><mark>无序列表</mark></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>ul</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>li</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>li</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>ul</span><span class="token punctuation">></span></span>
//最常用,没有固定的顺序,默认有小圆点
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul></pre>
<p><mark>有序列表</mark></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>ol</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>li</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>li</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>ol</span><span class="token punctuation">></span></span>
//有先后顺序,默认有数字
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul></pre>
<p><mark>自定义列表</mark></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>dl</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>dt</span><span class="token punctuation">></span></span>名词1<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>dt</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>dd</span><span class="token punctuation">></span></span>名词1解释1<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>dd</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>dd</span><span class="token punctuation">></span></span>名词1解释2<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>dd</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>dl</span><span class="token punctuation">></span></span>
//1. 一个名称对应一个值 2.一个名称对应多个值 3.多个名称对应一个值
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul></pre>
<h3><a name="t7"></a><a name="t7"></a><a id="4_166"></a>(4)表单标签</h3>
<p><mark>表单的组成</mark></p>
<p><em>提示信息,表单域,表单控件(表单元素)</em></p>
<ul><li><strong>表单域</strong></li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>form</span> <span class="token attr-name">action</span><span class="token attr-value"><span class="token punctuation">=</span>“url地址”</span> <span class="token attr-name">method</span><span class="token attr-value"><span class="token punctuation">=</span>“提交方式”</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span>“表单域名称”</span><span class="token punctuation">></span></span>
各种表单元素控件
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>form</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210402221058991.png" alt="在这里插入图片描述"></p>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">- 在我们写表单元素之前,应该有个表单域把他们进行包含.
- 表单域是form标签.
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<ul><li> <p><strong>表单控件</strong>(1.input表单元素2.select表单元素3.textarea元素)</p> <p><mark>input 输入表单元素</mark><img src="https://www.icode9.com/i/ll/?i=20210403091529202.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p> <pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">1. 刚打开页面就默认显示几个文字:可以给这些表单元素设置value 属性=“值”
2.一打开就让某个单选按钮或者复选框是选中状态:checked 属性:表示默认选中状态。 添加checked="checked"
3.radio (或者checkbox)如果是一组,我们必须给他们命名相同的名字
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre> </li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>radio<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>sex<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>男
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>radio<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>sex<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>女
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> < label> 标签
作用:点击区域内就可以选择
代码:< label for = "id"> < /label>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<p><mark>select下拉表单元素</mark></p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>选项1<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>选项2<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>选项3<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
...
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>select</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul></pre>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> 1.< select> 中至少包含一对< option>
2. 在<option> 中定义selected =“selected " 时,当前项为默认选中项。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p><mark>textarea文本域元素</mark></p>
<p>语法:</p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>textarea</span> <span class="token attr-name">rows</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>3<span class="token punctuation">"</span></span> <span class="token attr-name">cols</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>20<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
文本内容
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>textarea</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">1.通过<textarea> 标签可以轻松地创建多行文本输入框。
2.cols=“每行中的字符数”,rows=“显示的行数”,我们在实际开发中不会使用,都是用CSS 来改变大小。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p>简历案例:</p>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token doctype"><!DOCTYPE html></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>html</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>en<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>head</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>viewport<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>width=device-width, initial-scale=1.0<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>title</span><span class="token punctuation">></span></span>个人信息注册<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>title</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>head</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h4</span> <span class="token attr-name">align</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>center<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>个人介绍 <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h4</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>table</span> <span class="token attr-name">align</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>center<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>姓名<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text<span class="token punctuation">"</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>请输入您的姓名<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>性别:<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>radio<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>sex<span class="token punctuation">"</span></span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>nan<span class="token punctuation">"</span></span> <span class="token attr-name">checked</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>checked<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>label</span> <span class="token attr-name">for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>nan<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>images/up.jpg<span class="token punctuation">"</span></span>
<span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>10<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>男
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>radio<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>sex<span class="token punctuation">"</span></span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>nv<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>label</span> <span class="token attr-name">for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>nv<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>images/down.jpg<span class="token punctuation">"</span></span> <span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>10<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>女
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>出生日期:<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>--请选择年份--<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2000<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2001<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2002<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2003<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>--请选择月份--<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>1<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>3<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>4<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>select</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>--请选择日--<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>1<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>2<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>3<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>4<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>籍贯<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>北京<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>重庆<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span> <span class="token attr-name">selected</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>selected<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>山西<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>option</span><span class="token punctuation">></span></span>山东<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>option</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>select</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>个人爱好:<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>checkbox<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>love<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>唱歌
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>checkbox<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>love<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>画画
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>checkbox<span class="token punctuation">"</span></span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>love<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>跳舞
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>求职原因<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>textarea</span> <span class="token attr-name">cols</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>30<span class="token punctuation">"</span></span> <span class="token attr-name">rows</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>10<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>对公司的描述<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>textarea</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>手机号:<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>submit<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>reset<span class="token punctuation">"</span></span> <span class="token attr-name">value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>重新填写<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>了解更多<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>#<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>关注公司<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>附件<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>h5</span><span class="token punctuation">></span></span>选拔标准<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>h5</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>ul</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>li</span><span class="token punctuation">></span></span>态度认真<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>li</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>li</span><span class="token punctuation">></span></span>阳光开朗<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>li</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>li</span><span class="token punctuation">></span></span>专业技能突出<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>li</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>ul</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>td</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>tr</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>table</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>html</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li><li style="color: rgb(153, 153, 153);">29</li><li style="color: rgb(153, 153, 153);">30</li><li style="color: rgb(153, 153, 153);">31</li><li style="color: rgb(153, 153, 153);">32</li><li style="color: rgb(153, 153, 153);">33</li><li style="color: rgb(153, 153, 153);">34</li><li style="color: rgb(153, 153, 153);">35</li><li style="color: rgb(153, 153, 153);">36</li><li style="color: rgb(153, 153, 153);">37</li><li style="color: rgb(153, 153, 153);">38</li><li style="color: rgb(153, 153, 153);">39</li><li style="color: rgb(153, 153, 153);">40</li><li style="color: rgb(153, 153, 153);">41</li><li style="color: rgb(153, 153, 153);">42</li><li style="color: rgb(153, 153, 153);">43</li><li style="color: rgb(153, 153, 153);">44</li><li style="color: rgb(153, 153, 153);">45</li><li style="color: rgb(153, 153, 153);">46</li><li style="color: rgb(153, 153, 153);">47</li><li style="color: rgb(153, 153, 153);">48</li><li style="color: rgb(153, 153, 153);">49</li><li style="color: rgb(153, 153, 153);">50</li><li style="color: rgb(153, 153, 153);">51</li><li style="color: rgb(153, 153, 153);">52</li><li style="color: rgb(153, 153, 153);">53</li><li style="color: rgb(153, 153, 153);">54</li><li style="color: rgb(153, 153, 153);">55</li><li style="color: rgb(153, 153, 153);">56</li><li style="color: rgb(153, 153, 153);">57</li><li style="color: rgb(153, 153, 153);">58</li><li style="color: rgb(153, 153, 153);">59</li><li style="color: rgb(153, 153, 153);">60</li><li style="color: rgb(153, 153, 153);">61</li><li style="color: rgb(153, 153, 153);">62</li><li style="color: rgb(153, 153, 153);">63</li><li style="color: rgb(153, 153, 153);">64</li><li style="color: rgb(153, 153, 153);">65</li><li style="color: rgb(153, 153, 153);">66</li><li style="color: rgb(153, 153, 153);">67</li><li style="color: rgb(153, 153, 153);">68</li><li style="color: rgb(153, 153, 153);">69</li><li style="color: rgb(153, 153, 153);">70</li><li style="color: rgb(153, 153, 153);">71</li><li style="color: rgb(153, 153, 153);">72</li><li style="color: rgb(153, 153, 153);">73</li><li style="color: rgb(153, 153, 153);">74</li><li style="color: rgb(153, 153, 153);">75</li><li style="color: rgb(153, 153, 153);">76</li><li style="color: rgb(153, 153, 153);">77</li><li style="color: rgb(153, 153, 153);">78</li><li style="color: rgb(153, 153, 153);">79</li><li style="color: rgb(153, 153, 153);">80</li><li style="color: rgb(153, 153, 153);">81</li><li style="color: rgb(153, 153, 153);">82</li><li style="color: rgb(153, 153, 153);">83</li><li style="color: rgb(153, 153, 153);">84</li><li style="color: rgb(153, 153, 153);">85</li><li style="color: rgb(153, 153, 153);">86</li><li style="color: rgb(153, 153, 153);">87</li><li style="color: rgb(153, 153, 153);">88</li><li style="color: rgb(153, 153, 153);">89</li><li style="color: rgb(153, 153, 153);">90</li><li style="color: rgb(153, 153, 153);">91</li><li style="color: rgb(153, 153, 153);">92</li><li style="color: rgb(153, 153, 153);">93</li><li style="color: rgb(153, 153, 153);">94</li><li style="color: rgb(153, 153, 153);">95</li><li style="color: rgb(153, 153, 153);">96</li><li style="color: rgb(153, 153, 153);">97</li><li style="color: rgb(153, 153, 153);">98</li><li style="color: rgb(153, 153, 153);">99</li><li style="color: rgb(153, 153, 153);">100</li><li style="color: rgb(153, 153, 153);">101</li><li style="color: rgb(153, 153, 153);">102</li><li style="color: rgb(153, 153, 153);">103</li><li style="color: rgb(153, 153, 153);">104</li><li style="color: rgb(153, 153, 153);">105</li><li style="color: rgb(153, 153, 153);">106</li><li style="color: rgb(153, 153, 153);">107</li><li style="color: rgb(153, 153, 153);">108</li><li style="color: rgb(153, 153, 153);">109</li><li style="color: rgb(153, 153, 153);">110</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403093517417.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t8"></a><a name="t8"></a><a id="3HTML5_333"></a>3.HTML5新增</h2>
<h3><a name="t9"></a><a name="t9"></a><a id="1HTML5__334"></a>(1)HTML5 新增的语义化标签</h3>
<ul><li>< header>:头部标签</li><li>< nav>:导航标签</li><li>< article>:内容标签</li><li>< section>:定义文档某个区域</li><li>< aside>:侧边栏标签</li><li>< footer>:尾部</li></ul>
<h3><a name="t10"></a><a name="t10"></a><a id="2_341"></a>(2)新增的多媒体标签</h3>
<ul><li> <p>音频:< audio><br> <img src="https://www.icode9.com/i/ll/?i=20210404114206359.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p> </li><li> <p>视频:< video><br> <img src="https://www.icode9.com/i/ll/?i=20210404114248160.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p> </li></ul>
<h3><a name="t11"></a><a name="t11"></a><a id="3input__347"></a>(3)新增的input 类型</h3>
<p><img src="https://www.icode9.com/i/ll/?i=2021040411451230.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h3><a name="t12"></a><a name="t12"></a><a id="4_349"></a>(4)新增的表单属性</h3>
<p><img src="https://www.icode9.com/i/ll/?i=2021040411472395.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h1><a name="t13"></a><a name="t13"></a><a id="CSS_352"></a>二.CSS</h1>
<h2><a name="t14"></a><a name="t14"></a><a id="1css_353"></a>1.css选择器</h2>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">在CSS 中,可以根据选择器的类型把选择器分为基础选择器和复合选择器,复合选择器是建立在基础选择器之上,对基本选择器进行组合形成的。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<h3><a name="t15"></a><a name="t15"></a><a id="1css_355"></a>(1)css基础选择器</h3>
<p><em>标签选择器、类选择器、id 选择器 、通配符选择器</em></p>
<ul><li><strong>1.标签选择器</strong></li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">p</span> <span class="token punctuation">{<!-- --></span>
属性:属性值<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<ul><li><strong>2.类选择器</strong></li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">.red</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">color</span><span class="token punctuation">:</span> red<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
(1)结构需要用class属性来调用class 类
(2)可以在标签class 属性中写多个类名
(3)多个类名中间必须用空格分开
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul></pre>
<ul><li><strong>3.id选择器</strong></li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">#nav</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">color</span><span class="token punctuation">:</span>red<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token punctuation">(</span>1<span class="token punctuation">)</span>HTML 元素以id 属性来设置id 选择器,CSS 中id 选择器以“#" 来定义。
<span class="token punctuation">(</span>2<span class="token punctuation">)</span>id 属性只能在每个HTML 文档中出现一次。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li></ul></pre>
<ul><li><strong>4.通配符选择器</strong></li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">*</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">margin</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span><span class="token property">padding</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
它表示选取页面中所有元素(标签)。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul></pre>
<div class="table-box"><table><thead><tr><th>基础选择器</th><th>作用</th><th>特点</th><th>使用情况</th><th>用法</th></tr></thead><tbody><tr><td>标签选择器</td><td>可以选出所有相同的标签</td><td>不能差异化选择</td><td>较多</td><td>p{};</td></tr><tr><td>类选择器</td><td>可以选出1个或多个标签</td><td>可以根据需求选择</td><td>非常多</td><td>.p{};</td></tr><tr><td>id选择器</td><td>一次只能选择1个标签</td><td>id属性只能在每个HTML文档出现一次</td><td>一般和js搭配</td><td>#nav{};</td></tr><tr><td>通配符选择器</td><td>选出所有的标签</td><td>选择的太多,有部分不需要</td><td>特殊情况使用</td><td>*{};</td></tr></tbody></table></div>
<h3><a name="t16"></a><a name="t16"></a><a id="2css_395"></a>(2)css复合选择器(引用选择器)</h3>
<p><img src="https://www.icode9.com/i/ll/?i=20210403205733194.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> 注意:</p>
<blockquote>
<p>链接伪类选择器按照LVHA的循顺序声明:link-:visited-:hover-:active。记忆法:love hate 或者lv 包包hao。</p>
</blockquote>
<p><img src="https://www.icode9.com/i/ll/?i=20210403211002819.png" alt="在这里插入图片描述"></p>
<h2><a name="t17"></a><a name="t17"></a><a id="2css_402"></a>2.css字体属性</h2>
<p><img src="https://www.icode9.com/i/ll/?i=20210403113547897.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t18"></a><a name="t18"></a><a id="3css_404"></a>3.css文本属性</h2>
<p><mark>(1)文本颜色</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
color:red<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403115509564.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> <mark>(2)装饰文本</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
text-decoration:underline;
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403113851704.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> <mark>(3)文本缩进</mark><br> <strong>首行缩进</strong>:</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">text-indent</span><span class="token punctuation">:</span> 10px<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token selector">p</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">text-indent</span><span class="token punctuation">:</span> 2em<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
1.px像素相对长度单位。像素px是相对于显示器屏幕分辨率而言的。
2.em是一个相对单位,就是当前元素1个文字的大小, 如果当前元素没有设置大小,则会按照父元素的1 个文字大小。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li></ul></pre>
<p>(4) <mark>行间距</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">p</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">line-height</span><span class="token punctuation">:</span> 26px<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
控制行高
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul></pre>
<p>(5)<mark>对齐方式</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">text-align</span><span class="token punctuation">:</span> center<span class="token punctuation">;</span> 居中
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403115843334.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t19"></a><a name="t19"></a><a id="4css_449"></a>4.css的引入方式</h2>
<ul><li>(1)内部样式表(嵌入式)</li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>style</span><span class="token punctuation">></span></span><span class="token style language-css">
<span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">color</span><span class="token punctuation">:</span> red<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>style</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li></ul></pre>
<ul><li>(2)行内样式表(行内式)</li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>div</span><span class="token style-attr language-css"><span class="token attr-name"> <span class="token attr-name">style</span></span><span class="token punctuation">="</span><span class="token attr-value"><span class="token property">color</span><span class="token punctuation">:</span> blue<span class="token punctuation">;</span> <span class="token property">font-size</span><span class="token punctuation">:</span> 12px<span class="token punctuation">;</span></span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>王俊凯<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>div</span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<ul><li>(3)外部样式表(链接式)</li></ul>
<pre class="prettyprint"><code class="prism language-html has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>css文件路径<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403205538780.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t20"></a><a name="t20"></a><a id="5css_471"></a>5.css元素显示模式</h2>
<p><img src="https://www.icode9.com/i/ll/?i=20210403211039115.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<ul><li>转换为块元素:display:block;</li><li>转换为行内元素:display:inline;</li><li>转换为行内块:display: inline-block;</li></ul>
<h2><a name="t21"></a><a name="t21"></a><a id="6css_477"></a>6.css背景</h2>
<p>(1)背景颜色</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background-color</span><span class="token punctuation">:</span>颜色值<span class="token punctuation">;</span>
<span class="token property">background-color</span><span class="token punctuation">:</span>transparent<span class="token punctuation">;</span> //透明色
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p>(2)背景图片</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background-image</span> <span class="token punctuation">:</span> none; //无背景
<span class="token property">background-image</span> <span class="token punctuation">:</span> url(../images/1.jpg<span class="token punctuation">)</span><span class="token punctuation">;</span> //图片地址
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p>(3)背景平铺</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background-repeat</span><span class="token punctuation">:</span> repeat | no-repeat | repeat-x | repeat-y<span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403212552289.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> (4)背景图片位置</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background-position</span><span class="token punctuation">:</span>x y<span class="token punctuation">;</span> //参数代表的意思是:x 坐标和y 坐标。可以使用方位名词或者精确单位
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210403215649294.png" alt="在这里插入图片描述"></p>
<p>(5)背景图像固定(背景附着)</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background-attachment</span> <span class="token punctuation">:</span>scroll<span class="token punctuation">;</span> //随对象内容滚动
<span class="token property">background-attachment</span> <span class="token punctuation">:</span>fixed<span class="token punctuation">;</span> //图像固定
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p>(6)背景图像复合写法</p>
<pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> background: -背景颜色 -背景图片地址 -背景平铺 -背景图像滚动 -背景图片位置;
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background</span><span class="token punctuation">:</span> transparent <span class="token url">url(image.jpg)</span> repeat-y fixed top <span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p>(7)背景颜色半透明</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">background</span><span class="token punctuation">:</span> <span class="token function">rgba</span><span class="token punctuation">(</span>0, 0, 0,.3<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p>最后一个参数是alpha 透明度,取值范围在0~1之间。<br> <img src="https://www.icode9.com/i/ll/?i=20210404081345563.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t22"></a><a name="t22"></a><a id="7css_523"></a>7.css三大特性</h2>
<p>(1)层叠性</p>
<ul><li> <pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> 样式冲突,遵循就近原则
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre> </li></ul>
<p>(2)继承性</p>
<ul><li> <pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">行高可以跟单位也可以不跟单位
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre> </li><li> <pre class="prettyprint"><code class="has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">没有手动指定文字大小,则会继承父亲的文字大小
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre> </li></ul>
<p>(3)优先级<br> <img src="https://www.icode9.com/i/ll/?i=20210404083843990.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t23"></a><a name="t23"></a><a id="8_533"></a>8.页面布局</h2>
<h3><a name="t24"></a><a name="t24"></a><a id="1_534"></a>(1)盒子模型</h3>
<p>CSS 盒子模型本质上是一个盒子,封装周围的HTML 元素,它包括:边框、外边距、内边距、和实际内容。</p>
<ul><li><mark>边框</mark></li></ul>
<p><img src="https://www.icode9.com/i/ll/?i=20210404085554612.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">border-style</span><span class="token punctuation">:</span>solid<span class="token punctuation">;</span> //实线
<span class="token property">border-style</span><span class="token punctuation">:</span>dashed<span class="token punctuation">;</span> //虚线
<span class="token property">border-style</span><span class="token punctuation">:</span>dotted<span class="token punctuation">;</span> //点线
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<ul><li><mark>内边距</mark><br> padding属性用于设置内边距,即边框与内容之间的距离。<br> <img src="https://www.icode9.com/i/ll/?i=20210404090318975.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> padding属性(简写属性)可以有一到四个值。</li></ul>
<p><img src="https://www.icode9.com/i/ll/?i=20210404090252924.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<ul><li><mark>外边距</mark><br> margin属性用于设置外边距,即控制盒子和盒子之间的距离。<br> <img src="https://www.icode9.com/i/ll/?i=20210404090706465.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></li></ul>
<blockquote>
<p>外边距可以让块级盒子水平居中,但是必须满足两个条件:<br> ①盒子必须指定了宽度(width)。<br> ②盒子左右的外边距都设置为auto 。margin: 0 auto;</p>
</blockquote>
<ul><li> <p>注意:以上方法是让块级元素水平居中,行内元素或者行内块元素水平居中给其父元素添加text-align:center 。</p> </li><li> <p><mark>圆角边框</mark></p> </li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">border-radius</span><span class="token punctuation">:</span>length<span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<ul><li>参数值可以为数值或百分比的形式。</li><li>分开写为:border-top-left-radius(左上角)、border-top-right-radius(右上角)、border-bottom-right-radius(右下角) 和border-bottom-left-radius(左下角)</li><li><mark>盒子阴影</mark><br> <img src="https://www.icode9.com/i/ll/?i=20210404092615514.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></li><li><mark>文字阴影</mark><br> <img src="https://www.icode9.com/i/ll/?i=20210404093019986.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></li></ul>
<h3><a name="t25"></a><a name="t25"></a><a id="2_571"></a>(2)浮动</h3>
<ul><li> <p>为什么需要清除浮动?</p> <p>①父级没高度。②子盒子浮动了。③影响下面布局了。<br> <img src="https://www.icode9.com/i/ll/?i=20210404093225269.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p> </li></ul>
<h3><a name="t26"></a><a name="t26"></a><a id="3_576"></a>(3)定位</h3>
<ul><li><mark>总结</mark><br> <img src="https://www.icode9.com/i/ll/?i=20210404093443330.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></li><li><mark>定位叠放次序</mark></li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">选择器</span><span class="token punctuation">{<!-- --></span> <span class="token property">z-index</span><span class="token punctuation">:</span> 1<span class="token punctuation">;</span> <span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<blockquote>
<p>1.如果属性值相同,则按照书写顺序,后来居上。<br> 2.数字后面不能加单位<br> 3.只有定位的盒子才有z-index 属性</p>
</blockquote>
<ul><li><mark>元素的显示与隐藏</mark></li></ul>
<p><strong>1.display 属性</strong></p>
<blockquote>
<p>display: none ;隐藏对象<br> display:block ;除了转换为块级元素之外,同时还有显示元素的意思。<br> 隐藏元素后,不占有原来的位置。</p>
</blockquote>
<p><strong>2.visibility 可见性</strong></p>
<blockquote>
<p>visibility:visible ; 元素可视<br> visibility:hidden; 元素隐藏<br> 隐藏元素后,继续占有原来的位置。</p>
</blockquote>
<p><strong>3.overflow 溢出显示隐藏</strong><br> <img src="https://www.icode9.com/i/ll/?i=20210404105858800.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2><a name="t27"></a><a name="t27"></a><a id="9css_601"></a>9.css用户界面样式</h2>
<p>(1)鼠标样式cursor</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">li</span> <span class="token punctuation">{<!-- --></span><span class="token property">cursor</span><span class="token punctuation">:</span> pointer<span class="token punctuation">;</span> <span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210404110645589.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"><br> (2)轮廓线outline</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">input</span> <span class="token punctuation">{<!-- --></span><span class="token property">outline</span><span class="token punctuation">:</span> none<span class="token punctuation">;</span> <span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<blockquote>
<p>给表单添加outline: 0; 或者outline: none; 样式之后,就可以去掉默认的蓝色边框。</p>
</blockquote>
<p>(3)防止拖拽文本域resize</p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">textarea</span><span class="token punctuation">{<!-- --></span> <span class="token property">resize</span><span class="token punctuation">:</span> none<span class="token punctuation">;</span><span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<h2><a name="t28"></a><a name="t28"></a><a id="10_verticalalign__620"></a>10. vertical-align 属性应用</h2>
<blockquote>
<p>vertical-align 属性经常用于设置图片或者表单(行内块元素)和文字垂直对齐。<br> 官方解释:用于设置一个元素的垂直对齐方式,但是它只针对于行内元素或者行内块元素有效。</p>
</blockquote>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">vertical-align</span> <span class="token punctuation">:</span> baseline | top | middle | bottom <span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><img src="https://www.icode9.com/i/ll/?i=20210404113003296.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<blockquote>
<p>vertical-align 属性设置为middle 就可以让文字和图片垂直居中对齐了。</p>
</blockquote>
<h2><a name="t29"></a><a name="t29"></a><a id="11_629"></a>11.溢出的文字省略号显示</h2>
<blockquote>
<p>(1). 先强制一行内显示文本*/white-space: nowrap; (默认normal 自动换行)<br> (2). 超出的部分隐藏overflow: hidden;<br> (3). 文字用省略号替代超出的部分text-overflow: ellipsis;</p>
</blockquote>
<h2><a name="t30"></a><a name="t30"></a><a id="12CSS3__633"></a>12.CSS3 的新特性</h2>
<h3><a name="t31"></a><a name="t31"></a><a id="1_634"></a>(1)属性选择器</h3>
<blockquote>
<p>属性选择器可以根据元素特定属性的来选择元素。这样就可以不用借助于类或者id选择器。</p>
</blockquote>
<p><img src="https://www.icode9.com/i/ll/?i=20210404115530298.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h3><a name="t32"></a><a name="t32"></a><a id="2_639"></a>(2)结构伪类选择器</h3>
<blockquote>
<p>结构伪类选择器主要根据<strong>文档结构</strong>来选择器元素,常用于根据父级选择器里面的子元素</p>
</blockquote>
<p><img src="https://www.icode9.com/i/ll/?i=20210404115721794.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81Mjc5MTI1Ng==,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<blockquote>
<ul><li>nth-child(n)选择某个父元素的一个或多个特定的子元素(重点)</li><li>n 可以是数字,关键字和公式</li></ul>
</blockquote>
<h3><a name="t33"></a><a name="t33"></a><a id="3_646"></a>(3)伪元素选择器</h3>
<p><img src="https://www.icode9.com/i/ll/?i=20210404120352292.png" alt="在这里插入图片描述"></p>
<h3><a name="t34"></a><a name="t34"></a><a id="42D_649"></a>(4)2D转换</h3>
<p><mark>移动:translate</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">translate</span><span class="token punctuation">(</span>x,y<span class="token punctuation">)</span><span class="token punctuation">;</span> //沿着X 和Y 轴移动元素
<span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">translateX</span><span class="token punctuation">(</span>n<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">translateY</span><span class="token punctuation">(</span>n<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul></pre>
<blockquote>
<ul><li>translate最大的优点:不会影响到其他元素的位置</li><li>translate中的百分比单位是相对于自身元素的translate:(50%,50%);</li><li>对行内标签没有效果</li></ul>
</blockquote>
<p><mark>旋转:rotate</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform</span><span class="token punctuation">:</span><span class="token function">rotate</span><span class="token punctuation">(</span>度数<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<blockquote>
<ul><li>rotate里面跟度数,单位是deg 比如rotate(45deg)</li><li>角度为正时,顺时针,负时,为逆时针</li><li>默认旋转的中心点是元素的中心点</li></ul>
</blockquote>
<p><mark>缩放:scale</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform</span><span class="token punctuation">:</span><span class="token function">scale</span><span class="token punctuation">(</span>x,y<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<blockquote>
<p>默认以中心点缩放的,而且不影响其他盒子</p>
</blockquote>
<p><mark>2D 转换中心点</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform-origin</span><span class="token punctuation">:</span> x y<span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><mark>2D 转换综合写法</mark></p>
<blockquote>
<p>1.同时使用多个转换,其格式为:transform: translate() rotate() scale() …等,<br> 2. 其顺序会影转换的效果。(先旋转会改变坐标轴方向)<br> 3. 同时有位移和其他属性的时候,记得要将位移放到最前面</p>
</blockquote>
<h3><a name="t35"></a><a name="t35"></a><a id="5_684"></a>(5)动画</h3>
<p><mark>动画的基本使用</mark></p>
<ul><li>用keyframes 定义动画</li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token atrule"><span class="token rule">@keyframes</span> 动画名称</span><span class="token punctuation">{<!-- --></span>
<span class="token selector">0%</span><span class="token punctuation">{<!-- --></span> <span class="token property">width</span><span class="token punctuation">:</span>100px<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token selector">100%</span><span class="token punctuation">{<!-- --></span> <span class="token property">width</span><span class="token punctuation">:</span>200px<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul></pre>
<ul><li>再使用(调用)动画</li></ul>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token selector">div</span> <span class="token punctuation">{<!-- --></span>
<span class="token property">width</span><span class="token punctuation">:</span> 200px<span class="token punctuation">;</span>
<span class="token property">height</span><span class="token punctuation">:</span> 200px<span class="token punctuation">;</span>
<span class="token property">background-color</span><span class="token punctuation">:</span>blue<span class="token punctuation">;</span>
<span class="token comment">/*调用动画*/</span>
<span class="token property">animation-name</span><span class="token punctuation">:</span> 动画名称<span class="token punctuation">;</span>
<span class="token comment">/*持续时间*/</span>
<span class="token property">animation-duration</span><span class="token punctuation">:</span> 持续时间<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li></ul></pre>
<p><mark>动画常用属性</mark></p>
<div class="table-box"><table><thead><tr><th>属性</th><th>描述</th></tr></thead><tbody><tr><td>@keyframes</td><td>规定动画。</td></tr><tr><td>animation</td><td>所有动画属性的简写属性,除了 animation-play-state 属性。</td></tr><tr><td>animation-name</td><td>规定 @keyframes 动画的名称。</td></tr><tr><td>animation-duration</td><td>规定动画完成一个周期所花费的秒或毫秒。默认是 0。</td></tr><tr><td>animation-timing-function</td><td>规定动画的速度曲线。默认是 “ease”。</td></tr><tr><td>animation-delay</td><td>规定动画何时开始。默认是 0。</td></tr><tr><td>animation-iteration-count</td><td>规定动画被播放的次数。默认是 1。</td></tr><tr><td>animation-direction</td><td>规定动画是否在下一周期逆向地播放。默认是 “normal”,alternate逆播放</td></tr><tr><td>animation-play-state</td><td>规定动画是否正在运行或暂停。默认是 “running”。</td></tr><tr><td>animation-fill-mode</td><td>规定当动画结束后状态,保持forwards回到起始backwards</td></tr></tbody></table></div>
<p><mark>动画简写属性</mark></p>
<blockquote>
<p>animation:动画名称 持续时间 运动曲线 何时开始 播放次数 是否反方向 动画起始或者结束的状态;</p>
</blockquote>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"> <span class="token property">animation</span><span class="token punctuation">:</span> myfirst 5s linear 2s infinite alternate<span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><mark>速度曲线细节</mark></p>
<blockquote>
<p>animation-timing-function:规定动画的速度曲线,默认是“ease”</p>
</blockquote>
<div class="table-box"><table><thead><tr><th>值</th><th>描述</th></tr></thead><tbody><tr><td>linear</td><td>动画从头到尾的速度是相同的。</td></tr><tr><td>ease</td><td>默认。动画以低速开始,然后加快,在结束前变慢。</td></tr><tr><td>ease-in</td><td>动画以低速开始。</td></tr><tr><td>ease-out</td><td>动画以低速结束。</td></tr><tr><td>ease-in-out</td><td>动画以低速开始和结束。</td></tr><tr><td>steps()</td><td>指定了时间函数中的间隔数量(步长)</td></tr></tbody></table></div>
<h3><a name="t36"></a><a name="t36"></a><a id="63D_740"></a>(6)3D转换</h3>
<p><mark>3D位移: translate3d(x,y,z)</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">translform</span><span class="token punctuation">:</span><span class="token function">translateX</span><span class="token punctuation">(</span>100px<span class="token punctuation">)</span><span class="token punctuation">;</span> //在x轴上移动,水平向右
<span class="token property">translform</span><span class="token punctuation">:</span><span class="token function">translateY</span><span class="token punctuation">(</span>100px<span class="token punctuation">)</span><span class="token punctuation">;</span> //在Y轴上移动,垂直向下
<span class="token property">translform</span><span class="token punctuation">:</span><span class="token function">translateZ</span><span class="token punctuation">(</span>100px<span class="token punctuation">)</span><span class="token punctuation">;</span> //在Z轴上移动,垂直屏幕
<span class="token property">transform</span><span class="token punctuation">:</span><span class="token function">translate3d</span><span class="token punctuation">(</span>x,y,z<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul></pre>
<p><mark>3D旋转: rotate3d(x,y,z)</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">rotateX</span><span class="token punctuation">(</span>60deg<span class="token punctuation">)</span> <span class="token function">rotateY</span><span class="token punctuation">(</span>60deg<span class="token punctuation">)</span> <span class="token function">rotateZ</span><span class="token punctuation">(</span>60deg<span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">rotate3d</span><span class="token punctuation">(</span>x,y,z<span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p><mark>透视: perspective</mark></p>
<p><em>透视写到被观察元素的父盒子上面</em></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;">perspective:500px<span class="token punctuation">;</span>
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li></ul></pre>
<p><mark>3D呈现 transfrom-style</mark></p>
<pre class="prettyprint"><code class="prism language-css has-numbering" οnclick="mdcp.copyCode(event)" style="position: unset;"><span class="token property">transform-style</span> <span class="token punctuation">:</span>flat<span class="token punctuation">;</span> //默认值,子元素将不保留其 3D 位置。
<span class="token property">transform-style</span> <span class="token punctuation">:</span>preserve-3d<span class="token punctuation">;</span> //子元素将保留其 3D 位置,在父级元素定义,但是影响的是子元素。
<div class="hljs-button {2}" data-title="复制" data-report-click="{"spm":"1001.2101.3001.4259"}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li></ul></pre>
<p><mark>3D转换方法</mark></p>
<div class="table-box"><table><thead><tr><th>函数</th><th>描述</th></tr></thead><tbody><tr><td>matrix3d(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n)</td><td>定义 3D 转换,使用 16 个值的 4x4 矩阵。</td></tr><tr><td>translate3d(x,y,z)</td><td>定义 3D 转化。</td></tr><tr><td>translateX(x)</td><td>定义 3D 转化,仅使用用于 X 轴的值。</td></tr><tr><td>translateY(y)</td><td>定义 3D 转化,仅使用用于 Y 轴的值。</td></tr><tr><td>translateZ(z)</td><td>定义 3D 转化,仅使用用于 Z 轴的值。</td></tr><tr><td>scale3d(x,y,z)</td><td>定义 3D 缩放转换。</td></tr><tr><td>scaleX(x)</td><td>定义 3D 缩放转换,通过给定一个 X 轴的值。</td></tr><tr><td>scaleY(y)</td><td>定义 3D 缩放转换,通过给定一个 Y 轴的值。</td></tr><tr><td>scaleZ(z)</td><td>定义 3D 缩放转换,通过给定一个 Z 轴的值。</td></tr><tr><td>rotate3d(x,y,z,angle)</td><td>定义 3D 旋转。</td></tr><tr><td>rotateX(angle)</td><td>定义沿 X 轴的 3D 旋转。</td></tr><tr><td>rotateY(angle)</td><td>定义沿 Y 轴的 3D 旋转。</td></tr><tr><td>rotateZ(angle)</td><td>定义沿 Z 轴的 3D 旋转。</td></tr><tr><td>perspective(n)</td><td>定义 3D 转换元素的透视视图。</td></tr></tbody></table></div>
<h3><a name="t37"></a><a name="t37"></a><a id="7_787"></a>(7)浏览器私有前缀</h3>
<div class="table-box"><table><thead><tr><th>内核</th><th>私有前缀</th><th>应用浏览器</th></tr></thead><tbody><tr><td>Gecko内核</td><td>前缀为 -moz-</td><td>火狐浏览器</td></tr><tr><td>Webkit内核(谷歌内核)</td><td>前缀为 -webkit-</td><td>chrome浏览器、safari浏览器、360极速、猎豹、世界之窗</td></tr><tr><td>Trident内核</td><td>前缀为 -ms-</td><td>IE浏览器</td></tr><tr><td>Presto内核</td><td>前缀 -o-</td><td>opera浏览器</td></tr></tbody></table></div>
<p><strong>~ 喜欢的小伙伴点个赞呗,评论区留下宝贵的意见-谢谢呐♥~</strong></p>
<ul><li>如果文章当中有问题,或者有什么好的意见,大家可以指出来,一起学习。</li><li>本文版权归作者所有,欢迎转载。</li></ul>
</div><div><div></div></div>
<link href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/markdown_views-d7a94ec6ab.css" rel="stylesheet">
<link href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/style-f1c5feb645.css" rel="stylesheet">
</div>