HTML基础知识总结.docx

上传人:b****2 文档编号:18206225 上传时间:2023-08-13 格式:DOCX 页数:27 大小:45.37KB
下载 相关 举报
HTML基础知识总结.docx_第1页
第1页 / 共27页
HTML基础知识总结.docx_第2页
第2页 / 共27页
HTML基础知识总结.docx_第3页
第3页 / 共27页
HTML基础知识总结.docx_第4页
第4页 / 共27页
HTML基础知识总结.docx_第5页
第5页 / 共27页
HTML基础知识总结.docx_第6页
第6页 / 共27页
HTML基础知识总结.docx_第7页
第7页 / 共27页
HTML基础知识总结.docx_第8页
第8页 / 共27页
HTML基础知识总结.docx_第9页
第9页 / 共27页
HTML基础知识总结.docx_第10页
第10页 / 共27页
HTML基础知识总结.docx_第11页
第11页 / 共27页
HTML基础知识总结.docx_第12页
第12页 / 共27页
HTML基础知识总结.docx_第13页
第13页 / 共27页
HTML基础知识总结.docx_第14页
第14页 / 共27页
HTML基础知识总结.docx_第15页
第15页 / 共27页
HTML基础知识总结.docx_第16页
第16页 / 共27页
HTML基础知识总结.docx_第17页
第17页 / 共27页
HTML基础知识总结.docx_第18页
第18页 / 共27页
HTML基础知识总结.docx_第19页
第19页 / 共27页
HTML基础知识总结.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

HTML基础知识总结.docx

《HTML基础知识总结.docx》由会员分享,可在线阅读,更多相关《HTML基础知识总结.docx(27页珍藏版)》请在冰点文库上搜索。

HTML基础知识总结.docx

HTML基础知识总结

HTML基础知识总结

常见通用的代码

align——用于设置水平对齐方式,可用在


,,,
(即表格的标记中),

可定义文档中的分区或节(division/section)。

标签可以把文档分割为独立的、不同的部分。

它可以用作严格的组织工具,并且不使用任何格式与其关联。

如果用id或class来标记

,那么该标签的作用会变得更加有效。

是一个块级元素。

这意味着它的内容自动地开始一个新行。

实际上,换行是

固有的唯一格式表现。

可以通过

的class或id应用额外的样式。

不必为每一个

都加上类或id,虽然这样做也有一定的好处。

可以对同一个

元素应用class或id属性,但是更常见的情况是只应用其中一种。

这两者的主要差异是,class用于元素组(类似的元素,或者可以理解为某一类元素),而id用于标识单独的唯一的元素。

SPAN元素被加入到HTML中以允许网页制作者给出样式但无须附加在一个HTML的结构元素上。

SPAN在样式表中作为一个选择符使用,而且它也能接受STYLE、CLASS和ID属性。

SPAN是一个内联元素,所以它可以作为HTML中的元素如EM和STRONG使用。

最重要的差别在于虽然EM和STRONG带有结构的意义,但SPAN就没有这样的意义。

它的存在纯粹是应用样式,所以当样式表失效时它就没有任何的作用。

在行内定义一个区域,也就是一行内可以被划分成好几个区域,从而实现某种特定效果。

本身没有任何属性。

在CSS定义中属于一个行内元素,而

是块级元素,我们可能通俗地理解为
为大容器,大容器当然可以放一个小容器了,就是小容器。

CSS基础

一、样式表定义

CSS是CascadingStyleSheet的缩写。

译作「层叠样式表」。

是用于(增强)控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。

语法结构:

Selector{property:

value}选择器可分为HTML选择器、类选择器、ID选择器。

HTML选择器:

使用HTML本来就固有的标签来标识。

如P(段落)、SPAN(块)。

语法:

HTML选择器{property:

value;}

(2)类选择器(Class):

语法:

.类名{样式规则…}(3)ID选择器:

使用HTML元素的ID属性(不常用)。

语法:

#ID名{样式规则…}

二、样式表的结构标签之间的所有内容都是样式规则。

样式表一般位于与之间。

三、样式表的分类:

按其使用功能为分:

行内样式表、内嵌样式表、外部样式表。

(1)行内样式表:

使用style属性来定义。

