<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>杰哥个人博客|杰哥博客|厦门杰哥|杰哥主页|杰哥个人网站|杰哥网站 - 网页设计代码</title><link>http://www.xmhjfb.com/</link><description>厦门杰哥 - </description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 91204</generator><language>zh-CN</language><copyright>Copyright 2008-2022 WWW.XMHJFB.COM Rights Reserved 闽ICP备16020319号 document.write(unescape(&amp;quot;%3Cspan id='cnzz_stat_icon_1067568'%3E%3C/span%3E%3Cscript src='https://s96.cnzz.com/stat.php%3Fid%3D1067568%26show%3Dpic' type='text/javascript'%3E%3C/script%3E&amp;quot;)); 闽公网安备 35078402010016号</copyright><pubDate>Thu, 12 Mar 2026 06:10:33 +0800</pubDate><item><title>用JavaScript实现网站自动跳转电脑PC端与手机端不同页面</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/133.html</link><pubDate>Mon, 23 Nov 2020 12:48:03 +0800</pubDate><guid>http://www.xmhjfb.com/post/133.html</guid><description><![CDATA[<p>JS代码添加到访问页面头部或者单独设置一个页面，然后设置我们需要跳转的PC和手机端URL或者页面。</p><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />function browserRedirect() {<br />var sUserAgent= navigator.userAgent.toLowerCase();<br />var bIsIpad= sUserAgent.match(/ipad/i) == &quot;ipad&quot;;<br />...</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/133.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=133</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=133&amp;key=c06e6654</trackback:ping></item><item><title>实现拼图滑动验证码代码样式</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/132.html</link><pubDate>Wed, 18 Nov 2020 14:47:43 +0800</pubDate><guid>http://www.xmhjfb.com/post/132.html</guid><description><![CDATA[<pre><code class="language-html hljs xml" id="copy_target_0"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>     <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>滑动拼图验证码<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>     <span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">&quot;stylesheet&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text/css&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;https://at.alicdn.com/t/font_1582902_u0zm91pv15i.css&quot;</span>&gt;</span>     <span class="hljs-tag">&lt;<span class="hljs-name">style</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text/css&quot;</span>&gt;</span><span class="css">         <span class="hljs-selector-class">.verify-slide-con</span>{ <span class="hljs-comment">/* 滑动拼图容器块 */</span>             <span class="hljs-attribute">width</span>: <span class="hljs-number">360px</span>;             <span class="hljs-attribute">padding</span>: <span class="hljs-number">10px</span> <span class="hljs-number">20px</span>;             <span class="hljs-attribute">border</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#eee</span>;         }         <span class="hljs-selector-class">.img-con</span>{ <span class="hljs-comment">/* 图片容器块 */</span>             <span class="hljs-attribute">width</span>: <span class="hljs-number">100%</span>;             <span class="hljs-attribute">height</span>: <span class="hljs-number">200px</span>;             <span class="hljs-attribute">display</span>: flex;             <span class="hljs-attribute">justify-content</span>: center;             <span class="hljs-attribute">align-items</span>: center;             <span class="hljs-attribute">overflow</span>: hidden;             <span class="hljs-attribute">border</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#eee</span>;             <span class="hljs-attribute">position</span>: relative;         }         <span class="hljs-selector-class">.img-con</span> &gt; <span class="hljs-selector-class">.slide-block</span>{ <span class="hljs-comment">/* 图片区域的滑块 */</span>             <span class="hljs-attribute">top</span>: <span class="hljs-number">0</span>;             <span class="hljs-attribute">left</span>: <span class="hljs-number">0</span>;             <span class="hljs-attribute">position</span>: absolute;             <span class="hljs-attribute">height</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">width</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">display</span>: none;             <span class="hljs-attribute">background-repeat</span>: no-repeat;             <span class="hljs-attribute">background-attachment</span>: scroll;             <span class="hljs-attribute">background-size</span>: <span class="hljs-number">360px</span> <span class="hljs-number">200px</span>;             <span class="hljs-attribute">z-index</span>: <span class="hljs-number">10</span>;             <span class="hljs-attribute">box-shadow</span>: <span class="hljs-number">0</span> <span class="hljs-number">0</span> <span class="hljs-number">10px</span> <span class="hljs-number">0</span> <span class="hljs-built_in">rgba</span>(0, 0, 0, 0.4), <span class="hljs-number">0</span> <span class="hljs-number">0</span> <span class="hljs-number">10px</span> <span class="hljs-number">0</span> <span class="hljs-built_in">rgba</span>(90, 90, 90, 0.4);         }         <span class="hljs-selector-class">.img-con</span> &gt; <span class="hljs-selector-class">.slide-block-mask</span>{ <span class="hljs-comment">/* 图片区域的空缺区域 */</span>             <span class="hljs-attribute">top</span>: <span class="hljs-number">0</span>;             <span class="hljs-attribute">left</span>: <span class="hljs-number">0</span>;             <span class="hljs-attribute">position</span>: absolute;             <span class="hljs-attribute">height</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">width</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">display</span>: none;             <span class="hljs-attribute">background-color</span>: <span class="hljs-built_in">rgba</span>(0, 0, 0, 0.4);         }         <span class="hljs-selector-class">.img-con</span> &gt; <span class="hljs-selector-class">.img</span>{ <span class="hljs-comment">/* 图片 */</span>             <span class="hljs-attribute">width</span>: <span class="hljs-number">100%</span>;             <span class="hljs-attribute">height</span>: <span class="hljs-number">100%</span>;         }         <span class="hljs-selector-class">.img-con</span> &gt; <span class="hljs-selector-class">.loading</span>{ <span class="hljs-comment">/* 加载中样式 */</span>             <span class="hljs-attribute">width</span>: unset;             <span class="hljs-attribute">height</span>: unset;         }         <span class="hljs-selector-class">.slide-con</span>{ <span class="hljs-comment">/* 滑块容器 */</span>             <span class="hljs-attribute">height</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">margin</span>: <span class="hljs-number">10px</span> <span class="hljs-number">0</span>;             <span class="hljs-attribute">position</span>: relative;             <span class="hljs-attribute">border</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#eee</span>;         }         <span class="hljs-selector-class">.slide-con</span> &gt; <span class="hljs-selector-class">.slide-btn</span>{ <span class="hljs-comment">/* 滑动按钮 */</span>             <span class="hljs-attribute">height</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">width</span>: <span class="hljs-number">40px</span>;             <span class="hljs-attribute">position</span>: absolute;             <span class="hljs-attribute">background</span>: <span class="hljs-number">#4C98F7</span>;             <span class="hljs-attribute">display</span>: flex;             <span class="hljs-attribute">justify-content</span>: center;             <span class="hljs-attribute">align-items</span>: center;             <span class="hljs-attribute">cursor</span>: pointer;         }         <span class="hljs-selector-class">.icon-arrow-right</span>{ <span class="hljs-comment">/* 右箭头 */</span>             <span class="hljs-attribute">font-size</span>: <span class="hljs-number">30px</span>;             <span class="hljs-attribute">color</span>: <span class="hljs-number">#fff</span>;         }         <span class="hljs-selector-class">.operate-con</span>{ <span class="hljs-comment">/* 操作容器块 */</span>             <span class="hljs-attribute">border-top</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#eee</span>;             <span class="hljs-attribute">height</span>: <span class="hljs-number">30px</span>;             <span class="hljs-attribute">padding</span>: <span class="hljs-number">5px</span> <span class="hljs-number">0</span> <span class="hljs-number">0</span> <span class="hljs-number">5px</span>;             <span class="hljs-attribute">display</span>: flex;             <span class="hljs-attribute">align-items</span>: center;         }         <span class="hljs-selector-class">.icon-shuaxin1</span>{ <span class="hljs-comment">/* 刷新按钮 */</span>             <span class="hljs-attribute">color</span>: <span class="hljs-number">#777</span>;             <span class="hljs-attribute">font-size</span>: <span class="hljs-number">20px</span>;             <span class="hljs-attribute">cursor</span>: pointer;         }     </span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>     <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;verify-slide-con&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 滑动拼图容器块 --&gt;</span>         <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;img-con&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 图片容器块 --&gt;</span>             <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;img&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 图片 --&gt;</span>             <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;slide-block&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span> <span class="hljs-comment">&lt;!-- 拼图 --&gt;</span>             <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;slide-block-mask&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span> <span class="hljs-comment">&lt;!-- 缺口 --&gt;</span>         <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>         <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;slide-con&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 滑块容器 --&gt;</span>             <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;slide-btn&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 滑动按钮 --&gt;</span>                 <span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;iconfont icon-arrow-right&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span> <span class="hljs-comment">&lt;!-- 图标 --&gt;</span>             <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>         <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>         <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;operate-con&quot;</span>&gt;</span> <span class="hljs-comment">&lt;!-- 操作容器块 --&gt;</span>             <span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;refresh&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;iconfont icon-shuaxin1&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span> <span class="hljs-comment">&lt;!-- 刷新按钮 --&gt;</span>         <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>     <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text/javascript&quot;</span>&gt;</span><span class="javascript">     (<span class="hljs-function"><span class="hljs-keyword">function</span>()</span>{         <span class="hljs-keyword">var</span> imgList = [ <span class="hljs-comment">// 图片组</span>             <span class="hljs-string">&quot;http://www.sdust.edu.cn/__local/9/7A/B1/F29B84DEF72DD329997E8172ABA_664BA3EF_32466.jpg&quot;</span>,             <span class="hljs-string">&quot;http://www.sdust.edu.cn/__local/B/F3/E4/693AB931C9FFB84646970D53BFE_C506394A_4282CA.jpg&quot;</span>,             <span class="hljs-string">&quot;http://www.sdust.edu.cn/__local/F/7A/AA/E1459849AA8AB0C89854A41BD41_BF3BD857_BC0D8.jpg&quot;</span>,             <span class="hljs-string">&quot;http://www.sdust.edu.cn/__local/1/95/CB/EDC1450B8FD1B8A25FAAC726AA4_A36D4253_16C91.jpg&quot;</span>,         ];         <span class="hljs-keyword">var</span> imgCon = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.img-con&quot;</span>); <span class="hljs-comment">// 图片容器元素引用</span>         <span class="hljs-keyword">var</span> img = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.img-con &gt; .img&quot;</span>); <span class="hljs-comment">// 图片元素引用</span>         <span class="hljs-keyword">var</span> slideBlock = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.img-con &gt; .slide-block&quot;</span>); <span class="hljs-comment">// 滑块元素引用</span>         <span class="hljs-keyword">var</span> slideBlockMask = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.img-con &gt; .slide-block-mask&quot;</span>); <span class="hljs-comment">// 缺口元素引用</span>         <span class="hljs-keyword">var</span> slideCon = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.slide-con&quot;</span>); <span class="hljs-comment">// 滑动容器引用</span>         <span class="hljs-keyword">var</span> slideBtn = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;.slide-con &gt; .slide-btn&quot;</span>); <span class="hljs-comment">// 滑块按钮引用</span>         <span class="hljs-keyword">var</span> refreshBtn = <span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&quot;#refresh&quot;</span>); <span class="hljs-comment">// 刷新按钮引用</span>         <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">randomInt</span>(<span class="hljs-params">min=<span class="hljs-number">0</span>, max=<span class="hljs-number">1</span></span>) </span>{ <span class="hljs-comment">// 生成随机数</span>             <span class="hljs-keyword">return</span> min + ~~((max-min)*<span class="hljs-built_in">Math</span>.random()) <span class="hljs-comment">// min &lt;= random &lt; max </span>         }         <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">initSlider</span>()</span>{             <span class="hljs-keyword">var</span> maxTop = imgCon.offsetHeight -                  ~~(<span class="hljs-built_in">window</span>.getComputedStyle(slideBlock).getPropertyValue(<span class="hljs-string">&quot;height&quot;</span>).replace(<span class="hljs-string">&quot;px&quot;</span>,<span class="hljs-string">&quot;&quot;</span>)); <span class="hljs-comment">// 获取最大Y轴偏移距离</span>             <span class="hljs-keyword">var</span> maxRight = imgCon.offsetWidth -                  ~~(<span class="hljs-built_in">window</span>.getComputedStyle(slideBlock).getPropertyValue(<span class="hljs-string">&quot;width&quot;</span>).replace(<span class="hljs-string">&quot;px&quot;</span>,<span class="hljs-string">&quot;&quot;</span>)); <span class="hljs-comment">// 获取最大X轴偏移距离</span>             <span class="hljs-keyword">var</span> randPosY = randomInt(<span class="hljs-number">0</span>, maxTop); <span class="hljs-comment">// 随机Y轴偏移</span>             <span class="hljs-keyword">var</span> randPosX = randomInt(<span class="hljs-number">60</span>, maxRight); <span class="hljs-comment">// 随机X轴偏移</span>             slideBtn.onmousedown = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">e</span>)</span>{                 slideBlock.style.display = <span class="hljs-string">&quot;block&quot;</span>; <span class="hljs-comment">// 显示拼图</span>                 slideBlock.style.top=<span class="hljs-string">`<span class="hljs-subst">${randPosY}</span>px`</span>; <span class="hljs-comment">// 拼图Y轴偏移</span>                 slideBlock.style[<span class="hljs-string">&quot;background-position&quot;</span>] = <span class="hljs-string">`-<span class="hljs-subst">${randPosX}</span>px -<span class="hljs-subst">${randPosY}</span>px`</span>; <span class="hljs-comment">// 指定背景图位置</span>                 slideBlockMask.setAttribute(<span class="hljs-string">&quot;style&quot;</span>, <span class="hljs-string">`display:block;top:<span class="hljs-subst">${randPosY}</span>px;left:<span class="hljs-subst">${randPosX}</span>px`</span>); <span class="hljs-comment">// 显示缺口并指定位置</span>                 <span class="hljs-keyword">var</span> edgeX = e.clientX; <span class="hljs-comment">// 鼠标点击位置</span>                 <span class="hljs-built_in">document</span>.onmousemove = <span class="hljs-function"><span class="hljs-params">event</span> =&gt;</span> {                     <span class="hljs-keyword">var</span> relativeX = event.clientX - edgeX; <span class="hljs-comment">// 鼠标移动距离</span>                     <span class="hljs-keyword">if</span>(relativeX&lt;<span class="hljs-number">0</span> || relativeX&gt;imgCon.offsetWidth-<span class="hljs-keyword">this</span>.offsetWidth) <span class="hljs-keyword">return</span> <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>; <span class="hljs-comment">// 判断是否超出滑动容器块 超出则不移动</span>                     slideBlock.style.left = relativeX + <span class="hljs-string">&quot;px&quot;</span>; <span class="hljs-comment">// 移动拼图</span>                     <span class="hljs-keyword">this</span>.style.left =  relativeX + <span class="hljs-string">&quot;px&quot;</span>; <span class="hljs-comment">// 移动滑块按钮</span>                 }                 <span class="hljs-built_in">document</span>.onmouseup = <span class="hljs-function"><span class="hljs-keyword">function</span>() </span>{                     <span class="hljs-keyword">this</span>.onmousemove = <span class="hljs-literal">null</span>; <span class="hljs-comment">// 撤销事件</span>                     <span class="hljs-keyword">this</span>.onmouseup = <span class="hljs-literal">null</span>; <span class="hljs-comment">// 撤销事件</span>                     <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Math</span>.abs(slideBlock.offsetLeft - slideBlockMask.offsetLeft)&lt;=<span class="hljs-number">2</span>) alert(<span class="hljs-string">&quot;验证成功&quot;</span>); <span class="hljs-comment">// 偏移距离小于2则认为成功</span>                     <span class="hljs-keyword">else</span> alert(<span class="hljs-string">&quot;验证失败&quot;</span>); <span class="hljs-comment">// 否则失败</span>                     slideBlock.style.left = <span class="hljs-number">0</span>; <span class="hljs-comment">// 拼图归位</span>                     slideBtn.style.left =  <span class="hljs-number">0</span>; <span class="hljs-comment">// 滑块按钮归位</span>                 };             }         }         <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">switchImg</span>()</span>{             slideBlock.style.display = <span class="hljs-string">&quot;none&quot;</span>; <span class="hljs-comment">// 不显示拼图</span>             slideBlockMask.style.display = <span class="hljs-string">&quot;none&quot;</span>; <span class="hljs-comment">// 不显示缺口</span>             img.classList.add(<span class="hljs-string">&quot;loading&quot;</span>); <span class="hljs-comment">// 指定图片加载中样式</span>             img.src=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/gh/sentsin/layui@15d7241/dist/css/modules/layer/default/loading-2.gif&quot;</span>; <span class="hljs-comment">// 加载动画</span>             <span class="hljs-keyword">var</span> newSrc = imgList[randomInt(<span class="hljs-number">0</span>, <span class="hljs-number">4</span>)]; <span class="hljs-comment">// 随机加载图片</span>             <span class="hljs-keyword">var</span> tmp = <span class="hljs-keyword">new</span> Image(); <span class="hljs-comment">// 隐式加载图片</span>             tmp.src = newSrc; <span class="hljs-comment">// 指定src</span>             tmp.onload = <span class="hljs-function"><span class="hljs-keyword">function</span>()</span>{                 img.classList.remove(<span class="hljs-string">&quot;loading&quot;</span>); <span class="hljs-comment">// 撤销loading</span>                 img.src = newSrc; <span class="hljs-comment">// 指定src 此时从缓存加载图片</span>                 slideBlock.style[<span class="hljs-string">&quot;background-image&quot;</span>] = <span class="hljs-string">`url(<span class="hljs-subst">${newSrc}</span>)`</span>; <span class="hljs-comment">// 拼图背景</span>                 initSlider(); <span class="hljs-comment">// 初始化滑块</span>             }         }         (<span class="hljs-function"><span class="hljs-keyword">function</span>()</span>{             switchImg(); <span class="hljs-comment">// 加载图片</span>             refreshBtn.addEventListener(<span class="hljs-string">&quot;click&quot;</span>, e =&gt; switchImg()); <span class="hljs-comment">//  刷新按钮绑定事件</span>         })();     })(); </span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span></code></pre>...]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/132.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=132</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=132&amp;key=ae017318</trackback:ping></item><item><title>Js调用asp.net后台代码</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/129.html</link><pubDate>Tue, 27 Oct 2020 22:43:14 +0800</pubDate><guid>http://www.xmhjfb.com/post/129.html</guid><description><![CDATA[<div id="cnblogs_post_body" class="blogpost-body"><p><strong>方法一</strong>：</p><p><strong>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</strong>1、首先建立一个按钮，在后台将调用或处理的内容写入button_click中; &nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; 2、在前台写一个js函数，内容为document.getElementById(&quot;btn1&quot;).click()</p>...</div>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/129.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=129</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=129&amp;key=fde89ae9</trackback:ping></item><item><title>窗体居中显示代码</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/127.html</link><pubDate>Mon, 10 Aug 2020 17:46:21 +0800</pubDate><guid>http://www.xmhjfb.com/post/127.html</guid><description><![CDATA[<p>使窗体居中：</p><p>this.StartPosition&nbsp;=&nbsp;System.Windows.Forms.FormStartPosition.CenterScreen;</p><p>加在需要显示的窗体代码中，打开后就会显示在屏幕正中心！亲测有效！</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/127.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=127</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=127&amp;key=83761d1d</trackback:ping></item><item><title>WinForm 设置窗体在桌面区域全屏显示</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/126.html</link><pubDate>Mon, 10 Aug 2020 16:50:31 +0800</pubDate><guid>http://www.xmhjfb.com/post/126.html</guid><description><![CDATA[<div class="htmledit_views" id="content_views"><span style="font-size:16px;">using System.Windows.Forms;</span><p><span style="font-size:16px;">namespace WindowsFormsApplication1<br />{<br />&nbsp;&nbsp;&nbsp; public partial class Form1 : Form<br />...</p></div></span>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/126.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=126</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=126&amp;key=f1f171c4</trackback:ping></item><item><title>WebBrowser控件使用</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/125.html</link><pubDate>Mon, 10 Aug 2020 16:27:42 +0800</pubDate><guid>http://www.xmhjfb.com/post/125.html</guid><description><![CDATA[<p>WebBrowser控件属性：</p><p>1、Application<br />如果该对象有效，则返回掌管WebBrowser控件的应用程序实现的自动化对象(IDispatch)。如果在宿主对象中自动化对象无效，程序将返回WebBrowser控件的自动化对象<br />2、Parent<br />返回WebBrowser控件的父自动化对象，通常是一个容器，例如是宿主或IE窗口<br />3、Containe<br />返回WebBrowser控件容器的自动化对象。通常该值与Parent属性返回的值相同<br />...</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/125.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=125</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=125&amp;key=f6d85fbb</trackback:ping></item><item><title>MessageBox.Show()的各种用法</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/124.html</link><pubDate>Mon, 10 Aug 2020 16:24:35 +0800</pubDate><guid>http://www.xmhjfb.com/post/124.html</guid><description><![CDATA[<p>【函数】 &lt;整型&gt; MessageBox（&lt;字符串&gt; Text, &lt;字符串&gt; Title, &lt;整型&gt; nType，MessageBoxIcon）; 【函数说明】 弹出一个消息框。 【语法】 参数： Text &lt;字符串&gt;，消息框的正文； Title &lt;字符串&gt;，消息框的标题； nType &lt;整型&gt;，消息框的类型。 返</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/124.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=124</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=124&amp;key=921bbf39</trackback:ping></item><item><title>解决HTML5手机端页面缩放的问题</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/119.html</link><pubDate>Wed, 22 Jul 2020 14:27:43 +0800</pubDate><guid>http://www.xmhjfb.com/post/119.html</guid><description><![CDATA[<p>通常在写HTML5手机端页面的时候，我们会发现页面所显示元素的比例不正确，那此时我们需要添加的就是： 1&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1&quot;&gt; 或者是 1&lt;meta name=&quot;viewport&quot; content=&quot;</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/119.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=119</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=119&amp;key=305132b2</trackback:ping></item><item><title>移动端H5页面的设计稿尺寸大小规范</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/118.html</link><pubDate>Wed, 22 Jul 2020 14:23:11 +0800</pubDate><guid>http://www.xmhjfb.com/post/118.html</guid><description><![CDATA[<p>当我们在做手机端H5网页设计稿时（当然包含微信端的H5网页设计），如果没有做过类似的移动端的设计，UI设计师和前端工程师肯定会纠结的。如果是app设计师，就不会那么纠结啦。那么多手机屏幕尺寸，设计稿应该按照哪一个尺寸作为标准尺寸。现在已经有2K分辨率的手机屏幕了，设计稿是不是也要把宽高跟着最大分辨率来设计。显然不是。请注意：（以下所有讨论内容和规范均将viewport设定为content=&amp;rdq</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/118.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=118</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=118&amp;key=79827e35</trackback:ping></item><item><title>html5设置图片自适应屏幕宽度</title><author>a@b.com (roger)</author><link>http://www.xmhjfb.com/post/117.html</link><pubDate>Wed, 22 Jul 2020 14:20:11 +0800</pubDate><guid>http://www.xmhjfb.com/post/117.html</guid><description><![CDATA[<p>在文件夹中创建css文件夹里面是css文件、hello图片、test的html文件。        2    打开test的html文件，在里面添加class为scale的div，里面放一张hello图片。        3    在浏览器中打开发现会一直保持大小，并不会缩放。        4    打开css文件夹中的hello的css文件，在里面设置.scale img的属性back</p>]]></description><category>网页设计代码</category><comments>http://www.xmhjfb.com/post/117.html#comment</comments><wfw:comment>http://www.xmhjfb.com/</wfw:comment><wfw:commentRss>http://www.xmhjfb.com/feed.asp?cmt=117</wfw:commentRss><trackback:ping>http://www.xmhjfb.com/cmd.asp?act=tb&amp;id=117&amp;key=4fc664f5</trackback:ping></item></channel></rss>
