我是靠谱客的博主 畅快冬瓜,最近开发中收集的这篇文章主要介绍HTML5学习笔记-常用标记,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

概念性小知识点

  • 语义化:根据内容的结构化(内容语义化),选择合适的标签(代码语义化)便于开发者阅读和写出更优雅的代码的同时让浏览器的爬虫和机器很好地解析
  • 双标记:<标签名></标签名>
  • 单标记:<标签名/>

常用的HTML标签

  • 标题标签 :h1 h2 h3 h4 h5 h6

    语义化标签 双标记
    Tips:请仅仅把标题标签用于标题文本。不要仅仅为了产生粗体文本而使用它们。请使用其它标签或 CSS 代替。
	<h1>一级标题</h1>
    <h2>二级标题</h2>
    <h3>三级标题</h3>
    <h4>四级标题</h4>
    <h5>五级标题</h5>
    <h6>六级标题</h6>

效果图:
标题标签效果图


  • 段落标签 p

语义化标签 双标记

	<p>段落元素由 p 标签定义。</p> 

效果图:
p标签显示样式


  • 格式化标签

标签名作用是否语义化单双标记
em让文本倾斜双标记
i让文本倾斜双标记
br换行单标记
strong加粗双标记
b加粗双标记
	<p>
	    <em>em标签让文本倾斜</em>
	    <br/> <!--换行标记-->
	    <strong>strong标签让文本加粗</strong>
	    <br/> <!--换行标记-->
	    <i>i标签让文本倾斜</i>
	    <br/> <!--换行标记-->
	    <b>b标签让文本加粗</b>
  </p> 

效果图:
格式化标签效果图


  • 图片标签 img

    语义化标签 双标记
    标签有两个必需的属性:src 属性 和 alt 属性。 此外常见的还有title,width,height 等属性。
属性作用
src定义显示图像的 URL,可以是相对路径,绝对路径或者http的URL等
alt定义图像的替代文本,若网页无法加载图片,则会用该属性定义的文本展示
title主题,鼠标悬浮图片上显示的文字
width设置图像的宽度
height定义图像的高度
	<img src="../img/cat.jpg" title="我是一只猫" alt="猜猜我是谁"
			 width="100" ,height="100" />
  	<img src="" title="我是一只猫" alt="猜猜我是谁" width="100" ,height="100" />

效果图:(鼠标悬浮在图片上会将title属性的内容展示出来,截图截不出来)
图片标签效果图


  • 列表标签

语义化标签 双标记

列表类型上级标签下级标签标签样例
有序列表olli<ol><li></li><ol>
无序列表ulli<ul><li></li><ul>
自定义列表dldt<dl><dt></dt><dd></dd></dl>
自定义列表dtdd展示效果的时可见dt是dd的行标签
	<!-- 无序列表 -->
    <ul type="cycle"> <!-- type="cycle" 将展示的圆圈改成实心展示,即可通过定义不同的type来改变列表的标记格式 -->
        <li>北京</li>
        <ul>
            <li>海淀区</li>
            <li>朝阳区</li>
        </ul>
        <li>上海</li>
        <li>广州</li>
        <li>深圳</li>
    </ul>
    <!-- 有序列表 -->
    <ol>
        <li>html</li>
        <li>css</li>
        <li>js</li>
    </ol>
    <!-- 自定义列表 -->
    <dl>
        <dt>自定义1</dt>
        <dd>11</dd>
        <dd>11</dd>
        <dt>自定义2</dt>
        <dd>22</dd>
        <dd>22</dd>
        <dt>自定义3</dt>
        <dd>33</dd>
        <dd>33</dd>
    </dl>

效果图:
列表标签效果图


  • 超链接标签

语义化标签 双标记

常见属性作用
href定义连接的目标
target定义被链接的目标在何处显示
target常用值作用
_blank在新窗口中打开被链接文档
_parent在父框架集中打开被链接文档
_self默认。在相同的框架中打开被链接文档
_top在整个窗口中打开被链接文档
framename在指定的框架中打开被链接文档
	<a href="http://www.baidu.com" target="_blank">点我进行搜索</a>