如果希望某段文字和其它段落的文字显示风格不一样。

可选用

(2)内嵌样式表:

内嵌样式只对某张网页起作用。

它是写在里面的。

.p1{color:

Red;font-size:

30px;}.p2{color:

Blue}我是中国人

我是美国人

(3)外部样式表:

如果希望多个页面甚至于整个网站所有页面都采用统一风格,可选用外部样式表。

根据样式文件与网页的关联方式,又分为两种:

链接外部样式表和导入样式表。

A链接外部样式表:

B导入样式表@importmycss.css

4、常用样式属性1字体属性Font:

(1)font-style:

设置字体样式

(2)font-size:

设置字体大小(3)font-family:

设置字体类型如:

宋体(4)font-weight:

normal|bold|bolder|lighter|number

2文本属性Text:

(1)text-align:

设置文本对齐方式。

(2)text-decoration:

none||underline||blink闪烁||overline上划线||line-through贯穿线

3背景属性Background:

(1)background-color:

设置背景颜色。

(2)background-image:

设置背景图像。

background-image:

url(图像地址)(3)background-repeat:

设置一个指定的背景图像如何被重复显示。

4定位属性position

(1)position:

static|absolute|relative。

static:

默认值。

无特殊定位,对象遵循HTML定位规则absolute:

将对象从文档流中流出,即将其转化为一个“层”,并使用left,right,top,bottom等属性相对于其最接近的一个最有定位设置的父对象进行绝对定位。

如果不存在这样的父对象,则依据body对象。

而其层叠通过z-index属性定义relative:

对象不可层叠,但将依据left,right,top,bottom等属性在正常文档流中偏移位置

(2)z-index:

auto|number设置对象的层叠顺序。

auto:

 遵从其父对象的定位number:

 无单位的整数值。

可为负数

5方框属性Box:

常用的方框属性有:

边界属性Margin、边框属性Border、填充属性Padding。

(1)边界属性Margin:

(1-1)margin-top设置对象的上边距(1-2)margin-right设置对象的右边距(1-3)margin-bottom设置对象的下边距(1-4)margin-left设置对象的左边距

(2)边框属性Border:

(2-1)border-style设置对象的样式

(2-2)border-width设置对象的宽度(3-3)border-color设置对象的颜色(3)填充属性Padding:

(1-1)padding-top设置对象与上边框之间的距离(1-2)padding-right设置对象右边框之间的距离(1-3)padding-bottom设置对象下边框之间的距离(1-4)padding-left设置对象左边框之间的距离

6表格属性Table:

(1)border-collapse:

separate|collapse。

separate:

 边框独立(标准HTML)collapse:

 相邻边被合并

7特殊样式A:

link{color:

red}:

未被访问的链接样式A:

visited{color:

green}:

已被访问的链接样式A:

hover{color:

yellow}:

Mouse悬停在链接上时的样式A:

active{color:

blue}:

Mouse正在按下时链接文字的样式

DOMDocumentObjectModel的缩写

W3CDOM被分为3个不同的级别:

核心DOM:

用于任何结构化文档的标准模型XMLDOM:

用于XML文档的标准模型HTMLDOM:

用于HTML文档的标准模型

1.什么是XMLDOM?

XMLDOM是:

用于XML的标准对象模型;用于XML的标准编程接口;中立于平台和语言;W3C的标准。

XMLDOM定义了所有XML元素的对象和属性,以及访问它们的方法(接口)。

换句话说:

XMLDOM是用于获取、更改、添加或删除XML元素的标准。

2.DOM节点的规定:

整个文档是一个文档节点、每个XML标签是一个元素节点、包含在XML元素中的文本是文本节点、每一个XML属性是一个属性节点

3.DOM节点树XMLDOM把XML文档视为一种树结构。

这种树结构被称为节点树。

父节点、子节点和同级节点:

父节点拥有子节点;位于相同层级上的子节点称为同级节点(兄弟或姐妹)。

在节点树中,顶端的节点成为根节点;根节点之外的每个节点都有一个父节点;节点可以有任何数量的子节点;叶子是没有子节点的节点;同级节点是拥有相同父节点的节点。

(结合上图即可理解)

4.DOM解析解析XML:

