<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xqlab's Blog &#187; 设计研究</title>
	<atom:link href="http://www.xqlab.com/html/ycategory/design/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xqlab.com</link>
	<description>一个研究电脑和网络等IT技术的实验室</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:47:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS的一些技巧</title>
		<link>http://www.xqlab.com/html/y2009/293.html</link>
		<comments>http://www.xqlab.com/html/y2009/293.html#comments</comments>
		<pubDate>Wed, 28 Jan 2009 15:03:11 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[设计研究]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=293</guid>
		<description><![CDATA[1、不要使用过小的图片做背景平铺。这就是为何很多人都不用 1px 的原因，这才知晓。宽高 1px 的图片平铺出一个宽高 200px 的区域，需要 200*200=40, 000 次，占用资源。
2、无边框。推荐的写法是 ... ]]></description>
			<content:encoded><![CDATA[<p>1、不要使用过小的图片做背景平铺。这就是为何很多人都不用 1px 的原因，这才知晓。宽高 1px 的图片平铺出一个宽高 200px 的区域，需要 200*200=40, 000 次，占用资源。</p>
<p>2、无边框。推荐的写法是 border:none;，哈哈，我一直在用这个。 border:0; 只是定义边框宽度为零，但边框样式、颜色还是会被浏览器解析，占用资源。</p>
<p>3、慎用通配符。所谓通配符，就是将 CSS 中的所有标签均初始化，不管用的不用的，过时的先进的，一视同仁，这样，大大的占用资源。要有选择的初始化标签。</p>
<p><span id="more-293"></span>4、CSS 的十六进制颜色代码缩写。习惯了缩写及小写，这才知道，原来不是推荐的写法，为的是减少解析所占用的资源。但同时会增加文件体积。孰优孰劣，有待仔细考证。</p>
<p>5、样式放头上，脚本放脚下。不内嵌，只外链。</p>
<p>6、坚决不用 CSS 表达式。</p>
<p>7、使用 引用样式表，而不是通过 @import 导入。</p>
<p>8、一般来说，PNG 比 GIF 要小，小得多。再者，GIF 中有多少颜色是被浪费的，很值得优化。</p>
<p>9、千万不要在 HTML 中缩放图片，一者不好看，二者占资源。</p>
<p>10、正文字体最好用偶数，12px、14px、16px，效果非常好。特例，15px。 </p>
<p>11、block、ul、ol 等上下留出至少一倍行距，左侧至少两倍行距，右侧随意。</p>
<p>12、段落之间，至少要有一倍行距。</p>
<p>13、强行指定某些元素的 line-height，正文 1.6 倍于文字大小，标题 1.3 倍。</p>
<p>14、中文标点用全角。英文夹杂在中文中，左右空格，半角。</p>
<p>15、中文字体的粗体和斜体，远离较好，利民利己。<br />
<h3>相关日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/179.html" title="CSS属性代码大全">CSS属性代码大全</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2009/293.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用Rewrite规则封掉对方的IP</title>
		<link>http://www.xqlab.com/html/y2008/195.html</link>
		<comments>http://www.xqlab.com/html/y2008/195.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 12:51:36 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[设计研究]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Rewrite]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=195</guid>
		<description><![CDATA[很多情况下，某个 IP 的访问很容易造成 CPU 100% （比如 某些搜索引擎的固定抓取，别人大量的采集站点），这个时候我们就要利用一些有效的手段封掉对方的 IP，让他无法消耗服务器的资源，... ]]></description>
			<content:encoded><![CDATA[<p>很多情况下，某个 IP 的访问很容易造成 CPU 100% （比如 某些搜索引擎的固定抓取，别人大量的采集站点），这个时候我们就要利用一些有效的手段封掉对方的 IP，让他无法消耗服务器的资源，封 IP 的方法有很多种，如果你的 Web 服务器安装了 Rewrite 模块的话，也可以试试利用 Rewrite 规则封掉对方的 IP。</p>
<p>　　1、例如我们把某个特定的 IP 直接重定向到 baidu 首页，在网站根目录的 .htaccess 文件里添加代码：</p>
<p>　　RewriteCond %{REMOTE_ADDR} 192.168.1.1 [NC]</p>
<p>　　RewriteRule ^(.*)$ http://www.baidu.com/$1 [R=301]</p>
<p>　　将 192.168.1.1 这个 IP 替换成您要限制的 IP 即可</p>
<p>　　2、如果要实现多个 IP ，可以这样写：</p>
<p>　　RewriteCond %{REMOTE_ADDR} 192.168.1.1 [OR]</p>
<p>　　RewriteCond %{REMOTE_ADDR} 192.168.1.2 [NC]</p>
<p>　　RewriteRule ^(.*)$ http://www.baidu.com/$1 [R=301]</p>
<p>其实就是个301重定向。<br />
<h3>随机日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/201.html" title="恢复受损的Word文档的方法">恢复受损的Word文档的方法</a></li>
<li><a href="http://www.xqlab.com/html/y2009/287.html" title="IE8 RC1版遭泄露 提前释出">IE8 RC1版遭泄露 提前释出</a></li>
<li><a href="http://www.xqlab.com/html/y2008/171.html" title="奥巴马获胜演说的演讲稿与MP3">奥巴马获胜演说的演讲稿与MP3</a></li>
<li><a href="http://www.xqlab.com/html/y2008/70.html" title="解决电脑接麦克风出现噪音方法">解决电脑接麦克风出现噪音方法</a></li>
<li><a href="http://www.xqlab.com/html/y2008/250.html" title="快速申请QQ号码的方法">快速申请QQ号码的方法</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/195.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz! 发布安全补丁包（2008-11-17）</title>
		<link>http://www.xqlab.com/html/y2008/186.html</link>
		<comments>http://www.xqlab.com/html/y2008/186.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 12:06:02 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[设计研究]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=186</guid>
		<description><![CDATA[今天上Discuz!发现出了安全漏洞，而且是全版本的，汗，各位站长赶紧更新吧~
官方解释是：Discuz! wap 功能部分在对文字进行编码转换时，存在合法变量被恶意覆盖问题，此问题将可能导致您的... ]]></description>
			<content:encoded><![CDATA[<p>今天上Discuz!发现出了安全漏洞，而且是全版本的，汗，各位站长赶紧更新吧~</p>
<p>官方解释是：Discuz! wap 功能部分在对文字进行编码转换时，存在合法变量被恶意覆盖问题，此问题将可能导致您的论坛受到安全性威胁。为此我们强烈建议您立即下载补丁进行修补。</p>
<p>补丁下载地址：<br />
<a href="http://download.comsenz.com/Discuz/patch/Discuz_patch_20081117.zip" target="_blank">http://download.comsenz.com/Disc &#8230; _patch_20081117.zip</a></p>
<p>本地下载：<a href="http://www.xqlab.com/down/Discuz_patch_20081117.zip" target="_blank">http://www.xqlab.com/down/Discuz_patch_20081117.zip</a></p>
<p>MD5：530527c6be93c5c848125985242d7544</p>
<p>* 此补丁包中含有 Discuz! 各版本程序，解开压缩包后，请根据您的版本号更新</p>
<p>* Discuz! 6.0 用户建议可以仅仅对安全问题进行更新，但我们建议您下载完整程序包进行更新，6.0 版本程序此次进行了大规模的优化和功能修正。（地址 <a href="http://download.comsenz.com/Discuz/6.0.0/" target="_blank">http://download.comsenz.com/Discuz/6.0.0/</a>）</p>
<p>* 本次修正不包含 Discuz! 7.0 测试版，建议参与测试的站点暂时关闭wap功能</p>
<p>* 如果您由于某种原因，无法及时修补，请您暂时关闭 &#8220;wap&#8221; 功能<br />
<h3>随机日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/212.html" title="微软最新XML安全漏洞,赶快修复！">微软最新XML安全漏洞,赶快修复！</a></li>
<li><a href="http://www.xqlab.com/html/y2008/201.html" title="恢复受损的Word文档的方法">恢复受损的Word文档的方法</a></li>
<li><a href="http://www.xqlab.com/html/y2008/262.html" title="映射文件夹为虚拟磁盘分区的方法">映射文件夹为虚拟磁盘分区的方法</a></li>
<li><a href="http://www.xqlab.com/html/y2009/325.html" title="经典的二八定律，你是那百分之多少呢？">经典的二八定律，你是那百分之多少呢？</a></li>
<li><a href="http://www.xqlab.com/html/y2008/250.html" title="快速申请QQ号码的方法">快速申请QQ号码的方法</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/186.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>网页设计中的标准尺寸</title>
		<link>http://www.xqlab.com/html/y2008/181.html</link>
		<comments>http://www.xqlab.com/html/y2008/181.html#comments</comments>
		<pubDate>Sun, 16 Nov 2008 02:02:37 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[编程代码]]></category>
		<category><![CDATA[设计研究]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=181</guid>
		<description><![CDATA[网页设计标准尺寸:
1、800*600下，网页宽度保持在778以内，就不会出现水平滚动条，高度则视版面和内容决定。
2、1024*768下，网页宽度保持在1002以内，如果满框显示的话,高度是612-615之间.就不... ]]></description>
			<content:encoded><![CDATA[<div class="UBBContent">网页设计标准尺寸:</div>
<div class="UBBContent">1、800*600下，网页宽度保持在778以内，就不会出现水平滚动条，高度则视版面和内容决定。<br />
2、1024*768下，网页宽度保持在1002以内，如果满框显示的话,高度是612-615之间.就不会出现水平滚动条和垂直滚动条。(在dw里面有设定好的标准值, 1024*768页面的标准大小是955*600,照着它的尺寸做就行了)<br />
3、在ps里面做网页可以在800*600状态下显示全屏，页面的下方又不会出现滑动条，尺寸为740*560左右</div>
<p><span id="more-181"></span>4、在PS里做的图到了网上就不一样了，颜色等等方面，因为ＷＥＢ上面只用到２５６ＷＥＢ安全色，而ＰＳ中的ＲＧＢ或者ＣＭＹＫ以及ＬＡＢ或者ＨＳＢ的色域很宽颜色范围很广，所以自然会有失色的现象.<br />
页面标准按800*600分辨率制作，实际尺寸为778*434px<br />
页面长度原则上不超过3屏，宽度不超过1屏<br />
每个标准页面为A4幅面大小，即8.5X11英寸<br />
全尺寸banner为468*60px，半尺寸banner为234*60px，小banner为88*31px<br />
另外120*90，120*60也是小图标的标准尺寸<br />
每个非首页静态页面含图片字节不超过60K，全尺寸banner不超过14K<br />
标准网页广告尺寸规格<br />
1、120*120，这种广告规格适用于产品或新闻照片展示。<br />
2、120*60，这种广告规格主要用于做LOGO使用。<br />
3、120*90，主要应用于产品演示或大型LOGO。<br />
4、125*125，这种规格适于表现照片效果的图像广告。<br />
5、234*60，这种规格适用于框架或左右形式主页的广告链接。<br />
6、392*72，主要用于有较多图片展示的广告条，用于页眉或页脚。<br />
7、468*60，应用最为广泛的广告条尺寸，用于页眉或页脚。<br />
8、88*31，主要用于网页链接，或网站小型LOGO。</p>
<p>广告形式像素大小最大尺寸备注BUTTON120*60(必须用gif)<br />
215*50(必须用gif)<br />
7K<br />
7K 通栏760*100<br />
430*5025K<br />
15K静态图片或减少运动效果超级通栏 760*100 to 760*200共40K静态图片或减少运动效果巨幅广告336*280<br />
585*12035K 竖边广告130*30025K 全屏广告800*60040K必须为静态图片，FLASH格式 图文混排各频道不同15K  弹出窗口400*300(尽量用gif)40K BANNER468*60(尽量用gif)18K 悬停按钮80*80(必须用gif)7K  流媒体300*200（可做不规则形状但尺寸不能超过300*200）30K播放时间 小于5秒60帧(1秒/12帧)<br />
网页中的广告尺寸<br />
1、首页右上，尺寸120*60    <br />
2、首页顶部通栏，尺寸468*60    <br />
3、首页顶部通栏，尺寸760*60<br />
4、首页中部通栏，尺寸580*60  <br />
5、内页顶部通栏，尺寸468*60  <br />
6、内页顶部通栏，尺寸760*60<br />
7、内页左上，尺寸150*60或300*300  <br />
8、下载地址页面，尺寸560*60或468*60<br />
9、内页底部通栏，尺寸760*60    <br />
10、左漂浮，尺寸80*80或100*100<br />
11、右漂浮，尺寸80*80或100*100<br />
以上几种说法可能有点小的出入，大家可以探讨一下。<br />
IAB和EIAA发布新的网络广告尺寸标准<br />
在这6种格式中，除了去年iab发布的4种“通用广告包”中的格式：160&#215;600, 300&#215;250, 180&#215;150及728&#215;90，还包括新公布的468&#215;60 和120&#215;600（擎天柱）2种。<br />
<h3>随机日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2008/91.html" title="百度C2C购物平台“有啊”正式上线">百度C2C购物平台“有啊”正式上线</a></li>
<li><a href="http://www.xqlab.com/html/y2010/418.html" title="赠送腾讯微博邀请码五枚(持续更新)">赠送腾讯微博邀请码五枚(持续更新)</a></li>
<li><a href="http://www.xqlab.com/html/y2008/186.html" title="Discuz! 发布安全补丁包（2008-11-17）">Discuz! 发布安全补丁包（2008-11-17）</a></li>
<li><a href="http://www.xqlab.com/html/y2008/157.html" title="下载：DirectX完整安装包2008.11最新版">下载：DirectX完整安装包2008.11最新版</a></li>
<li><a href="http://www.xqlab.com/html/y2008/213.html" title="2009年部分法定节假日放假时间">2009年部分法定节假日放假时间</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/181.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS属性代码大全</title>
		<link>http://www.xqlab.com/html/y2008/179.html</link>
		<comments>http://www.xqlab.com/html/y2008/179.html#comments</comments>
		<pubDate>Sun, 16 Nov 2008 01:57:13 +0000</pubDate>
		<dc:creator>xqlab</dc:creator>
				<category><![CDATA[编程代码]]></category>
		<category><![CDATA[设计研究]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.xqlab.com/?p=179</guid>
		<description><![CDATA[来自网络，搜集了一些常用的CSS代码，记录在这里以备使用。有需要的可以拿走。
字体样式(Font Style)
序号 中文说明 标记语法
1 字体样式 {font:font-style font-variant font-weight font-size font-family}  
2 ... ]]></description>
			<content:encoded><![CDATA[<p>来自网络，搜集了一些常用的CSS代码，记录在这里以备使用。有需要的可以拿走。</p>
<p>字体样式(Font Style)</p>
<p>序号 中文说明 标记语法<br />
1 字体样式 {font:font-style font-variant font-weight font-size font-family}  <br />
2 字体类型 {font-family:&#8221;字体1&#8243;,&#8221;字体2&#8243;,&#8221;字体3&#8243;,&#8230;}  </p>
<p><span id="more-179"></span>3 字体大小 {font-size:数值|inherit| medium| large| larger| x-large| xx-large| small| smaller| x-small| xx-small}  <br />
4 字体风格 {font-style:inherit|italic|normal|oblique}  <br />
5 字体粗细  {font-weight:100-900|bold|bolder|lighter|normal;}  <br />
6 字体颜色  {color:数值;}<br />
7 阴影颜色 {text-shadow:16位色值}<br />
8 字体行高  {line-height:数值|inherit|normal;}<br />
9 字 间 距  {letter-spacing:数值|inherit|normal}<br />
10 单词间距 {word-spacing:数值|inherit|normal}<br />
11 字体变形 {font-variant:inherit|normal|small-cps }  <br />
12 英文转换 {text-transform:inherit|none|capitalize|uppercase|lowercase}<br />
13 字体变形 {font-size-adjust:inherit|none}  <br />
14 字体 {font-stretch:condensed|expanded|extra-condensed|extra-expanded|inherit|narrower|normal| semi-condensed|semi-expanded|ultra-condensed|ultra-expanded|wider}  <br />
文本样式(Text Style)<br />
序号 中文说明 标记语法<br />
1 行 间 距 {line-height:数值|inherit|normal;}  <br />
2 文本修饰 {text-decoration:inherit|none|underline|overline|line-through|blink}<br />
3 段首空格  {text-indent:数值|inherit}<br />
4 水平对齐 {text-align:left|right|center|justify}  <br />
5 垂直对齐 {vertical-align:inherit|top|bottom|text-top|text-bottom|baseline|middle|sub|super}  <br />
6 书写方式 {writing-mode:lr-tb|tb-rl}  <br />
背景样式<br />
序号 中文说明 标记语法<br />
1 背景颜色 {background-color:数值}<br />
2 背景图片 {background-image: url(URL)|none}<br />
3 背景重复 {background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y}<br />
4 背景固定 {background-attachment:fixed|scroll}<br />
5 背景定位 {background-position:数值|top|bottom|left|right|center}<br />
6 背影样式 {background:背景颜色|背景图象|背景重复|背景附件|背景位置}<br />
框架样式(Box Style)  <br />
序号 中文说明 标记语法<br />
1 边界留白 {margin:margin-top margin-right margin-bottom margin-left}<br />
2 补　　白 {padding:padding-top padding-right padding-bottom padding-left}<br />
3 边框宽度 {border-width:border-top-width border-right-width border-bottom-width border-left-width}　　<br />
宽度值： thin|medium|thick|数值<br />
4 边框颜色 {border-color:数值 数值 数值 数值}　　数值：分别代表top、right、bottom、left颜色值<br />
5 边框风格 {border-style:none|hidden|inherit|dashed|solid|double|inset|outset|ridge|groove}<br />
6 边　　框 {border:border-width border-style color}<br />
  上 边 框 {border-top:border-top-width border-style color}<br />
  右 边 框 {border-right:border-right-width border-style color}<br />
  下 边 框 {border-bottom:border-bottom-width border-style color}<br />
  左 边 框 {border-left:border-left-width border-style color}<br />
7 宽　　度 {width:长度|百分比| auto}<br />
8 高　　度 {height:数值|auto}<br />
9 漂　　浮 {float:left|right|none}<br />
10 清　　除 {clear:none|left|right|both}<br />
分类列表<br />
序号 中文说明 标记语法<br />
1 控制显示 {display:none|block|inline|list-item}<br />
2 控制空白 {white-space:normal|pre|nowarp}<br />
3 符号列表 {list-style-type:disc|circle|square|decimal|lower-roman|upper-roman|lower-alpha|upper-alpha|none}<br />
4 图形列表 {list-style-image:URL}<br />
5 位置列表 {list-style-position:inside|outside}<br />
6 目录列表 {list-style:目录样式类型|目录样式位置|url}<br />
7 鼠标形状 {cursor:hand|crosshair|text|wait|move|help|e-resize|nw-resize|w-resize|s-resize|se-resize|sw-resize}<br />
<h3>相关日志</h3>
<ul class="related_post">
<li><a href="http://www.xqlab.com/html/y2009/293.html" title="CSS的一些技巧">CSS的一些技巧</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xqlab.com/html/y2008/179.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