效果图:(点击后会跳转到一个加载百度首页的新网页)
超链接标签效果图


  • 表格标签

    布局 展示数据
标签名描述
table定义一个表格
caption定义表格的标题
thead定义表格的表头,可不加
tbody定义表格主体,可不加
tfoot定义表格的表尾,可不加
tr定义表格的一行,tr中包含多个td或者th
td定义表格的单元格,多个单元格组成一行,默认样式水平垂直居左显示
th定义表头单元格,默认样式让内容加粗居中
表格属性名称作用
border单元格之间的分隔线粗细
width
heigth
cellspacing单元格间距
cellpadding单元格内容与边框距离
align居中/居左/居右
单元格属性名称作用
width
heigth
align居中/居左/居右(水平)
valign居上/居中/居下 (垂直)
rowspan单元格垂直方向占多少行,例如设置rowspan=“2”,则该单元格会同时占据所在行和下一行的同列单元格
colspan单元格水平向占多少行,例如设置colspan=“2”,则该单元格会同时占据所在行当前单元格和右边单元格
	<table border="1">
    <caption>信息表格</caption>
    <thead>
      <tr>
        <th>first</th>
        <th>second</th>
        <th>third</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>1-1</td>
        <td>1-2</td>
        <td>1-3</td>
      </tr>
      <tr>
        <td rowspan="2">2-1</td>
        <td>2-2</td>
        <td>2-3</td>
      </tr>
      <tr>
        <td>3-2</td>
        <td>3-3</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td>last</td>
        <td>over</td>
      </tr>
    </tfoot>
  </table>

  <table border="1">
    <caption>信息表格</caption>
    <tr>
      <th>first</th>
      <th>second</th>
      <th>third</th>
    </tr>
    <tr>
      <td>1-1</td>
      <td>1-2</td>
      <td>1-3</td>
    </tr>
    <tr>
      <td>2-1</td>
      <td>2-2</td>
      <td>2-3</td>
    </tr>
    <tr>
      <td>3-1</td>
      <td>3-2</td>
      <td>3-3</td>
    </tr>
    <tr>
      <td>last</td>
      <td colspan="2">over</td>
    </tr>
  </table>

效果图:
表格标签效果图


  • 表单标签

form标签常用于收集数据,数据交互
input标签常用于用户输入数据

input标签类型作用
text定义单行的输入字段,用户可在其中输入文本。默认宽度为 20 个字符
button定义可点击按钮
checkbox定义复选框
file定义输入字段和 "浏览"按钮,供文件上传
hidden定义隐藏的输入字段
image定义图像形式的提交按钮
password定义密码字段。该字段中的字符被掩码
radio定义单选按钮
reset定义重置按钮,重置按钮会清除表单中的所有数据
submit定义提交按钮。提交按钮会把表单数据发送到服务器
常见标签属性作用
name表示表单元素名称,以后想携带数据到后台,需要设置name
value初始值
checked /checked=“checked” / checked=“true”表示是否被选中
selected下拉列表选项是否选中
readonly只读
disabled不能被操作,而且不能被提交
maxlength输入框最大长度
actionform表单提交动作
	<form action="###">
    <p>用户名 <input type="text" name="username" ></p>
    <p>密 码  <input type="password" name="password" id=""></p>
    <p>性别 <input type="radio" name="sex" id="" ><input type="radio" name="sex" id="" ></p>
    <p>
        擅长领域
        <!-- 数组 -->
        <input type="checkbox" name="major" id="">前端
        <input type="checkbox" name="major" id="" checked>后端
        <input type="checkbox" name="major" id="">数据库
        <input type="checkbox" name="major" id="">运维
    </p>
    <p>
        <select name="city" id="">
            <option value="bj">北京</option>
            <option value="nj" selected>南京</option>
            <option value="sh">上海</option>
        </select>
    </p>

    <p >
        <textarea name="words" id="" cols="30" rows="10">理由</textarea>
    </p>

    <p>
        <input type="file" name="file" id="">请上传文件
    </p>

    <p>
        <input type="hidden" name="hiddenDate">
    </p>

    <p>
        <input type="button" value="普通按钮"> 
        <input type="submit" value="提交按钮"> 
    </p>
    <p>
        <input type="email" name="email" id="">邮箱
        <!-- 会校验@符号 -->
    </p>
    <p>
        <input type="datetime" name="date" id="">日期
    </p>
    <p>
        <input type="image" src="../img/cat.jpg" alt="" width="100px" height="100px">
    </p>