所有现代浏览器都内建了用于读取和操作XML的XML解析器。

解析器把XML读入内存,并把它转换为可被JavaScript访问的XMLDOM对象。

所有的解析器都含有遍历XML树、访问、插入及删除节点的函数。

通过微软的XML解析器加XML:

xmlDoc=newActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.load("books.xml");//xmlDoc.loadXML(txt);

代码解释:

第一行创建空的微软XML文档对象;第二行关闭异步加载,这样可确保在文档完整加载之前,解析器不会继续执行脚本;第三行告知解析器加载名为"books.xml"的文档;

注释:

loadXML()方法用于加载字符串(文本),而load()用于加载文件。

解析XML文件---一个跨浏览器的实例

下面的例子把XML文档("books.xml")载入XML解析器。

try{xmlDoc=newActiveXObject("Microsoft.XMLDOM");}//InternetExplorer

catch(e){try{xmlDoc=document.implementation.createDocument("","",null);}

catch(e){alert(e.message);}}try{xmlDoc.async=false;xmlDoc.load(dname);return(xmlDoc);}

catch(e){alert(e.message);}return(null);

5.DOM属性和方法

典型的DOM属性:

x.nodeNamex的名称;x.parentNodex的父节点;x.nodeValuex的值;x.childNodesx的子节点;x.attributesx的属性节点

XMLDOM方法:

x.getElementsByTagName(name)获取带有指定标签名称的所有元素

x.appendChild(node)向x插入子节点x.removeChild(node)从x删除子节点

注:

x是一个节点对象。

6.访问节点第一种:

通过使用getElementsByTagName()方法

getElementsByTagName()返回拥有指定标签名的所有元素。

语法:

node.getElementsByTagName("tagname");

实例:

