<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Mon, 04 May 2026 19:35:06 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[只需一行代码，任意网页秒变可编辑！ document.designMode = &quot;on&quot;;]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2994]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 12 Apr 2025 15:17:41 +0800</pubDate> 
      <description><![CDATA[打开浏览器控制台（F12），复制粘贴这行代码，回车即可。<br /><div class="code">document.designMode = &quot;on&quot;;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2994]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ueditor 上传视频丢失src的解决方法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2976]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 15 Jul 2024 16:08:21 +0800</pubDate> 
      <description><![CDATA[p.s. ueditor上传视频后，切换到html模式会发现video的src丢失了，这是因为配置白名单缺少html标签过滤了，需要加上html标签和相关属性。<br /><br /><br />修改 udeitor.config.js 的 白名单，可以搜索 whitList， 然后修改以下代码：<br /><div class="code">img:    [&#39;src&#39;, &#39;alt&#39;, &#39;title&#39;, &#39;width&#39;, &#39;height&#39;, &#39;id&#39;, &#39;_src&#39;, &#39;loadingclass&#39;, &#39;class&#39;, &#39;data-latex&#39;,&#39;style&#39;,&#39;_url&#39;],//加了style和_url<br />video:  [&#39;autoplay&#39;, &#39;controls&#39;, &#39;loop&#39;, &#39;preload&#39;, &#39;src&#39;, &#39;height&#39;, &#39;width&#39;, &#39;class&#39;, &#39;style&#39;,&#39;id&#39;],//加了id</div><br /><br /><a href="https://www.cnblogs.com/modou/p/7833785.html" title="https://www.cnblogs.com/modou/p/7833785.html" target="_blank">https://www.cnblogs.com/modou/p/7833785.html</a>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2976]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[css 伪类]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2973]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 28 May 2024 14:25:04 +0800</pubDate> 
      <description><![CDATA[CSS伪类<br /><br />是一种特殊的类选择符，它们允许根据元素的特定状态来应用样式。这些状态可以是基于用户与文档的交互，如鼠标悬停、元素被点击或聚焦等。伪类不能像普通类那样随意命名，而是由CSS预定义的。以下是一些常见的CSS伪类：<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; :link  和 :visited  ：分别用于未访问和已访问的超链接。<br /> &nbsp; &nbsp; &nbsp; &nbsp; :hover：当用户将鼠标指针悬停在元素上时应用。<br /> &nbsp; &nbsp; &nbsp; &nbsp; :active：当元素被点击但还没有被释放时应用。<br /> &nbsp; &nbsp; &nbsp; &nbsp; :focus：当元素获得焦点时，如输入框被点击或文本框被选中时。<br /> &nbsp; &nbsp; &nbsp; &nbsp; :first-child 、:last-child、:nth-child(n)：分别用于选择元素的第一个、最后一个或第n个孩子。<br /> &nbsp; &nbsp; &nbsp; &nbsp; :first-of-type、:last-of-type、:nth-of-type(n)：分别用于选择同类型元素的第一个、最后一个或第n个。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2973]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[jQuery简单易用的网页内容打印插件jQuery.print]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2970]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 10 May 2024 15:59:41 +0800</pubDate> 
      <description><![CDATA[使用该网页打印插件要引入jQuery和jquery.print.js文件。<div class="code">&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.print.js&quot;&gt;&lt;/script&gt;</div><br /><br /><b> 打印内容</b><br />可以像下面这样使用来打印页面内容。<br /><b>$(&quot;#myElementId&quot;).print(/*options*/);</b><br />或者：<br /><b>$.print(&quot;#myElementId&quot; /*, options*/);</b><br /><br /><br /><b> 配置参数</b><br />你可以在调用打印方法时传入一些参数：<div class="code">$(&quot;#myElementId&quot;).print({<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; globalStyles: true,</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2970]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[jquery设置display失效问题，当样式中存在!important时无法使用css()、show()或hide()]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2964]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 13 Apr 2024 22:27:09 +0800</pubDate> 
      <description><![CDATA[如果使用!important在你的样式中，比如display: none !important，此时就不能用show()了<br /><br />但是我在查阅资料时发现有这样的解释,<br /><div class="code">If using !important in your styles, such as display: none !important, it is necessary to override the style using .css(&#39;display&#39;, &#39;block !important&#39;) should you wish for .show() to function correctly.</div><br /><br />这其实是不对的(也许是因为jquery版本不同的原因)<br /><br />我查了下官方文档并测试了下,应该是这样:<br />第一种方法，直接设置style，不能用.css()和.prop()<div class="code">$(&quot;#a1&quot;).attr(&quot;style&quot;,&quot;display:block !important&quot;);</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2964]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[让DIV的滚动条自动滚动到最底部的3种方法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2923]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 08 Apr 2023 15:08:18 +0800</pubDate> 
      <description><![CDATA[要制作一个在线聊天的程序，在做最后的修饰时，需要对获得的信息即时滚动以保证用户总能看到最新消息。<br /><br />聊天程序是基于AJAX设计的，没有用框架，消息容器是一个DIV，所以问题就在于如何控制DIV的滚动条。<br /><br />网上有资料介绍说通过设置scrollTop属性来控制滚动条位置，具体可参见：<br /><a href="http://hi.baidu.com/chen1345789/blog/item/de727bfb45587b176d22eba1.html" title="http://hi.baidu.com/chen1345789/blog/item/de727bfb45587b176d22eba1.html" target="_blank">http://hi.baidu.com/chen1345789/blog/item/de727bfb45587b176d22eba1.html</a><br /><br />但同样的代码拿到我这里却完全失效，又仔细查了下资料说XHTML标准下scrollTop的值恒为0，解决办法是使用document.documentElement.scrollTop代替document.body.scrollTop，讲了半天所解决的是整个页面的滚动条。这个方法我是用不了了，因为不是框架结构，所以不可能用body的滚动条控制浏览信息。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2923]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[如何在CSS实现段落首行缩进，但是图片不缩进]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2900]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 13 Dec 2022 14:13:16 +0800</pubDate> 
      <description><![CDATA[text-indent可以使得容器内首行缩进一定单位。比如中文段落一般每段前空两个汉字。<br /><div class="code">#content {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; text-indent: 28px;<br />}</div>通常段落&lt;p&gt;内会有图片，图片也会随着缩进2个单位，原本居中的图片就会整体靠右，影响排版，有什么办法可以解决这个问题呢，其实text-indent有个属性，其内部元素遇到float或者display: block后就不继承外部这个缩进的属性了，也就是说，只要给图片加上float或者display: block的 CSS 属性后，图片的缩进会自动失效，如果段落里设置了图片居中也会失效，需要重新写个margin:0 auto，写法如下<br /><div class="code">#content img {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; display: block; margin: 0 auto;<br />}</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2900]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[搜狗浏览器UTF-8 html网页引入utf8编码js文件默认为GBK而乱码问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2853]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 05 May 2022 17:09:50 +0800</pubDate> 
      <description><![CDATA[一开始js是gbk编码，改为utf-8后清除浏览器缓存后还是乱码。而其他浏览器（chrome,firefox皆正常）<br />重新启动浏览器生效，不乱码了，但是仍然不知道sogou浏览器乱码原因]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2853]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[layer.open 设置自定义对话框内容，设置多个按钮和自定义颜色]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2849]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 04 May 2022 09:46:12 +0800</pubDate> 
      <description><![CDATA[p.s. 自定义样式demo-class，可以修改3个按钮的颜色<br /><div class="code">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; layer.open({<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; skin: &#39;demo-class&#39;,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content: &#39;自定义内容确认提交？&#39;,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; btn: [&quot;按钮1&quot;, &quot;按钮2&quot;, &quot;按钮3&quot;],<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes: function (index) {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;layer.close(index)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; btn2: function (index) {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;somefunciton...<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; btn3: function (index) {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;somefunciton...<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; });<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; //在页面style中定义按钮css样式<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &lt;style&gt;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2849]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[nodercms 基于 Node.js &amp; MongoDB]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2848]]></link> 
      <category><![CDATA[H5/JS/CSS]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 04 May 2022 00:12:43 +0800</pubDate> 
      <description><![CDATA[<a href="http://www.nodercms.com" title="http://www.nodercms.com" target="_blank">http://www.nodercms.com</a><br />基于 Node.js &amp; MongoDB<br />轻量级 CMS 内容管理系统]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2848]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