</form>

效果图:
表单标签效果图


  • 表单标签

标签名称单双标签描述
div双标签该标签用于做网页布局
span双标签对局部范围的修饰
pre双标签根据内容来换行
s双标签删除线
del双标签删除线
	 <div>
	    头部
	</div>
	
	<div>主题</div>
	
	<div>尾部 <span style="color: red;">2020-07-21</span></div>
	
	<pre>
	    1
	    2
	    3
	    4
	</pre>
	
	<s>$1200</s>
	<del>$1200</del>

效果图:
其他部分标签效果图


使用语义化标签的好处

  • 增强代码可读性
  • 有利于团队协作
  • 用户体验

最后

以上就是畅快冬瓜为你收集整理的HTML5学习笔记-常用标记的全部内容,希望文章能够帮你解决HTML5学习笔记-常用标记所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(38)

相关文章

html常用语义化元素和全局属性整理WWW<HTML>元素全局属性<id>全局属性<class>全局属性<title>全局属性<lang>全局属性标签与元素<link>外部资源链接元素<a>内联元素<artice>块级元素<section>块级元素<nav>块级元素<aside>块级元素<h1~h6>块级元素<header>块级元素<footer>块级元素<address>块级元素<p>块级元素<hr>块级元素<pre>块级元素<blockquote>块级元素<ol>块级元素<ul>块级元素<l
html常用语义化元素和全局属性整理WWW元素全局属性全局属性全局属性全局属性<lang>全局属性标签与元素<link>外部资源链接元素<a>内联元素<artice>块级元素<section>块级元素<nav>块级元素<aside>块级元素<h1~h6>块级元素<header>块级元素<footer>块级元素<address>块级元素<p>块级元素<hr>块级元素<pre>块级元素<blockquote>块级元素<ol>块级元素<ul>块级元素<l</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/article/k-p-k_14_uzo_6_fx_13_z_2_5.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="/uploads/reation/bcimg6.png" alt="HTML5学习笔记-常用标记" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/article/k-p-k_14_uzo_6_fx_13_z_2_5.html">HTML5学习笔记-常用标记</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/article/k-p-k_14_uzo_6_fx_13_zcw.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="/uploads/reation/bcimg7.png" alt="HTML元素的分类" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/article/k-p-k_14_uzo_6_fx_13_zcw.html">HTML元素的分类</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/article/k-p-k_14_uzo_6_fx_13_zcx.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="/uploads/reation/bcimg8.png" alt="HTML5所有常用元素和属性HTML5所有常用元素和属性" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/article/k-p-k_14_uzo_6_fx_13_zcx.html">HTML5所有常用元素和属性HTML5所有常用元素和属性</a></h5> </div> <div class="col-sm-3 col-xs-6"> <a href="/article/k-p-k_14_uzo_6_fx_13_zcy.html" class="img-zoom"> <div class="embed-responsive embed-responsive-4by3"> <img src="/uploads/reation/bcimg9.png" alt="HTML5元素类型" class="embed-responsive-item"> </div> </a> <h5 class="text-center"><a href="/article/k-p-k_14_uzo_6_fx_13_zcy.html">HTML5元素类型</a></h5> </div> <!-- E 相关文章 --> </div> </div> <div class="clearfix"></div> </div> </div> <div class="panel panel-default" id="comments"> <div class="panel-heading"> <h3 class="panel-title">评论列表<small>共有 <span>0</span> 条评论</small></h3> </div> <div class="panel-body"> <div id="comment-container"> <!-- S 发表评论 --> <div id="postcomment"> <h3>发表评论 <a href="javascript:;"> <small>取消回复</small> </a></h3> <form action="/comment/post.html" method="post" id="postform"> <input type="hidden" name="__token__" value="7886bdb72e4116e7de3ee3890cfc5b13" /> <input type="hidden" name="type" value="archives"/> <input type="hidden" name="artid" value="351769"/> <input type="hidden" name="pid" id="pid" value="0"/> <div class="form-group"> <textarea name="content" class="form-control" disabled placeholder="请登录后再发表评论" id="commentcontent" cols="6" rows="5" tabindex="4"></textarea> </div> <div class="form-group"> <a href="/index/user/login.html" class="btn btn-primary">登录</a> <a href="/index/user/register.html" class="btn btn-outline-primary">注册新账号</a> </div> </form> </div> <!-- E 发表评论 --> </div> </div> </div> </main> <aside class="col-xs-12 col-md-4"> <!--@formatter:off--> <!-- S 关于作者 --> <div class="panel panel-default about-author no-padding" data-id="80556" itemProp="author" itemscope="" itemType="http://schema.org/Person"> <meta itemProp="name" content="畅快冬瓜"/> <meta itemProp="image" content="/assets/img/avatar.png"/> <meta itemProp="url" content="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_.html"/> <div class="panel-body no-padding"> <div class="author-card"> <div class="author-head" style="background-image:url('/assets/img/author-head.jpeg');"></div> <div class="author-avatar"> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_.html"> <img src="/assets/img/avatar.png"> </a> </div> <div class="author-basic"> <div class="author-nickname"> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_.html">畅快冬瓜</a> </div> <span class="text-muted"></span> </div> <div class="row author-statistics"> <div class="col-xs-4"> <div class="statistics-text">文章</div> <div class="statistics-nums"><a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_.html">5</a></div> </div> <div class="col-xs-4"> <div class="statistics-text">资源</div> <div class="statistics-nums"><a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_.html?type=soft">0</a></div> </div> <div class="col-xs-4"> <div class="statistics-text">加入时间</div> <div class="statistics-nums">2年前</div> </div> </div> </div> </div> </div> <!-- E 关于作者 --> <!--@formatter:on--> <div class="panel panel-blockimg"> </div> <!-- S 热门文章 --> <div class="panel panel-default hot-article"> <div class="panel-heading"> <h3 class="panel-title">热门文章</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num tag">1</span> </div> <div class="media-body"> <a class="link-dark" href="/article/k-p-k_14_u_7_ogfw_13__23__18_0.html" title="基于Jquery.history解决ajax的前进后退问题">基于Jquery.history解决ajax的前进后退问题</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">2</span> </div> <div class="media-body"> <a class="link-dark" href="/article/k-p-k_14_ujo_10_f0_13__23__14_x.html" title=" 如何建立一个 XML 的开发环境"> 如何建立一个 XML 的开发环境</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">3</span> </div> <div class="media-body"> <a class="link-dark" href="/article/k-p-k_14_uzo_6_fx_13_z_2_5.html" title="HTML5学习笔记-常用标记">HTML5学习笔记-常用标记</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">4</span> </div> <div class="media-body"> <a class="link-dark" href="/article/k-p-k_13_u_23_o_26_fw_13__7__10_w.html" title="java流压缩图片">java流压缩图片</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">5</span> </div> <div class="media-body"> <a class="link-dark" href="/article/k-p-k_13_u_23_ocf0_12__7_k1.html" title="redhat 6 配置 yum 源的两种方法">redhat 6 配置 yum 源的两种方法</a> </div> </div> </div> </div> <!-- E 热门文章 --> <!-- S 热门资讯 --> <div class="panel panel-default hot-article"> <div class="panel-heading"> <h3 class="panel-title">推荐资讯</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num tag">1</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogf1_14_j_18__27_.html" title="李想公布四季度目标:预计交付量将达到16-17万辆">李想公布四季度目标:预计交付量将达到16-17万辆</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">2</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogfx_14_z_14__27_.html" title="日本将迎来最强大AI超算!NVIDIA+软银联手打造">日本将迎来最强大AI超算!NVIDIA+软银联手打造</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">3</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogfx_14_j_14__27_.html" title="李子柒终于回归,4小时涨粉超200万">李子柒终于回归,4小时涨粉超200万</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">4</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogf2_14__23__6__27_.html" title="暖气费别忘交 国家气候中心:今年冬天较易出现强降温、强降雪">暖气费别忘交 国家气候中心:今年冬天较易出现强降温、强降雪</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">5</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogfz_13_zk_27_.html" title="下载次数破39万,CMU、Meta联合发布VQAScore文生图优化方案:Imagen3已采用背景介绍VQAScore:一种简单有效的评估指标VQAScore实验结果GenAI-Bench:由设计师收集的高难度文生图基准GenAI-Rank:用VQAScore来提升文生图表现">下载次数破39万,CMU、Meta联合发布VQAScore文生图优化方案:Imagen3已采用背景介绍VQAScore:一种简单有效的评估指标VQAScore实验结果GenAI-Bench:由设计师收集的高难度文生图基准GenAI-Rank:用VQAScore来提升文生图表现</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">6</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogfx_14_j_10__27_.html" title="李子柒粉丝过亿 停更期间拜访了许多非遗传人">李子柒粉丝过亿 停更期间拜访了许多非遗传人</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">7</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogf1_13_j_14__27_.html" title="苹果喊话iPhone 13和14钉子户换机 宋紫薇:苹果营销真接地气苹果向 iPhone 13 和 14 用户发出升级呼吁">苹果喊话iPhone 13和14钉子户换机 宋紫薇:苹果营销真接地气苹果向 iPhone 13 和 14 用户发出升级呼吁</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">8</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogfx_14_j_6__27_.html" title="撞劳斯莱斯货车司机儿子发声被指不感恩 女车主三天涨粉超90万">撞劳斯莱斯货车司机儿子发声被指不感恩 女车主三天涨粉超90万</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">9</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogf4_13__23_k_27_.html" title="iPhone 16系列首销4周销量不及15系列:果粉换机动力不足">iPhone 16系列首销4周销量不及15系列:果粉换机动力不足</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">10</span> </div> <div class="media-body"> <a class="link-dark" href="/news/k-p-k_13_u_7_ogf4_13__7__26__27_.html" title="开始执行!无有效认证证书电动自行车不能上牌、上路:限速25公里每小时等">开始执行!无有效认证证书电动自行车不能上牌、上路:限速25公里每小时等</a> </div> </div> </div> </div> <!-- E 热门资讯 --> <div class="panel panel-blockimg"> <a href="https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=2qwpuaqd" rel="nofollow" title="推荐企业服务器" target="_blank"> <img src="/uploads/store/aliyun-sidebar.png" class="img-responsive" alt=""> </a> </div> <!-- S 热门标签 --> <div class="panel panel-default hot-tags"> <div class="panel-heading"> <h3 class="panel-title">热门标签</h3> </div> <div class="panel-body"> <div class="tags"> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_12_u_7_ocfx_12__7_k_27_.html" class="tag"> <span>Windows 7</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_14_u_7_o_14_f4_14_jgx.html" class="tag"> <span>电脑常识</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_13_u_23_o_14_f5_14__7__10_z.html" class="tag"> <span>AJAX异步</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_13_u_23_okfy_14_zkz.html" class="tag"> <span>XML,开发环境</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_13_u_7_okf4_12__7_c1.html" class="tag"> <span>WEB</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_13_ujo_10_f2_13__7__6_0.html" class="tag"> <span>Other</span></a> <a href="/u/k-p-k_12_u_23_o_26_f1_13__7__2__27_/category/k-p-k_13_uzo_22_f4_13_j_26_1.html" class="tag"> <span>redhat</span></a> </div> </div> </div> <!-- E 热门标签 --> <!-- S 推荐下载 --> <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">推荐下载</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num tag">1</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_13_w_27__27_.html" title="VMware Workstation Pro 17.5.2 纯天然绿色完整版下载">VMware Workstation Pro 17.5.2 纯天然绿色完整版下载</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">2</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fz_14_w_27__27_.html" title="PhpStudy8.1小皮面板">PhpStudy8.1小皮面板</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">3</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_14_w_27__27_.html" title="火焰纹章 无双|官方中文|本体+1.5.0升补+5DLC | [NSP]">火焰纹章 无双|官方中文|本体+1.5.0升补+5DLC | [NSP]</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">4</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fz_14__10__27__27_.html" title="视频音频编辑软件 Adobe Premiere Pro 2020 绿色便携免费版">视频音频编辑软件 Adobe Premiere Pro 2020 绿色便携免费版</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">5</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fz_14__26__27__27_.html" title="Photoshop CS6 中文汉化精简版">Photoshop CS6 中文汉化精简版</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">6</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_13__10__27__27_.html" title="Adobe Fireworks CS6绿色精简版下载">Adobe Fireworks CS6绿色精简版下载</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">7</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_12__10__27__27_.html" title="Photoshop CS6 Extend 绿色增强版">Photoshop CS6 Extend 绿色增强版</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">8</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_13__26__27__27_.html" title="Adobe FireWorks cs5【FW cs5 】中文绿色版下载">Adobe FireWorks cs5【FW cs5 】中文绿色版下载</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">9</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fy_12__26__27__27_.html" title="Photoshop CS6中文精简版">Photoshop CS6中文精简版</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num tag">10</span> </div> <div class="media-body"> <a href="/soft/k-p-k_12_u_7_o_10_fz_12__10__27__27_.html" title="古龙风云录|中字-国语|Build.14142398-重要更新-狂雷陨落-剑破苍穹+DLC+修改器|解压即玩">古龙风云录|中字-国语|Build.14142398-重要更新-狂雷陨落-剑破苍穹+DLC+修改器|解压即玩</a> </div> </div> </div> </div> <!-- E 推荐下载 --> <div class="panel panel-blockimg"> <a href="/" target="_blank"><img src="/uploads/store/enterprisehost.png" class="img-responsive"/></a> </div> <div class="panel panel-blockimg"> <!-- You may also like --> </div> </aside> </div> </div> </main> <footer> <!-- S 底部版权 --> <div id="footer"> <div class="container"> <div class="row footer-inner"> <div class="col-xs-12"> <div class="pull-left"> <p>网站内容,均来自于用户原创和互联网,若有侵犯到您的权益请联系我们,核实删除。</p> <p>本站为非营利性网站,靠谱客的资源均来自网络收集整理,个人纯属学习交流之用,如有侵犯您的版权请与我联系(wx:kaopuke),我们会马上改正并在下载24小时内删除!</p> <p>Copyright © 2023 All Rights Reserved. <a href="https://beian.miit.gov.cn" rel="nofollow" target="_blank">黔ICP备17011320号-2</a> <a href="https://beian.mps.gov.cn/#/query/webSearch?code=52272602002071" rel="noreferrer" target="_blank">贵公网安备52272602002071</a></p> </div> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e749fb7b04b857116f3a8b682641b74d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <!-- E 底部版权 --> </footer> <div id="floatbtn"> <!-- S 浮动按钮 --> <a class="hover" href="/index/user/addarticle.html" target="_blank"> <i class="fa fa-paint-brush fa-lg"></i> <em>立即<br>投稿</em> </a> <div class="floatbtn-item floatbtn-share"> <i class="fa fa-share-alt fa-lg"></i> <div class="floatbtn-wrapper" style="height:50px;top:0"> <div class="social-share" data-initialized="true" data-mode="prepend"> <a href="#" class="social-share-icon icon-weibo" target="_blank"></a> <a href="#" class="social-share-icon icon-qq" target="_blank"></a> <a href="#" class="social-share-icon icon-qzone" target="_blank"></a> <a href="#" class="social-share-icon icon-wechat"></a> </div> </div> </div> <a id="back-to-top" class="hover" href="javascript:;"> <i class="fa fa-reply fa-lg"></i> <em>返回<br>顶部</em> </a> <!-- E 浮动按钮 --> </div> <script type="text/javascript" src="/assets/libs/jquery/dist/jquery.min.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/libs/bootstrap/dist/js/bootstrap.min.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/libs/art-template/dist/template-native.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/js/jquery.autocomplete.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/js/swiper.min.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/js/share.min.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/js/cms.js?v=1.0.2"></script> <script type="text/javascript" src="/assets/js/common.js?v=1.0.2"></script> <script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u6850766", container: "_upguagn2t8", async: true }); (window.slotbydup = window.slotbydup || []).push({ id: "u6850838", container: "_12s5gcmjcvx", async: true }); </script> <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" ></script> <!-- 复制 --> <script src="/static/tool/clipboard.min.js"></script> <script> //代码高亮溢出显示滚动条 $('.main-content pre').each(function(){ var code = $(this).text(); $(this).wrap('<div class="auto" style="overflow:auto; position:relative;"></div>'); $(this).before('<span class="copyCode">复制代码</span><textarea style="display:none;">'+code+'</textarea>'); $(this).removeAttr("style",""); // $(this).wrap('<pre><code></code></pre>'); }); $('.main-content .codebody').each(function(){ var code = $(this).text(); $(this).wrap('<div class="auto" style="overflow:auto; position:relative;"></div>'); $(this).before('<span class="copyCode">复制代码</span><textarea style="display:none;">'+code+'</textarea>'); // $(this).wrap('<pre><code></code></pre>'); }); function unescapeSpecialChars(str) { return str .replace(/</g, '<') .replace(/>/g, '>') .replace(/&/g, '&') .replace(/ /g, ' ') .replace(/"/g, '"') .replace(/'/g, '\''); } //复制代码 $('.copyCode').on('click',function(){ var txt = $(this).next().html(); txt = unescapeSpecialChars(txt); new ClipboardJS('.copyCode', {text: function() {return txt;}}); layer.msg('复制成功',{time:1000,offset:'100px'}); }); </script> <script> document.addEventListener("DOMContentLoaded", function() { const preElements = document.querySelectorAll("pre"); // 获取所有 <pre> 元素 preElements.forEach(pre => { const codeText = pre.innerHTML.trim(); // 获取代码块的内容 const lines = codeText.split("\n").length; // 计算代码行数 // 创建行号容器 const lineNumbers = document.createElement("div"); lineNumbers.className = 'line-numbers'; // 生成行号内容 let lineNumbersHtml = ''; for (let i = 1; i <= lines; i++) { lineNumbersHtml += i + '<br>'; } // 插入行号容器到 pre 元素中 lineNumbers.innerHTML = lineNumbersHtml; pre.appendChild(lineNumbers); // 保持代码块的格式化 pre.innerHTML = `<div class="line-numbers">${lineNumbersHtml}</div>` + `<div style="padding-left:40px;">${codeText}</div>`; }); }); </script> <style> .copyCode{ position:absolute; right:1px; z-index:999; background:rgba(255,255,255,0.5); border-bottom:1px solid #ddd; padding:2px 8px; font-size:11px !important; border-radius:4px; line-height:24px; cursor:pointer; } .copyCode:hover{ background:#fff; } pre code{ font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace; } .hljs { border-radius:4px; padding: 8px !important; } .hljs-ln td { padding: 2px 8px; } .hljs-ln-numbers { text-align: center; color: #abb2bf; background-color: #282c34; border-right: 1px solid #c5c5c5; vertical-align: top; } /* for block of code */ td .hljs-ln-code { padding-left: 5px; } pre { position: relative; padding-left: 5px; /* 为行号留出空间 */ background-color: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 4px; font-size: 14px; line-height: 1.5; overflow-x: auto; } /* 设置行号样式 */ pre .line-numbers { position: absolute; left: 0; top: 0; padding: 10px 10px; background-color: #f1f1f1; border-right: 1px solid #e1e1e1; text-align: right; user-select: none; color: #888; } </style> </body> </html>