返回x元素下的所有元素:</p><p>x.getElementsByTagName("title");</p><p>请注意,上面的例子仅返回x节点下的<title>元素。</p><p>要返回XML文档中的所有<title>元素,请使用:</p><p>xmlDoc.getElementsByTagName("title");因为xmlDoc就是文档本身(文档节点)。</p><p>第二种:</p><p>通过循环(遍历)节点树:</p><p>下面的代码循环根节点的子节点,同时也是元素节点。</p><p>xmlDoc=loadXMLDoc("books.xml");x=xmlDoc.documentElement.childNodes;</p><p>for(i=0;i<x.length;i++){if(x[i].nodeType==1){//Processonlyelementnodes(type1)document.write(x[</p> </div> <div class="readmore" onclick="showmore()" style="background-color:transparent; height:auto; margin:0px 0px; padding:20px 0px 0px 0px;"><span class="btn-readmore" style="background-color:transparent;"><em style=" font-style:normal">展开</em>阅读全文<i></i></span></div> <script> function showmore() { $(".readmore").hide(); $(".detail-article").css({ "height":"auto", "overflow": "hidden" }); } $(document).ready(function() { var dh = $(".detail-article").height(); if(dh >100) { $(".detail-article").css({ "height":"100px", "overflow": "hidden" }); } else { $(".readmore").hide(); } }); </script> </div> <script> var defaultShowPage = parseInt("20"); var id = "18206225"; var total_page = "27"; var mfull = false; var mshow = false; function DownLoad() { window.location.href='https://m.bingdoc.com/d-18206225.html'; } function relate() { var reltop = $('#relate').offset().top-50; $("html,body").animate({ scrollTop: reltop }, 500); } </script> <div id="relate" class="container" style="padding:0px 0px 15px 0px; margin-top:20px; border:solid 1px #dceef8"> <div style=" font-size: 16px; background-color:#e5f0f7; margin-bottom:5px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px;">相关资源</div> <div id="relatelist" style="padding-left:5px;"> <ul> <li><em class="pdf"/></em><a target="_parent" href="https://m.bingdoc.com/p-3437307.html" title="HTML知识点总结.pdf">HTML知识点总结.pdf</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-4954879.html" title="HTML知识点总结.docx">HTML知识点总结.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-11906304.html" title="HTML知识点总结.docx">HTML知识点总结.docx</a> </li><li><em class="doc"/></em><a target="_parent" href="https://m.bingdoc.com/p-727302.html" title="HTML基础知识点总结.doc">HTML基础知识点总结.doc</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-3233232.html" title="HTML基础知识点总结.docx">HTML基础知识点总结.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-15063751.html" title="HTML知识点学习总结.docx">HTML知识点学习总结.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-15756202.html" title="html+css+javascript知识点总结.docx">html+css+javascript知识点总结.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-14499152.html" title="HTML知识点汇总.docx">HTML知识点汇总.docx</a> </li><li><em class="pdf"/></em><a target="_parent" href="https://m.bingdoc.com/p-5980329.html" title="HTML知识点总结资料下载.pdf">HTML知识点总结资料下载.pdf</a> </li><li><em class="doc"/></em><a target="_parent" href="https://m.bingdoc.com/p-977020.html" title="HTML基础知识点总结Word格式.doc">HTML基础知识点总结Word格式.doc</a> </li> </ul> </div> </div> <div class="container" style="padding:0px 0px 15px 0px; margin-top:20px; border:solid 1px #dceef8"> <div style=" font-size: 16px; background-color:#e5f0f7; margin-bottom:5px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px;">猜你喜欢</div> <div id="relatelist" style="padding-left:5px;"> <ul> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534203.html" target="_parent" title="投资性房地产课后习题文档格式.docx">投资性房地产课后习题文档格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534204.html" target="_parent" title="我国房地产信托经营的发展模式文档格式.docx">我国房地产信托经营的发展模式文档格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534205.html" target="_parent" title="小农水施工管理报告文档格式.docx">小农水施工管理报告文档格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534206.html" target="_parent" title="小学语文阅读教案Word文档下载推荐.docx">小学语文阅读教案Word文档下载推荐.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534207.html" target="_parent" title="学年度北京门头沟区九年级英语二模WORD版含答案Word格式.docx">学年度北京门头沟区九年级英语二模WORD版含答案Word格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534208.html" target="_parent" title="研究生毕业德智体总结docWord文档格式.docx">研究生毕业德智体总结docWord文档格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534209.html" target="_parent" title="医学免疫学期末考试试题及答案Word格式.docx">医学免疫学期末考试试题及答案Word格式.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534210.html" target="_parent" title="应用文写作附件格式Word文档下载推荐.docx">应用文写作附件格式Word文档下载推荐.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-8534211.html" target="_parent" title="语法知识经济生活通货膨胀的真题汇编含答案Word格式.docx">语法知识经济生活通货膨胀的真题汇编含答案Word格式.docx</a></li> </ul> </div> </div> <div style=" font-size: 16px; background-color:#e5f0f7; margin-top:20px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px; margin-bottom:10px;"> 相关搜索</div> <div class="widget-box pt0" style="border: none; padding:0px 5px;"> <ul class="taglist--inline multi"> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=HTML">HTML</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86">基础知识</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e6%80%bb%e7%bb%93">总结</a></li> </ul> </div> <div style=" font-size: 16px; background-color:#e5f0f7; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px; margin-bottom:10px;"> 资源标签</div> <div class="widget-box pt0" style="border: none; padding:0px 5px;"> <ul class="taglist--inline multi"> <li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/htmlzhishidianzongjie.html" >HTML知识点总结</a></li><li class="tagPopup"><a class="tag tag1" href="https://m.bingdoc.com/mark/htmljichuzhishidianzongjie.html" >HTML基础知识点总结</a></li><li class="tagPopup"><a class="tag tag2" href="https://m.bingdoc.com/mark/jichuzhishizongjie.html" >基础知识总结</a></li><li class="tagPopup"><a class="tag tag3" href="https://m.bingdoc.com/mark/htmljichuzhishi.html" >HTML基础知识</a></li><li class="tagPopup"><a class="tag tag4" href="https://m.bingdoc.com/mark/wordexceljichuzhishizongjie.html" >WordExcel基础知识总结</a></li><li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/sepujichuzhishizongjie.html" >色谱基础知识总结</a></li><li class="tagPopup"><a class="tag tag1" href="https://m.bingdoc.com/mark/jiechujichuzhishizongjie.html" >接触基础知识总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag1" href="https://m.bingdoc.com/mark/zhishidianzongjie.html">知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag2" href="https://m.bingdoc.com/mark/zhishidianzongjie.html">知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag3" href="https://m.bingdoc.com/mark/zongjierevitzhishidian.html">总结revit知识点</a></li> <li class="tagPopup"><a target="_parent" class="tag tag4" href="https://m.bingdoc.com/mark/chenhunzhishidianzongjie.html">晨昏知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag0" href="https://m.bingdoc.com/mark/unit2ithinkthatmooncakesaredeliciouszhishidianzongjie.html">Unit2Ithinkthatmooncakesaredelicious知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag1" href="https://m.bingdoc.com/mark/zhishidianzongjie.html">知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag2" href="https://m.bingdoc.com/mark/cadzhishidianzongjie.html">CAD知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag3" href="https://m.bingdoc.com/mark/zhishidianzongjie.html">知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag4" href="https://m.bingdoc.com/mark/zhishidianzongjie.html">知识点总结</a></li> <li class="tagPopup"><a target="_parent" class="tag tag0" href="https://m.bingdoc.com/mark/accaf7zhishidianzongjie.html">ACCAF7知识点总结</a></li> </ul> </div> <br /> <div > 当前位置:<a target="_parent" href="https://m.bingdoc.com/">首页</a> > <a href="https://m.bingdoc.com/booklist-00015.html">法律文书</a><span> > </span><a href="https://m.bingdoc.com/booklist-0001500002.html">判决书</a> </div> <br /> <div class="cssnone"> <iframe title="来源" src="https://m.bingdoc.com/BookRead.aspx?id=ZmuOXTWXGzPGJ4APkeEX2Q%3d%3d&parto=mu1kXHXW9hqHhnnX6oOZwRQPQZCw89GCM9fp7X51BqkJiTEk7ORoRn8XgNqJHncoC3F0G3hAJSG%2biRd34W24GJDGbDNodNj%2bJFOm3Rtg0nwUdov4sFcc%2bUYkfKbZJDmJuoC3HcEfU6s3HJX1yhnFAtUGR37RZ8ccyUygewGuadKGtahZeDKsbJclVo446yqiDekcXyK299bzOjuakdmmPD6P3u2fIzCM" frameborder="0" style="width: 0px; height: 0px"> </iframe> </div> <span id="LabelScript"></span> <script src="https://mstatic.bingdoc.com/JS/bootstrap-collapse.js"></script> </form> <div class="siteInner_bg" style="margin-top: 40px; border: solid 0px red; margin-left: 0px; margin-right: 0px;"> <div class="siteInner"> <p style="text-align: center;">copyright@ 2008-2023 冰点文库 网站版权所有</p><p style="text-align: center;">经营许可证编号:<a href="http://beian.miit.gov.cn/" target="_blank">鄂ICP备19020893号-</a>2</p><script>var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f82ede2a6dd69d4ed35205d3eb25b840"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();</script> </div> </div> <div class="trnav clearfix" id="navcontent" style="display: none; background-color:#3a71b1; "> <div class="trlogoside" id="navlogo" style="display: none;"> <a href="https://m.bingdoc.com/" title="冰点文库"><img src="https://www.bingdoc.com/images/logo_bd.png" alt="冰点文库"></a> <div class="trnavclose" id="navclose"> <span></span> </div> </div> <div class="navcontainer"> <div class="row"> <ul class="nav navbar-nav trnavul headercontent" id="navigation" style="margin:20px 0 0px;"> <li><a target="_parent"href="https://m.bingdoc.com/login.aspx">登录</a></li> <li><a target="_parent"href="https://m.bingdoc.com/">首页 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/booklist-0.html">资源分类 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/UserManage/Recharge.aspx?f=0"><img src="https://m.bingdoc.com/images/s.gif" alt="new" class="hottip1">升级会员 <img src="https://www.bingdoc.com/FileUpload/Images/48520fea-bc98-41ae-b183-84689c7075c9.gif" alt="new" class="hottip"></a></li> <li><a target="_parent"href="https://m.bingdoc.com/newslist.html">通知公告 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/h-0.html">帮助中心 </a></li> </ul> </div> </div> </div> <script type="text/javascript"> function stopPropagation(e) { var ev = e || window.event; if (ev.stopPropagation) { ev.stopPropagation(); } else if (window.event) { window.event.cancelBubble = true;//兼容IE } } $("#navmore").click(function (e) { $("#navcontent").show(); $("#navlogo").show(); stopPropagation(e); var navcontentwidth = $("#navcontent").width(); $('#navcontent').css({ 'right': '-' + navcontentwidth + 'px' }); $("#navcontent").show().animate({ "right": 0 }, 300); }); $(document).bind('click', function () { var navcontentwidth = $("#navcontent").width(); $("#navcontent").animate({ 'right': '-' + navcontentwidth + 'px' }, 300, function () { $("#navcontent").hide(); }); $("#navlogo").fadeOut(300); }); $("#navcontent").click(function (e) { stopPropagation(e); }); $("#navclose").click(function (e) { var navcontentwidth = $("#navcontent").width(); $("#navcontent").animate({ 'right': '-' + navcontentwidth + 'px' }, 300, function () { $("#navcontent").hide(); }); $("#navlogo").fadeOut(300); }); </script> <script> function BaseShare(title, desc, imgUrl) { var link = "https://m.bingdoc.com/p-18206225.html"; if (wx) { wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: 'wx3a9604896163fa38', // 必填,公众号的唯一标识 timestamp: '1727903760', // 必填,生成签名的时间戳 nonceStr: '9872ED9FC22FC182D371C3E9ED316094', // 必填,生成签名的随机串 signature: 'ddecf3693eb9d1325f897bdad6160dd416db6369',// 必填,签名,见附录1 jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'hideMenuItems'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 //openTagList: ["wx-open-launch-weapp"]//H5打开小程序 }); wx.ready(function () { //需在用户可能点击分享按钮前就先调用 wx.hideMenuItems({// 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3 menuList: ['menuItem:share:qq', 'menuItem:favorite', 'menuItem:share:QZone', 'menuItem:share:email', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:delete', 'menuItem:editTag', 'menuItem:share:facebook', 'menuItem:share:weiboApp', 'menuItem:share:brand'] }); var shareData = { title: title, // 分享标题 desc: desc,//这里请特别注意是要去除html link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: imgUrl, // 分享图标 }; wx.updateAppMessageShareData(shareData);//1.4 分享到朋友 wx.updateTimelineShareData(shareData);//1.4分享到朋友圈 }); } } function BaseShare(title, desc, imgUrl, link) { if (link=="") link = "https://m.bingdoc.com/p-18206225.html"; if (wx) { wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: 'wx3a9604896163fa38', // 必填,公众号的唯一标识 timestamp: '1727903760', // 必填,生成签名的时间戳 nonceStr: '9872ED9FC22FC182D371C3E9ED316094', // 必填,生成签名的随机串 signature: 'ddecf3693eb9d1325f897bdad6160dd416db6369',// 必填,签名,见附录1 jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'hideMenuItems'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 //openTagList: ["wx-open-launch-weapp"]//H5打开小程序 }); wx.ready(function () { //需在用户可能点击分享按钮前就先调用 wx.hideMenuItems({// 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3 menuList: ['menuItem:share:qq', 'menuItem:favorite', 'menuItem:share:QZone', 'menuItem:share:email', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:delete', 'menuItem:editTag', 'menuItem:share:facebook', 'menuItem:share:weiboApp', 'menuItem:share:brand'] }); var shareData = { title: title, // 分享标题 desc: desc,//这里请特别注意是要去除html link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: imgUrl, // 分享图标 }; wx.updateAppMessageShareData(shareData);//1.4 分享到朋友 wx.updateTimelineShareData(shareData);//1.4分享到朋友圈 }); } } </script> <script> $(document).ready(function () { var arr = $(".headercontent"); for (var i = 0; i < arr.length; i++) { (function (index) { var url = "https://m.bingdoc.com/header.aspx"; $.get(url + "?t=" + (new Date()).valueOf(), function (d) { try { arr.eq(index).empty().html(d); } catch (e) { } try { arr.html(d); } catch (e) { } }); })(i); } }); </script> <script src="https://mstatic.bingdoc.com/js/jquery.lazyload.js"></script> <script charset="utf-8"> $("img.lazys").lazyload({ threshold: 200, effect: "fadeIn" }); </script> </body> </html>