<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[陈冠希's Blog]]></title>
<link>http://zmv.cc/</link>
<description><![CDATA[创造机会的人是勇者；等待机会的人是愚者]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[PKKT@163.COM(CGX)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>陈冠希&#39;s Blog</title>
	<url>http://zmv.cc/images/logos.gif</url>
	<link>http://zmv.cc/</link>
	<description>陈冠希&#39;s Blog</description>
</image>

			<item>
			<link>http://zmv.cc/article/30.html</link>
			<title><![CDATA[Anaconda虚拟环境安装]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[Excel笔记]]></category>
			<pubDate>Wed,28 May 2025 05:14:04 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=30</guid>
		<description><![CDATA[用python写了一个捕获人体骨骼数据的时候，缺少支持库。<br/><br/>因为需要安装 <strong>mediapipe</strong>支持库。<br/><br/>结果发现，官网最高支持的python版本为3.9-3.10。测试用的机子安装的版本为3.12.2<br/><br/>看来只能创造虚拟环境了，利用Anaconda虚拟环境安装<br/><br/>这是安装命令<br/># 安装 Miniconda（如未安装）<br/># 从 <a href="https://docs.conda.io/en/latest/miniconda.html" target="_blank" rel="external">https://docs.conda.io/en/latest/miniconda.html</a> 下载对应系统版本<br/><br/># 创建 Python 3.9 环境<br/>conda cr&#101;ate -n mediapipe_env python=3.9<br/><br/># 激活环境<br/>conda activate mediapipe_env<br/><br/># 安装 MediaPipe<br/>pip install mediapipe<br/><br/><br/><br/>怎么切换环境呢？<br/><br/># 退出环境<br/><br/>conda deactivate<br/><br/># 环境管理命令<br/><br/>查看所有环境&#160;&#160;&#160;&#160;conda env list<br/>删除环境&#160;&#160;&#160;&#160;conda env remove -n env_name<br/>复制环境&#160;&#160;&#160;&#160;conda cr&#101;ate --clone old_env --name new_env]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/Nam.html</link>
			<title><![CDATA[本站域名已出售，更换了新域名]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[随然心情]]></category>
			<pubDate>Wed,18 Dec 2024 03:36:24 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=29</guid>
		<description><![CDATA[原域名：C.GX.CN&nbsp;&nbsp; 已经出售<br/><br/>现更新域名地址为：ZMV.CC<br/><br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/28.html</link>
			<title><![CDATA[易语言源码网7n2.cn]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[随然心情]]></category>
			<pubDate>Sun,06 Oct 2024 09:30:57 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=28</guid>
		<description><![CDATA[<p><span style="color: rgb(26, 26, 166); font-family: monospace; font-size: medium; white-space: pre;"><a href="https://7n2.cn" target="_blank">易语言资源网</a> - 易语言源码分享,易语言源码网,易语言源码,易语言模块,易语言支持库</span></p>
<p><span style="color: rgb(26, 26, 166); font-family: monospace; font-size: medium; white-space: pre;">易语言源码网 - 专注易语言资源分享，易语言源码网为你提供易语言源码下载，易语言模块下载，易语言支持库下载，同时提供丰富的功能，在线预览模块命令，高级搜索易语言相关资源。</span></p>
<p style="text-align: center;"><span style="color: rgb(26, 26, 166); font-family: monospace; font-size: medium; white-space: pre;"><input type="image" src="https://7n2.cn/wp-content/uploads/2024/10/1728002642-logo.png?orientation=landscape&width=264&height=123" /></span></p>
<p style="text-align: center;">&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/web3/27.html</link>
			<title><![CDATA[宝塔安装php拓展ImageMagick报错解决方案]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[技术资料]]></category>
			<pubDate>Fri,04 Oct 2024 11:44:30 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=27</guid>
		<description><![CDATA[<p>宝塔安装扩展的时候提示安装错误</p>
<p>报错提示：</p>
<div class="codeText">
<div class="codeHead">Delphi代码</div>
<ol start="1" class="dp-delphi">
    <li class="alt"><span><span>configure:&nbsp;error:&nbsp;</span><span class="keyword">not</span><span>&nbsp;found.&nbsp;Please&nbsp;provide&nbsp;a&nbsp;path&nbsp;</span><span class="keyword">to</span><span>&nbsp;MagickWand-config&nbsp;</span><span class="keyword">or</span><span>&nbsp;Wand-config&nbsp;</span><span class="keyword">program</span><span>.&nbsp;&nbsp;</span></span></li>
    <li><span>&nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;</span></li>
    <li><span>make:&nbsp;***&nbsp;No&nbsp;targets&nbsp;specified&nbsp;<span class="keyword">and</span><span>&nbsp;no&nbsp;makefile&nbsp;found.&nbsp;Stop.&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>error&nbsp;|-Successify&nbsp;---&nbsp;命令已执行!&nbsp;---&nbsp;&nbsp;</span></li>
</ol>
</div>
<p>&nbsp;</p>
<p>90%的报错服务器为：Ubutnu和Debian系统</p>
<p>我用的就是Debian系统。</p>
<p>以Debian系统演示，只需要更新一下软件包及Glibc版本就行</p>
<ol>
    <li>更新软件包</li>
</ol>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol start="1" class="dp-xml">
    <li class="alt"><span><span>apt-get&nbsp;update&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.更新<span style="color: rgb(0, 0, 255);">Glibs</span>为2.0版本</p>
<div class="codeText">
<div class="codeHead">Python代码</div>
<ol start="1" class="dp-py">
    <li class="alt"><span><span>apt-get&nbsp;install&nbsp;libc6-dev&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p><span style="background-color: rgba(0, 0, 0, 0); font-family: Consolas, monospace-fallback, &quot;monospace&quot;; font-size: 14px;">如果遇到这个问题：</span><span style="color: rgb(255, 0, 0);"><span style="background-color: rgba(0, 0, 0, 0); font-family: Consolas, monospace-fallback, &quot;monospace&quot;; font-size: 14px;">Do you want to continue? [Y/n] </span><span style="color: rgb(0, 0, 255);"><span style="background-color: rgba(0, 0, 0, 0); font-family: Consolas, monospace-fallback, &quot;monospace&quot;; font-size: 14px;">选：Y &nbsp;</span></span></span></p>
<p><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 255);"><span style="background-color: rgba(0, 0, 0, 0); font-family: Consolas, monospace-fallback, &quot;monospace&quot;; font-size: 14px;">&nbsp;</span></span></span></p>
<!--StartFragment--><!--EndFragment-->
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/26.html</link>
			<title><![CDATA[宝塔云WAF一键卸载命令]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[随然心情]]></category>
			<pubDate>Fri,04 Oct 2024 05:51:48 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=26</guid>
		<description><![CDATA[<p>&nbsp;</p>
<div class="codeText">
<div class="codeHead">Python代码</div>
<ol start="1" class="dp-py">
    <li class="alt"><span><span>URL=https://download.bt.cn/cloudwaf/scripts/install_cloudwaf.sh&nbsp;&&&nbsp;</span><span class="keyword">if</span><span>&nbsp;[&nbsp;-f&nbsp;/usr/bin/curl&nbsp;];then&nbsp;curl&nbsp;-sSO&nbsp;</span><span class="string">&quot;$URL&quot;</span><span>&nbsp;;</span><span class="keyword">else</span><span>&nbsp;wget&nbsp;-O&nbsp;install_cloudwaf.sh&nbsp;</span><span class="string">&quot;$URL&quot;</span><span>;fi;bash&nbsp;install_cloudwaf.sh&nbsp;&nbsp;uninstall&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/25.html</link>
			<title><![CDATA[修改PJBlog 默认的图片缩放大小]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[Excel笔记]]></category>
			<pubDate>Sat,28 Sep 2024 05:13:36 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=25</guid>
		<description><![CDATA[只要是超过指定宽度的图片，都会被按比例缩小为宽度500...<br/><br/>　　对于一些宽度比较大，或者不要求缩放的朋友很难办，像我每次都要修改图片的宽度为500之后，才上传到Blog的~很是麻烦，那我们现在就来自己修改一下吧...<br/><br/>　　打开程序的目录，找到common目录下的，common.js这个Js脚本文件，用写字板打开都行...一打开就能看到的了...<br/><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://zmv.cc/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">function ReImgSize(){<br/>　　for (i=0;i&lt;document.images.length;i++)<br/>　　　{<br/>　　　if (document.all){<br/>　　　　　if (document.images[i].width&gt;500)<br/>　　　　　　{<br/>　　　　　　　document.images[i].width=&#34;500&#34;<br/>　　　　　　　document.images[i].outerHTML=&#39;&lt;a href=&#34;&#39;+document.images[i].src+&#39;&#34; target=&#34;_blank&#34; title=&#34;在新窗口打开图片&#34;&gt;&#39;+document.images[i].outerHTML+&#39;&lt;/a&gt;&#39;<br/>　　　　　　}<br/>　　　}<br/>　　else{<br/>　　　　　if (document.images[i].width&gt;400) {<br/>　　　　　　　document.images[i].title=&#34;在新窗口打开图片&#34;<br/>　　　　　　　document.images[i].style.cursor=&#34;pointer&#34;<br/>　　　　　　　document.images[i].onclick=function(e){window.open(this.src)}<br/>　　　　}<br/>　　}<br/>　　}<br/>　}</div></div>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/web3/24.html</link>
			<title><![CDATA[优化你的CSS代码~!【转载】]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[技术资料]]></category>
			<pubDate>Sat,28 Sep 2024 03:48:07 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=24</guid>
		<description><![CDATA[最近看过许多网友制作的SKIN的CSS文件，发现其中有着许多冗余的代码。下面我来跟大家介绍一下，如何清除这些冗余的代码，让你的CSS文件更加简洁。<br/><br/>　　一、margin、padding属性<br/>　　参照相关资料我们可以知道，margin和padding代表的意思分别是外部边距和内部填充距离，在许多网友的CSS中，关于这两个属性的冗余代码是出现得最多的。比如：margin:0px，大家可以查看一下自己的CSS文件中，是否许多的margin:0px，其中有的是不需要的，你可以尝试删除它，当然也并不是所有的margin:0px都没有用，相同，padding:0px也一样。<br/><br/>　　另外，margin和padding中各项属性的顺序是：上右下左，你只要记住是顺时针方向就好了。我们再看看这两段代码：<br/>margin:0px 0px 0px 10px；<br/>margin-left:10px；<br/>其实他们的作用是一样的，下面的则是一种缩写，使用缩写我们可以减少CSS代码，并使阅读起来更为方便。（padding也相同。）<br/><br/>　　二、!important;属性<br/>　　!important是CSS1就定义的语法，作用是提高指定样式规则的应用优先权。IE是不支持这个语法的，而其他的浏览器都支持，通过这一点，我们可以得知，设置了优先权的代码是不会被IE执行的。所以我们可以important的后面添加CSS样式，使其可以区别于IE和FireFox等浏览器。<br/><br/>　　上次在看Miles的CSS代码时，我看到了这样一句：<br/>height:50px !important;height:50px;<br/>　　这里就是多余的了，我们可以这样写：height:50px就够了，这个错误在我刚开始制作CSS时也曾出现过。<br/><br/>　　三、text-align、font样式<br/>　　这两个样式的作用我就不说了，但是这两个样式在许多网友的CSS中也存在许多冗余。下面我来举例说明一下，层的定义如下：<br/>&lt;div id=&#34;main&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#34;body1&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#34;content1&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#34;body2&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&lt;div&gt;<br/>CSS文件如下（错误示例）：<br/>#main{width:500px;text-algin:left;font-size:12px;color:#000000;}<br/>#body1{width:500px;text-algin:center;font-size:12px;color:#FF0000;}<br/>#content{text-algin:left;font-size:12px;color:#000000;}<br/>#body2{text-algin:left;font-size:12px;color:#000000;}<br/><br/>　　大家可以从上面的代码中轻易地看出，有许多的冗余代码，现在我们来书写正确的代码：<br/>#main{width:500px;text-algin:left;font-size:12px;color:#000000;}<br/>#body1{text-algin:center;color:#FF0000;}<br/>#content{width:300px;text-algin:left;color:#000000;}<br/>#body2{}<br/><br/>　　以上就是正确的代码，由于大家在制作SKIN时，对PJBLOG的DIV结构没搞清楚，才会出现这种错误。<br/><br/>　　四、display:none的使用<br/>　　display:none的作用就是使被定义的层不显示。我们再来看看这段代码：<br/>#blogTitle{font-size:0px;margin:10px 3px 3px 40px;height:20px;color:#FFC1E6;display:none}<br/><br/>　　大家有没有觉得这有些多余呢，是的，既然设置了不显示，为何还要保留那些不必要的样式呢？出现这种情况我就知道，这个SKIN是改自某人的。<br/><br/>　　五、还是margin和padding<br/>　　我还是通过例子来给大家说明，层的定义同上，以下是CSS的定义（错误示例）：<br/>#main{margin:5px 0px 5px 0px;}<br/>#body1{margin:12px 0px 10px 0px;}<br/>#content{margin:8px 0px 2px 0px;}<br/>#body2{margin:10px 0px 15px 0px;}<br/><br/>　　现在我们再来书写正确的样式：<br/>#main{}<br/>#body1{margin-top:17px ;}<br/>#content{margin:8px 0px 2px 0px;}<br/>#body2{margin:20px 0px ;}<br/><br/>　　这里需要大家制作一下示例才能了解，首先#main{margin:5px 0px 5px 0px;}是没有必要的，他无非定义的就是整个页面的上、下外边距。（在一定场合下却需要这样书写）我们同样可以通过定义#body1的上边距和#body2的下边距来设置，所以才有了#body1{margin-top:17px ;}和#body2{margin:20px 0px ;}（这里定义的是#body2的上下边距为20px，左右边距为0px，也是缩写的一种方式。）<br/><br/>　　同样的道理，于是我们可以省略了#body1的下边距，在#content层在定义上边距，另外大家还需要先弄清楚层的嵌套关系，否则就会出错。<br/><br/>　　好了，写到这里我也该去睡了，以上就是这些时间查看大家的CSS文件获得的经验，希望对大家书写CSS的时候有所帮助，制作出来的SKIN更加简洁、明了。]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/web3/23.html</link>
			<title><![CDATA[Div+CSS布局入门教程(四)【转载】]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[技术资料]]></category>
			<pubDate>Sat,28 Sep 2024 03:46:18 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=23</guid>
		<description><![CDATA[<img src="http://zmv.cc/download.asp?id=16" border="0" alt=""/><br/>三、页面顶部制作(2)----使用列表&lt;li&gt;制作菜单<br/><br/>　　开始此节的学习前，请确认你已经参照之前的几节内容写入了DIV、CSS到index.htm和css.css文件中。<br/>　　这一节我将告诉大家如何用列表&lt;li&gt;来制作菜单。<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code90910);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code90910><br/>&lt;div id=&#34;menu&#34;&gt;<br/>&nbsp;&nbsp; &lt;ul&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;首页&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;博客&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;设计&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;相册&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;论坛&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;li&gt;&lt;a href=&#34;#&#34;&gt;关于&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp; &lt;/ul&gt;<br/>&nbsp;&nbsp;&lt;/div&gt;<br/></div></div><br/>以上是这部分的结构，有关于&lt;ul&gt;&lt;/ul&gt;、&lt;li&gt;&lt;/li&gt;这两个HTML元素大家自己去参考相关的内容吧，它们最主要的作用就是在HTML中以列表的形式来显示一些信息。<br/><br/>　　还有一点需要大家一定要分清楚的，当在HTML中定义为id=&#34;divID&#34;时，在CSS对应的设置语法则是#divID{} ，如果在HTML中定义为class=&#34;divID&#34;时，则在CSS中对应的设置语法是.divID。<br/>　　如果id=&#34;divID&#34;这个层中包括了一个&lt;img&gt;&lt;/img&gt;，则这个img在CSS中对应的设置语法应该是#divID img {}，同样，如果是包含在class=&#34;divID&#34;这个层中时，则设置语法应该是.divID img {}，这一点希望大家要分清楚了。<br/>　　另外，HTML中的一切元素都是可以定义的，例如table、tr、td、th、form、img、input...等等，如果你要在CSS中设置它们，则直接写入元素的名称加上一对大括号{}就可以了。所有的CSS代码都应该写在大括号{}中。<br/><br/>　　按照上面的介绍，我们先在css.css中写入以下代码：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code64611);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code64611>#menu ul {list-style:none;margin:0px;}<br/>#menu ul li {float:left;}</div></div><br/>解释一下：<br/>　　#menu ul {list-style:none;margin:0px;}<br/>　　list-style:none，这一句是取消列表前点，因为我们不需要这些点。<br/>　　margin:0px，这一句是删除UL的缩进，这样做可以使所有的列表内容都不缩进。<br/><br/>　　#menu ul li {float:left;}<br/>　　这里的 float:left 的左右是让内容都在同一行显示，因此使用了浮动属性(float)。<br/><br/>　　到这一步，建议大家先保存预览一下效果，我们再添加下面的内容，效果如下：<br/><img src="http://zmv.cc/download.asp?id=17" border="0" alt=""/><br/>这时，列表内容是排列在一行，我们在#menu ul li {}再加入代码margin:0 10px：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code16950);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code16950>#menu ul {list-style:none;margin:0px;}<br/>#menu ul li {float:left;margin:0 10px}</div></div><br/>margin:0 10px的作用就是让列表内容之间产生一个20像素的距离(左：10px，右：10px)，预览的效果如下：<br/><br/><img src="http://zmv.cc/download.asp?id=18" border="0" alt=""/><br/>现在，雏形已经出来了，我们再来固定菜单的位置，把代码改成如下：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code59934);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code59934><br/>#menu {padding:20px 20px 0 0}<br/>/*利用padding:20px 20px 0 0来固定菜单位置*/<br/>#menu ul {float:right;list-style:none;margin:0px;}<br/>/*添加了float:right使得菜单位于页面右侧*/<br/>#menu ul li {float:left;margin:0 10px}<br/></div></div><br/>这时，位置已经确定了，可是构思图中，菜单选项之间还有一条竖线，怎么办呢？<br/>　　别忘了，我们早就已经留好了一个空的&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;，要想加入竖线就使用它了。<br/>　　按照上面说的方法，我们再添加以下代码：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code84097);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code84097>.menuDiv {width:1px;height:28px;background:#999}</div></div><br/>保存预览一下，竖线是否已经出来了？关于这段代码就不多讲了，应该是很容易理解的。<br/><img src="http://zmv.cc/download.asp?id=19" border="0" alt=""/><br/>不过，菜单选项的文字却在顶部，我们再修改成以下代码：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code11609);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code11609>#menu ul li {float:left;margin:0 10px;display:block;line-height:28px}</div></div><br/>关于display:block;line-height:28px大家可以去参阅一下手册，我就不多讲了。<br/><br/>　　效果基本上已经实现了，剩下的就是修改菜单的超链接样式，在css.css中添加以下代码：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code75956);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code75956>#menu ul li a:link,#menu ul li a:visited {font-weight:bold;color:#666}<br/>#menu ul li a:hover{}</div></div><br/>这个也不多说了，没什么好说的了，最后的效果如下：<br/><br/><img src="http://zmv.cc/download.asp?id=20" border="0" alt=""/><br/><br/>HTML和CSS源文件：<br/><br/><span id="down_kv5cfvrptm"></span><script language="javascript" type="text/javascript">doAjax('?action=Antidown&id=21&downurl=download%2Easp%3Fid%3D21&main=%E7%82%B9%E5%87%BB%E4%B8%8B%E8%BD%BD%E6%AD%A4%E6%96%87%E4%BB%B6','down_kv5cfvrptm');</script><br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/web3/22.html</link>
			<title><![CDATA[Div+CSS布局入门教程(三)【转载】]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[技术资料]]></category>
			<pubDate>Sat,28 Sep 2024 03:37:29 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=22</guid>
		<description><![CDATA[三、页面顶部制作(1)<br/><br/>　　当我们写好了页面大致的DIV结构后，我们就可以开始细致地对每一个部分进行制作了。<br/><br/>　　在上一章中我们写入了一些样式，那些样式是为了预览结构而写入的，我们把css.css中的样式全部清除掉，重新写入以下样式代码：<br/>程序代码 程序代码:<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code9473);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code9473><br/>/*基本信息*/<br/>body {font:12px Tahoma;margin:0px;text-align:center;background:#FFF;}<br/>a:link,a:visited {font-size:12px;text-decoration:none;}<br/>a:hover{}<br/><br/>/*页面层容器*/<br/>#container {width:800px;margin:10px auto}<br/></div></div><br/>样式说明：<br/><br/>　　a:link,a:visited {font-size:12px;text-decoration:none;}<br/>　　a:hover {}<br/><br/>　　这两项分别是控制页面中超链接的样式，具体我就不说明了，请大家参阅手册。<br/><br/>　　#container {width:800px;margin:10px auto}<br/><br/>　　指定整个页面的显示区域。<br/>　　width:800px指定宽度为800像素，这里根据实际所需设定。<br/>　　margin:10px auto，则是页面上、下边距为10个像素，并且居中显示。<br/>　　上一章中我们讲过，对层的margin属性的左右边距设置为auto可以让层居中显示。<br/><br/>　　接下来，我们开始制作TOP部分，TOP部分包括了LOGO、菜单和Banner，首先我们要做的就是对设计好的图片进行切片，以下是在FW下完成的切片：<br/><img src="http://zmv.cc/download.asp?id=15" border="0" alt=""/><br/>我将TOP部分切片为两部分，第一部分包括了LOGO和一条横线。由于LOGO图片并没有太多的颜色，这里我于是将这一部分保存为GIF格式，调色板选择为精确，选择Alpha透明度，色版为白色(此处颜色应与背景色相同)，导出为logo.gif，图像宽度为800px。<br/><br/>　　到这里，有的朋友就说了，* 为什么要使用GIF格式？使用JPEG不是更好吗？<br/>　　因为GIF格式的图片文件更小，这样能使页面载入的速度更快，当然使用此格式之前必须确定图片并没有使用太多的颜色，当我们使用了GIF格式时，从肉眼上并不能看出图片有什么太大的变化，因此这是可行的。<br/><br/>　　* 接下来的Banner部分还能使用GIF格式吗？<br/>　　答案是不能，因为Banner部分是一个细致的图片，如果使用GIF格式颜色会有太大的损失，所以必须使用JPEG格式，将文件导出为banner.jpg。<br/><br/>　　* 合理的切片是非常之重要的，因为切片的方法正确与否决定了CSS书写的简易程度以及页面载入速度。<br/><br/>　　切好片后，我们还需要对TOP部分进行分析并将DIV结构写入Header中代码如下：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code82365);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code82365>&lt;div id=&#34;menu&#34;&gt;<br/>　　　&lt;ul&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;首页&lt;/a&gt;&lt;/li&gt;<br/>　　　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;博客&lt;/a&gt;&lt;/li&gt;<br/>　　　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;设计&lt;/a&gt;&lt;/li&gt;<br/>　　　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;相册&lt;/a&gt;&lt;/li&gt;<br/>　　　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;论坛&lt;/a&gt;&lt;/li&gt;<br/>　　　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　　　&lt;li&gt;&lt;a href=&#34;#&#34;&gt;关于&lt;/a&gt;&lt;/li&gt;<br/>　　　&lt;/ul&gt;<br/>　　&lt;/div&gt;<br/>　　&lt;div id=&#34;banner&#34;&gt;<br/>　　&lt;/div&gt;</div></div><br/>为什么要这么写呢，因为对菜单使用列表&lt;li&gt;形式，可以在以后方便对菜单定制样式。<br/><br/>　　而为什么要添加以下代码呢？<br/>　　&lt;li class=&#34;menuDiv&#34;&gt;&lt;/li&gt;<br/>　　插入这一段代码是可以方便地对菜单选项之间插入一些分隔样式，例如预览图中的竖线分隔。<br/><br/>　　然后我们在css.css中再写入以下样式：<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code90247);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code90247>/*页面头部*/<br/>#header {background:url(logo.gif) no-repeat}</div></div><br/>样式说明：<br/>　　#header {background:url(logo.gif) no-repeat}<br/>　　给页面头部分加入一个背景图片LOGO，并且不作填充。<br/><br/>　　这里，我们没有指定header层的高度，为什么不指定呢？<br/><br/>　　因为header层中还有菜单和banner项，所以层的高度暂时是未知的，而层的属性又可以让层根据内容自动设定调整，因此我们并不需要指定高度。<br/><br/>　　* 接下来，我们开始制作菜单，留到下一章，教程中相关文件请到下一章下载！<br/>]]></description>
		</item>
		
			<item>
			<link>http://zmv.cc/article/web3/21.html</link>
			<title><![CDATA[Div+CSS布局入门教程(二)【转载】]]></title>
			<author>PKKT@163.COM(admin)</author>
			<category><![CDATA[技术资料]]></category>
			<pubDate>Sat,28 Sep 2024 03:32:53 +0800</pubDate>
			<guid>http://zmv.cc/default.asp?id=21</guid>
		<description><![CDATA[二、写入整体层结构与CSS<br/><br/>　　接下来我们在桌面新建一个文件夹，命名为“DIV+CSS布局练习”，在文件夹下新建两个空的记事本文档，输入以下内容：<br/>程序代码 ：<br/><span style="color:#000000">[color=#0000ff]&lt;</span><span style="color:#0000ff">!</span>DOCTYPE <span style="color:#008000">html</span> PUBLIC <span style="color:#ff00ff">&#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34;</span> <span style="color:#ff00ff">&#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;</span><span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span><span style="color:#008000">html</span> xmlns<span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;</span><span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span>head<span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span>meta http<span style="color:#0000ff">-</span>equiv<span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;Content-Type&#34;</span> content<span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;text/html; charset=gb2312&#34;</span> <span style="color:#0000ff">/</span><span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span>title<span style="color:#0000ff">&gt;</span>无标题文档<span style="color:#0000ff">&lt;</span><span style="color:#0000ff">/</span>title<span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span>link href<span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;css.css&#34;</span> rel<span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;stylesheet&#34;</span> <span style="color:#008000">type</span><span style="color:#0000ff">=</span><span style="color:#ff00ff">&#34;text/css&#34;</span> <span style="color:#0000ff">/</span><span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span><span style="color:#0000ff">/</span>head<span style="color:#0000ff">&gt;</span><br/><br/><span style="color:#0000ff">&lt;</span>body<span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span><span style="color:#0000ff">/</span>body<span style="color:#0000ff">&gt;</span><br/><span style="color:#0000ff">&lt;</span><span style="color:#0000ff">/</span><span style="color:#008000">html</span><span style="color:#0000ff">&gt;</span>[/color]<br/><br/>　　这是XHTML的基本结构，将其命名为index.htm，另一个记事本文档则命名为css.css。<br/><br/>　　下面，我们在&lt;body&gt;&lt;/body&gt;标签对中写入DIV的基本结构，代码如下：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code93160);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://zmv.cc/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code93160><br/>&lt;div id=&#34;container&#34;&gt;&lt;!--页面层容器--&gt;<br/>　　&lt;div id=&#34;Header&#34;&gt;&lt;!--页面头部--&gt;<br/>　　&lt;/div&gt;<br/>　　&lt;div id=&#34;PageBody&#34;&gt;&lt;!--页面主体--&gt;<br/>　　　　&lt;div id=&#34;Sidebar&#34;&gt;&lt;!--侧边栏--&gt;<br/>　　　　&lt;/div&gt;<br/>　　　　&lt;div id=&#34;MainBody&#34;&gt;&lt;!--主体内容--&gt;<br/>　　　　&lt;/div&gt;<br/>　　&lt;/div&gt;<br/>　　&lt;div id=&#34;Footer&#34;&gt;&lt;!--页面底部--&gt;<br/>　　&lt;/div&gt;<br/>&lt;/div&gt;<br/></div></div><br/><br/>为了使以后阅读代码更简易，我们应该添加相关注释，接下来打开css.css文件，写入CSS信息，代码如下：<br/><br/>程序代码 程序代码<br/><br/>/*基本信息*/<br/>body {font:12px Tahoma;margin:0px;text-align:center;background:#FFF;}<br/><br/>/*页面层容器*/<br/>#container {width:100%}<br/><br/>/*页面头部*/<br/>#Header {width:800px;margin:0 auto;height:100px;background:#FFCC99}<br/><br/>/*页面主体*/<br/>#PageBody {width:800px;margin:0 auto;height:400px;background:#CCFF00}<br/><br/>/*页面底部*/<br/>#Footer {width:800px;margin:0 auto;height:50px;background:#00FFFF}<br/><br/>　　把以上文件保存，用浏览器打开，这时我们已经可以看到基础结构了，这个就是页面的框架了。<br/>　　关于以上CSS的说明（详细请参考CSS2.0中文手册，网上有下载）：<br/><br/>　　1、请养成良好的注释习惯，这是非常重要的；<br/><br/>　　2、body是一个HTML元素，页面中所有的内容都应该写在这标签对之内，我就不多说了；<br/><br/>　　3、讲解一些常用的CSS代码的含义：<br/><br/>　　　　font:12px Tahoma；<br/>　　　　这里使用了缩写，完整的代码应该是：font-size:12px;font-family:Tahoma；说明字体为12像素大小，字体为Tahoma格式；<br/><br/>　　　　margin:0px；<br/>　　　　也使用了缩写，完整的应该是：<br/><br/>　　　　margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px<br/>　　　　或<br/>　　　　margin:0px 0px 0px 0px<br/><br/>　　　　顺序是 上 / 右 / 下 / 左，你也可以书写为margin:0(缩写)；<br/>　　　　以上样式说明body部分对上右下左边距为0像素，如果使用auto则是自动调整边距，<br/>　　　　另外还有以下几种写法：<br/>　　　　margin:0px auto；<br/>　　　　说明上下边距为0px，左右为自动调整；<br/>　　　　我们以后将使用到的padding属性和margin有许多相似之处，他们的参数是一样的，<br/>　　　　只不过各自表示的含义不相同，margin是外部距离，而padding则是内部距离。<br/><br/>　　　　text-align:center<br/>　　　　文字对齐方式，可以设置为左、右、中，这里我将它设置为居中对齐。<br/><br/>　　　　background:#FFF<br/>　　　　设置背景色为白色，这里颜色使用了缩写，完整的应该是background:#FFFFFF。<br/>　　　　background可以用来给指定的层填充背景色、背景图片，以后我们将用到如下格式：<br/>　　　　background:#ccc url(&#39;bg.gif&#39;) top left no-repeat；<br/>　　　　表示：使用#CCC(灰度色)填充整个层，使用bg.gif做为背景图片，<br/>　　　　top left<br/>　　　　表示图片位于当前层的左上端，no-repeat表示仅显示图片大小而不填充满整个层。<br/>　　　　top/right/left/bottom/center<br/>　　　　用于定位背景图片，分别表示 上 / 右 / 下 / 左 / 中；还可以使用<br/>　　　　background:url(&#39;bg.gif&#39;) 20px 100px;<br/>　　　　表示X座标为20像素，Y座标为100像素的精确定位；<br/>　　　　repeat/no-repeat/repeat-x/repeat-y<br/>　　　　分别表示 填充满整个层 / 不填充 / 沿X轴填充 / 沿Y轴填充。<br/><br/>　　　　height / width / color<br/>　　　　分别表示高度(px)、宽度(px)、字体颜色(HTML色系表)。<br/><br/>　　4、如何使页面居中？<br/>　　　　大家将代码保存后可以看到，整个页面是居中显示的，那么究竟是什么原因使得页面居中显示呢？<br/>　　　　是因为我们在#container中使用了以下属性：<br/>　　　　margin:0 auto;<br/>　　　　按照前面的说明，可以知道，表示上下边距为0，左右为自动，因此该层就会自动居中了。<br/>　　　　如果要让页面居左，则取消掉auto值就可以了，因为默认就是居左显示的。<br/>　　　　通过margin:auto我们就可以轻易地使层自动居中了。<br/><br/>　　5、这里我只介绍这些常用的CSS属性了，其他的请参看CSS2.0中文手册。<br/>]]></description>
		</item>
		
</channel>
</rss>
