<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/imouou" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/imouou" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 20 Sep 2010 15:21:42 GMT</lastBuildDate><title>o仔札记 -- W3C标准下的页面构建</title><description>W3C标准下的页面构建</description><image><url>http://www.feedsky.com/feed/imouou/sc/gif</url><title>o仔札记 -- W3C标准下的页面构建</title><link>http://imouou.com/blog</link></image><link>http://imouou.com/blog</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Sat, 25 Sep 2010 13:50:36 GMT</pubDate><item><title>Iframe内容自适应两种方法</title><link>http://imouou.com/blog/iframe-auto-fix-it/</link><content:encoded>&lt;p&gt;第1种，都在同一个页面，通过脚本写在当前页面控制加载内容的自适应，这种方法很不错，不过不能兼容apple safari 浏览器。 在safari浏览器的第一次加载是可以正常的，如果里面有链接的target也是指向这个iframe ，那么内容就不能自适应，会以第一次加载的高度为准。&lt;br /&gt;
&lt;span id=&quot;more-424&quot;&gt;&lt;/span&gt;&lt;br /&gt;
第1种：首页加载代码&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
function iframeFitHeight(oIframe)
   {//Iframe窗口自适应高度 兼容 IE6.0 FF2.0以上
 try
    {
       var oWin = oIframe.name ? window.frames[oIframe.name] : oIframe.contentWindow;
       oIframe.style.height = oWin.document.body.scrollHeight + &amp;quot;px&amp;quot;;
    }
   catch(e){}
    }
&amp;lt;/script&amp;gt;
 &lt;/pre&gt;
&lt;p&gt;调用代码用onload函数&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
 &amp;lt;iframe border=&amp;quot;0&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot; src=&amp;quot;main.html&amp;quot; name=&amp;quot;myframe&amp;quot; width=&amp;quot;100%&amp;quot; onload=&amp;quot;iframeFitHeight(this)&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/pre&gt;
&lt;p&gt;到这里基本可以支持主流浏览器除了safari。&lt;br /&gt;
解决办法就是在每点击一次，load一次内容并且重新赋予内容的高度给予父层的iframe，因此下面的代码一样需要加载在首页。&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
/* 修复safari内部链接点击 */
$(function(){
    $(&amp;quot;#mainframe&amp;quot;).load(function(){
        var height = $(this).contents().find(&amp;quot;#contenter&amp;quot;).height() + 40;
//这样给以一个最小高度
        $(this).height( height &amp;lt; 400 ? 400 : height );
    });
});
&lt;/pre&gt;
&lt;p&gt;第2种：&lt;br /&gt;
这种需要把脚本代码放到准备加载到iframe的内容里。此方法需要页面可以让你更改，因为代码需要加载在目标的内容里。不过一样不兼容safari的第二次点击。&lt;/p&gt;
&lt;p&gt;main.htm: 想要在这个页面显示iframe的内容的页面。&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
       &amp;lt;meta  http-equiv='Content-Type'  content='text/html;  charset=gb2312' /&amp;gt;
       &amp;lt;meta  name='author'  content='F.R.Huang(meizz梅花雪)//www.meizz.com' /&amp;gt;
       &amp;lt;title&amp;gt;iframe自适应加载的页面高度&amp;lt;/title&amp;gt;
    &amp;lt;/head&amp;gt;  

    &amp;lt;body&amp;gt;
        &amp;lt;iframe src=&amp;quot;child.htm&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;child.htm:要加载自适应的网页&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta  http-equiv='Content-Type'  content='text/html;  charset=gb2312' /&amp;gt;
    &amp;lt;meta  name='author'  content='F.R.Huang(meizz梅花雪)//www.meizz.com' /&amp;gt;
    &amp;lt;title&amp;gt;iframe  自适应其加载的网页(多浏览器兼容)&amp;lt;/title&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
    &amp;lt;!--
    function iframeAutoFit()
    {
        var ex;
        try
        {
            if(window!=parent)
            {
                var a = parent.document.getElementsByTagName(&amp;quot;IFRAME&amp;quot;);
                for(var i=0; i&amp;lt;a.length; i++) //author:meizz
                {
                    if(a[i].contentWindow==window)
                    {
                        var h1=0, h2=0;
                        if(document.documentElement&amp;amp;&amp;amp;document.documentElement.scrollHeight)
                        {
                            h1=document.documentElement.scrollHeight;
                        }
                        if(document.body) h2=document.body.scrollHeight;

                        var h=Math.max(h1, h2);
                        if(document.all) {h += 4;}
                        if(window.opera) {h += 1;}
                        a[i].style.height = h +&amp;quot;px&amp;quot;;
                    }
                }
            }
        }
        catch (ex){}
    }
    if(document.attachEvent)
    {
        window.attachEvent(&amp;quot;onload&amp;quot;,  iframeAutoFit);
        window.attachEvent(&amp;quot;onresize&amp;quot;,  iframeAutoFit);
    }
    else
    {
        window.addEventListener('load',  iframeAutoFit,  false);
        window.addEventListener('resize',  iframeAutoFit,  false);
    }
    //--&amp;gt;
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;table border=&amp;quot;1&amp;quot; width=&amp;quot;200&amp;quot; style=&amp;quot;height: 400px; background-color: yellow&amp;quot;&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;iframe  自适应其加载的网页(多浏览器兼容，支持XHTML)&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;以上两种方法的代码均来自互联网. 部分有注释作者.&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/sanlan-zishiying-buju/&quot; title=&quot;三栏宽度自适应垂直等高布局思考&quot;&gt;三栏宽度自适应垂直等高布局思考&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/white-space-3dayingyong/&quot; title=&quot;white-space 的三大应用-宽度自适应&quot;&gt;white-space 的三大应用-宽度自适应&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105562/imouou/feedsky/s.gif?r=http://imouou.com/blog/iframe-auto-fix-it/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105562/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105562/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/iframe-auto-fix-it/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>第1种，都在同一个页面，通过脚本写在当前页面控制加载内容的自适应，这种方法很不错，不过不能兼容apple safari 浏览器。 在safari浏览器的第一次加载是可以正常的，如果里面有链接的target也是指向这个iframe ，那么内容就不能自适应，会以第一次加载的高度为准。

第1种：首页加载代码

&amp;#60;script type=&amp;#34;text/javascript&amp;#34;&amp;#62;
function iframeFitHeight(oIframe)
   {//Iframe窗口自适应高度 兼容 IE6.0 FF2.0以上
 try
    {
       var oWin = oIframe.name ? window.frames[oIframe.name] : oIframe.contentWindow;
       oIframe.style.height = oWin.document.body.scrollHeight + &amp;#34;px&amp;#34;;
    }
   catch(e){}
    }
&amp;#60;/script&amp;#62;
 
调用代码用onload函数

 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105562/imouou/feedsky/s.gif?r=http://imouou.com/blog/iframe-auto-fix-it/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105562/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105562/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>自适应</category><category>iframe</category><category>Javascript</category><pubDate>Mon, 20 Sep 2010 23:21:42 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/iframe-auto-fix-it/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=424</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/iframe-auto-fix-it/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105562/6140287</fs:itemid></item><item><title>让wordpress显示首页index.html</title><link>http://imouou.com/blog/modify-wordpress-index-php-to-index-html/</link><content:encoded>&lt;p&gt;假设我有一个网站放在跟wordpress同个目录，需要第一个是显示 index.html 而不是 index.php 这个时候，下面的方法就派得上用场了。如果你的wordpress不介意在二级目录就没这样的烦恼了。&lt;/p&gt;
&lt;p&gt;原因：wordpress的index.php 会一直循环调用，如果更改了.htaccess 文件为 index.html 那么日志就会循环调用不出来。&lt;/p&gt;
&lt;p&gt;修改首页为.html 需要注意：&lt;/p&gt;
&lt;p&gt;1.在wordpress 后台修改永久链接(Permalink Settings)， 把default 改为 下面哪个都行，根据自己需要（有部分风格会用博客的根目录，这样首页更改了，日志链接就点击不进去了，所以需要修改永久链接）。&lt;br /&gt;
&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/09/permalink_1.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/09/permalink_1.jpg&quot; alt=&quot;&quot; title=&quot;permalink_1&quot; width=&quot;177&quot; height=&quot;233&quot; class=&quot;alignnone size-full wp-image-415&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
会在根目录生成一个.htaccess 文件&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-416&quot;&gt;&lt;/span&gt;&lt;br /&gt;
2.修改.htaccess 文件，&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
# BEGIN WordPress
&amp;lt;IfModule mod_rewrite.c&amp;gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&amp;lt;/IfModule&amp;gt;

# END WordPress
&lt;/pre&gt;
&lt;p&gt;上面的代码会根据自己所选生成，在 # END WordPress 上面增加下面代码&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;IfModule dir_module&amp;gt;
   DirectoryIndex index.html index.php
&amp;lt;/IfModule&amp;gt;
&lt;/pre&gt;
&lt;p&gt;2.修改rewrite.php文件 把index.php 改为你现在的blog 首页，把index.php要复制多一个改名为home.php&lt;/p&gt;
&lt;p&gt;wp-includes/rewrite.php &lt;/p&gt;
&lt;p&gt;在 515 line.&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
var $index = 'home.php';
&lt;/pre&gt;
&lt;p&gt;如果更换风格，首页不是.html 那这个要更改回 index.php&lt;/p&gt;
&lt;p&gt;3.搜索action的路径需要修改 searchform.php ，因为默认的wordpress 还是以根目录为搜索，所以需要更改为现在的首页。&lt;/p&gt;
&lt;p&gt;wp-content\themes\PetakSawah\searchform.php&lt;/p&gt;
&lt;p&gt;现在是改到&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
action=&amp;quot;&amp;lt;?php bloginfo('home'); ?&amp;gt;/home.php&amp;quot;
&lt;/pre&gt;
&lt;p&gt;就这样，你的另外的网站首页就可以跟wordpress兼容了。。&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/jiejue-wordpress-henman/&quot; title=&quot;为什么wordpress很慢,我帮你解决&quot;&gt;为什么wordpress很慢,我帮你解决&lt;/a&gt; (2)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/shuoshuo-pjblog-wordpress-zhijian/&quot; title=&quot;说说pjblog与wordpress之间&quot;&gt;说说pjblog与wordpress之间&lt;/a&gt; (1)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105563/imouou/feedsky/s.gif?r=http://imouou.com/blog/modify-wordpress-index-php-to-index-html/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105563/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105563/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/modify-wordpress-index-php-to-index-html/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>假设我有一个网站放在跟wordpress同个目录，需要第一个是显示 index.html 而不是 index.php 这个时候，下面的方法就派得上用场了。如果你的wordpress不介意在二级目录就没这样的烦恼了。
原因：wordpress的index.php 会一直循环调用，如果更改了.htaccess 文件为 index.html 那么日志就会循环调用不出来。
修改首页为.html 需要注意：
1.在wordpress 后台修改永久链接(Permalink Settings)， 把default 改为 下面哪个都行，根据自己需要（有部分风格会用博客的根目录，这样首页更改了，日志链接就点击不进去了，所以需要修改永久链接）。

会在根目录生成一个.htaccess 文件

2.修改.htaccess 文件，

# BEGIN WordPress
&amp;#60;IfModule mod_rewrite.c&amp;#62;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&amp;#60;/IfModule&amp;#62;

# END WordPress

上面的代码会根据自己所选生成，在 # END WordPress 上面增加下面代码

&amp;#60;IfModule dir_module&amp;#62;
   DirectoryIndex index.html index.php
&amp;#60;/IfModule&amp;#62;

2.修改rewrite.php文件 把index.php 改为你现在的blog 首页，把index.php要复制多一个改名为home.php
wp-includes/rewrite.php 
在 515 line.

var $index = 'home.php';

如果更换风格，首页不是.html 那这个要更改回 index.php
3.搜索action的路径需要修改 searchform.php ，因为默认的wordpress 还是以根目录为搜索，所以需要更改为现在的首页。
wp-content\themes\PetakSawah\searchform.php
现在是改到

action=&amp;#34;&amp;#60;?php [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105563/imouou/feedsky/s.gif?r=http://imouou.com/blog/modify-wordpress-index-php-to-index-html/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105563/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105563/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>wordpress</category><category>应用体验</category><pubDate>Fri, 03 Sep 2010 17:46:08 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/modify-wordpress-index-php-to-index-html/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=416</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/modify-wordpress-index-php-to-index-html/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105563/6140287</fs:itemid></item><item><title>让页面绝对水平垂直居中–jquery例子</title><link>http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/08/absolutecenter.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/08/absolutecenter.jpg&quot; alt=&quot;&quot; title=&quot;absolutecenter&quot; width=&quot;500&quot; height=&quot;400&quot; class=&quot;alignnone size-full wp-image-420&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
例子的大概的示意图，以例子为准，截得不够绝对居中。&lt;/p&gt;
&lt;p&gt;也许你也会用到的一个例子,让页面垂直居中。。如果你的分辨率够高的话，你就会发现很多页面如果不够长，就会全在上面那么一点，下面留了很多空白。。这时候就需要用到垂直居中了。原理很简单，里面都有注释了，就不废话了。。需要就拿去用。。还可以继续扩展下去。。&lt;br /&gt;
兼容 firefox ie6以上 chrome opera&lt;br /&gt;
&lt;span id=&quot;more-411&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
	&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html;charset=UTF-8&amp;quot; /&amp;gt;
	&amp;lt;title&amp;gt;绝对垂直居中的例子--http://imouou.com/blog/&amp;lt;/title&amp;gt;
	&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
		#wrap {height:200px;width:200px;background:#cccccc;position:absolute;}
	&amp;lt;/style&amp;gt;
	&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
		$(function(){
			function windowalign(){
				var bodyheight = $(document).height(),  //整个网页的宽度 如果这里是window ie6and ie7 得到的是负数
					bodywidth = $(window).width(),  //整个网页的高度 如果这里是document ie7不会水平居中
					wrapwidth = $(&amp;quot;#wrap&amp;quot;).width(),  //要垂直居中的内容的宽度
					wrapheight = $(&amp;quot;#wrap&amp;quot;).height();  //要垂直居中的内容的高度度
					postop = (bodyheight-wrapheight)/2;  // 获取顶部的position
					posleft = (bodywidth-wrapwidth)/2;  // 获取左边部的position
					$(&amp;quot;#wrap&amp;quot;).css({&amp;quot;left&amp;quot;:posleft+&amp;quot;px&amp;quot;,&amp;quot;top&amp;quot;:postop+&amp;quot;px&amp;quot;});  // 设置position
			}
			windowalign();
			$(window).resize(function(){  // 当调整窗口的时候动态修正位置
				windowalign();
			});
		})
	&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div id=&amp;quot;wrap&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;随机阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/rushou-ixus95is-shipai/&quot; title=&quot;入手IXUS95试拍记&quot;&gt;入手IXUS95试拍记&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/xiaoxiao-xingfu/&quot; title=&quot;生活中的小小幸福&quot;&gt;生活中的小小幸福&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/huananzhiwuyuan-caihuaji/&quot; title=&quot;华南植物园采花记&quot;&gt;华南植物园采花记&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/web-biaozhun-jiaoliuhui/&quot; title=&quot;Web标准交流会&quot;&gt;Web标准交流会&lt;/a&gt; (4)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/congokaishi-flash/&quot; title=&quot;从O开始&amp;#8211;flash&quot;&gt;从O开始&amp;#8211;flash&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105564/imouou/feedsky/s.gif?r=http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105564/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105564/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>例子的大概的示意图，以例子为准，截得不够绝对居中。
也许你也会用到的一个例子,让页面垂直居中。。如果你的分辨率够高的话，你就会发现很多页面如果不够长，就会全在上面那么一点，下面留了很多空白。。这时候就需要用到垂直居中了。原理很简单，里面都有注释了，就不废话了。。需要就拿去用。。还可以继续扩展下去。。
兼容 firefox ie6以上 chrome opera


&amp;#60;!DOCTYPE html PUBLIC &amp;#34;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;#34; &amp;#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;#34;&amp;#62;
&amp;#60;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34; xml:lang=&amp;#34;en&amp;#34;&amp;#62;
&amp;#60;head&amp;#62;
	&amp;#60;meta http-equiv=&amp;#34;Content-Type&amp;#34; content=&amp;#34;text/html;charset=UTF-8&amp;#34; /&amp;#62;
	&amp;#60;title&amp;#62;绝对垂直居中的例子--http://imouou.com/blog/&amp;#60;/title&amp;#62;
	&amp;#60;script type=&amp;#34;text/javascript&amp;#34; src=&amp;#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&amp;#34;&amp;#62;&amp;#60;/script&amp;#62;
	&amp;#60;style type=&amp;#34;text/css&amp;#34;&amp;#62;
		#wrap {height:200px;width:200px;background:#cccccc;position:absolute;}
	&amp;#60;/style&amp;#62;
	&amp;#60;script type=&amp;#34;text/javascript&amp;#34;&amp;#62;
		$(function(){
			function windowalign(){
				var bodyheight = $(document).height(),  //整个网页的宽度 如果这里是window ie6and ie7 得到的是负数
					bodywidth = $(window).width(),  //整个网页的高度 如果这里是document ie7不会水平居中
					wrapwidth = $(&amp;#34;#wrap&amp;#34;).width(),  //要垂直居中的内容的宽度
					wrapheight = $(&amp;#34;#wrap&amp;#34;).height();  //要垂直居中的内容的高度度
					postop = (bodyheight-wrapheight)/2;  // 获取顶部的position
					posleft = (bodywidth-wrapwidth)/2;  // [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105564/imouou/feedsky/s.gif?r=http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105564/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105564/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>垂直居中</category><category>Jquery</category><category>水平居中</category><pubDate>Mon, 23 Aug 2010 11:08:43 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=411</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/page-align-center-vertical-align-middle-jquery-example/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105564/6140287</fs:itemid></item><item><title>National Geographic Flash</title><link>http://imouou.com/blog/national-geographic-flash/</link><content:encoded>&lt;p&gt;&lt;embed play=&quot;true&quot; quality=&quot;high&quot; width=&quot;520px&quot; height=&quot;360px&quot; src=&quot;http://ancienttreasureships.com/ats.swf&quot; pluginspage=&quot;http://get.adobe.com/flashplayer/&quot;&gt;&lt;/embed&gt;&lt;/p&gt;
&lt;p&gt;National Geographic &amp;#8211; Ancient Treasure Ships&lt;br /&gt;
官方地址：http://ancienttreasureships.com/&lt;/p&gt;
&lt;p&gt;这是前段时间跟3个同事一起完成的一个flash整站，整站都是用as2.0完成的。。现在链接的只是主文件，链接不了其它flash，想看完整版的可以打开官方观看。&lt;/p&gt;
&lt;p&gt;Epic Voyage 是一个航海旅行的动画，重走当年海上丝绸之路。（丝绸之路是历史上横贯欧亚大陆的贸易交通线，促进了欧亚非各国和中国的友好往来。中国是丝绸的故乡，在经由这条路线进行的贸易中，中国输出的商品以丝绸最具代表性。）&lt;br /&gt;
&lt;span id=&quot;more-407&quot;&gt;&lt;/span&gt;&lt;br /&gt;
每走到一个地方，都会有一个学习的弹窗，我用loadmovie来分割各种对话框，这样主文件就小很多，减少加载大小，但是糟糕的是，有的弹窗里面还要继续loadmovie，这样 load进来的movie 跟主场景的交互 就比较麻烦了……&lt;/p&gt;
&lt;p&gt;这条丝绸之路 里面用的东西最多， 视频的运用，loadmovie的运用，问答题的小游戏，还有拼图的游戏……&lt;/p&gt;
&lt;p&gt;Funfacts 里是一个相册类的，还好没有分页。。图片数据都是load外部图片，方便修改。&lt;/p&gt;
&lt;p&gt;Exhibition Tour 是一个展馆的介绍，里面的小动画跟弹窗就还简单一些。。&lt;/p&gt;
&lt;p&gt;它们之间点击后的转场让我也差点喷血，具体原因跟我里面的布局有关。。现在还有点瑕疵，不过总算通过了！算是我用flash的一个阶段总结吧。&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/2006-piantou-flash/&quot; title=&quot;2006年做的片头flash&quot;&gt;2006年做的片头flash&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/congokaishi-flash/&quot; title=&quot;从O开始&amp;#8211;flash&quot;&gt;从O开始&amp;#8211;flash&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/xiangzuozou-xiangyouzou-flash-manhuaba/&quot; title=&quot;向左走向右走flash漫画版&quot;&gt;向左走向右走flash漫画版&lt;/a&gt; (4)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/diyige-flash-gushi-hongtouchuan/&quot; title=&quot;我的第一个flash故事&amp;#8211;红头船&quot;&gt;我的第一个flash故事&amp;#8211;红头船&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105565/imouou/feedsky/s.gif?r=http://imouou.com/blog/national-geographic-flash/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105565/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105565/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/national-geographic-flash/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>National Geographic &amp;#8211; Ancient Treasure Ships
官方地址：http://ancienttreasureships.com/
这是前段时间跟3个同事一起完成的一个flash整站，整站都是用as2.0完成的。。现在链接的只是主文件，链接不了其它flash，想看完整版的可以打开官方观看。
Epic Voyage 是一个航海旅行的动画，重走当年海上丝绸之路。（丝绸之路是历史上横贯欧亚大陆的贸易交通线，促进了欧亚非各国和中国的友好往来。中国是丝绸的故乡，在经由这条路线进行的贸易中，中国输出的商品以丝绸最具代表性。）

每走到一个地方，都会有一个学习的弹窗，我用loadmovie来分割各种对话框，这样主文件就小很多，减少加载大小，但是糟糕的是，有的弹窗里面还要继续loadmovie，这样 load进来的movie 跟主场景的交互 就比较麻烦了……
这条丝绸之路 里面用的东西最多， 视频的运用，loadmovie的运用，问答题的小游戏，还有拼图的游戏……
Funfacts 里是一个相册类的，还好没有分页。。图片数据都是load外部图片，方便修改。
Exhibition Tour 是一个展馆的介绍，里面的小动画跟弹窗就还简单一些。。
它们之间点击后的转场让我也差点喷血，具体原因跟我里面的布局有关。。现在还有点瑕疵，不过总算通过了！算是我用flash的一个阶段总结吧。
相关阅读2006年做的片头flash (0)从O开始&amp;#8211;flash (0)向左走向右走flash漫画版 (4)我的第一个flash故事&amp;#8211;红头船 (0)&lt;img src=&quot;http://www1.feedsky.com/t1/415105565/imouou/feedsky/s.gif?r=http://imouou.com/blog/national-geographic-flash/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105565/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105565/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>关于设计</category><category>整站</category><category>flash</category><pubDate>Sat, 24 Jul 2010 09:22:45 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/national-geographic-flash/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=407</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/national-geographic-flash/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105565/6140287</fs:itemid></item><item><title>谷歌flash跟踪统计Google Analytics Tracking for Adobe Flash</title><link>http://imouou.com/blog/google-analytic-for-flash-tech/</link><content:encoded>&lt;p&gt;刚刚开发完一个flash整站项目，客户要求要看到用户对flash操作的追踪统计~~囧 &lt;/p&gt;
&lt;p&gt;http://code.google.com/intl/zh-CN/apis/analytics/docs/tracking/flashTrackingIntro.html&lt;/p&gt;
&lt;p&gt;这是官方的使用文档。&lt;/p&gt;
&lt;p&gt;我找不到例子，后来找到了教程，做了一个，没啥技术含量，应该会比看官方的省一些时间。目前flash的统计只支持as3，如果你是使用as2的话，就算了，放弃吧。&lt;/p&gt;
&lt;p&gt;教程跟例子下载：&lt;br /&gt;
&lt;a href='http://imouou.com/blog/wp-content/uploads/2010/07/Google-Analytics在Flash-cs3-tech.zip'&gt;Google Analytics for flash教程&lt;/a&gt;&lt;br /&gt;
&lt;a href='http://imouou.com/blog/wp-content/uploads/2010/07/Flashtongji_Sample.zip'&gt;google 的跟踪统计 Flash应用例子&lt;/a&gt;&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;随机阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ezuoju-shuhui-piantou-flash-lianxi/&quot; title=&quot;恶作剧 鼠绘 片头 &amp;#8212; flash练习&quot;&gt;恶作剧 鼠绘 片头 &amp;#8212; flash练习&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/diyige-flash-gushi-hongtouchuan/&quot; title=&quot;我的第一个flash故事&amp;#8211;红头船&quot;&gt;我的第一个flash故事&amp;#8211;红头船&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/huananzhiwuyuan-caihuaji/&quot; title=&quot;华南植物园采花记&quot;&gt;华南植物园采花记&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/web-biaozhun-jiaoliuhui/&quot; title=&quot;Web标准交流会&quot;&gt;Web标准交流会&lt;/a&gt; (4)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/xuexi-jquery-biji-1/&quot; title=&quot;学习jquery笔记(1)&quot;&gt;学习jquery笔记(1)&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105566/imouou/feedsky/s.gif?r=http://imouou.com/blog/google-analytic-for-flash-tech/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105566/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105566/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/google-analytic-for-flash-tech/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>刚刚开发完一个flash整站项目，客户要求要看到用户对flash操作的追踪统计~~囧 
http://code.google.com/intl/zh-CN/apis/analytics/docs/tracking/flashTrackingIntro.html
这是官方的使用文档。
我找不到例子，后来找到了教程，做了一个，没啥技术含量，应该会比看官方的省一些时间。目前flash的统计只支持as3，如果你是使用as2的话，就算了，放弃吧。
教程跟例子下载：
Google Analytics for flash教程
google 的跟踪统计 Flash应用例子
随机阅读纪念最后一个光棍节 (0)解决pjblog首页评论链接问题 (2)生活中的小小幸福 (0)National Geographic Flash (2)解决pjblog不能登陆的问题 (1)&lt;img src=&quot;http://www1.feedsky.com/t1/415105566/imouou/feedsky/s.gif?r=http://imouou.com/blog/google-analytic-for-flash-tech/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105566/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105566/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>flash跟踪统计</category><category>应用体验</category><pubDate>Fri, 02 Jul 2010 18:11:43 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/google-analytic-for-flash-tech/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=399</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/google-analytic-for-flash-tech/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105566/6140287</fs:itemid></item><item><title>学习jquery笔记(1)</title><link>http://imouou.com/blog/xuexi-jquery-biji-1/</link><content:encoded>&lt;p&gt;最近忙着学习这学习那，很少更新文章了。。在制作的过程中还是遇到了不少以前没遇到过的新鲜的东西。。所以会尝试着把它慢慢整理出来。&lt;/p&gt;
&lt;p&gt;下面是我在做jquery 遇到的一些怪异现象。。&lt;/p&gt;
&lt;p&gt;jquery学习笔记&lt;/p&gt;
&lt;p&gt;1. slideDown(),slideUP(),不支持 tr 的显示隐藏&lt;br /&gt;
2.eq() 获取某一个块 很重要&lt;br /&gt;
3.index() 获取当前第几个 返回一个数字&lt;br /&gt;
4.fadeOut(),fadeIn(), 淡入淡出，中间参数是 数字&lt;br /&gt;
5.delay() 延迟 中间是数字&lt;br /&gt;
6.removeClass(&amp;#8220;&amp;#8221;),addClass(&amp;#8220;&amp;#8221;) 添加删除 样式&lt;br /&gt;
7.return function() 返回一个函数&lt;br /&gt;
8. animate() 可以模仿已有任何一种动画，相当强大&lt;br /&gt;
9.font-weight:bold;会导致 fadeIn() 出现 文本 细体到粗体的变化。只在ie下面有。&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;随机阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/national-geographic-flash/&quot; title=&quot;National Geographic Flash&quot;&gt;National Geographic Flash&lt;/a&gt; (2)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/google-analytic-for-flash-tech/&quot; title=&quot;谷歌flash跟踪统计Google Analytics Tracking for Adobe Flash&quot;&gt;谷歌flash跟踪统计Google Analytics Tracking for Adobe Flash&lt;/a&gt; (2)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/li-gaodu-daozhi-xinwenti/&quot; title=&quot;li 不设高度可能导致ie6 ie7 新问题bug&quot;&gt;li 不设高度可能导致ie6 ie7 新问题bug&lt;/a&gt; (9)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ezuoju-shuhui-piantou-flash-lianxi/&quot; title=&quot;恶作剧 鼠绘 片头 &amp;#8212; flash练习&quot;&gt;恶作剧 鼠绘 片头 &amp;#8212; flash练习&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/diyige-flash-gushi-hongtouchuan/&quot; title=&quot;我的第一个flash故事&amp;#8211;红头船&quot;&gt;我的第一个flash故事&amp;#8211;红头船&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105567/imouou/feedsky/s.gif?r=http://imouou.com/blog/xuexi-jquery-biji-1/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105567/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105567/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/xuexi-jquery-biji-1/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>最近忙着学习这学习那，很少更新文章了。。在制作的过程中还是遇到了不少以前没遇到过的新鲜的东西。。所以会尝试着把它慢慢整理出来。
下面是我在做jquery 遇到的一些怪异现象。。
jquery学习笔记
1. slideDown(),slideUP(),不支持 tr 的显示隐藏
2.eq() 获取某一个块 很重要
3.index() 获取当前第几个 返回一个数字
4.fadeOut(),fadeIn(), 淡入淡出，中间参数是 数字
5.delay() 延迟 中间是数字
6.removeClass(&amp;#8220;&amp;#8221;),addClass(&amp;#8220;&amp;#8221;) 添加删除 样式
7.return function() 返回一个函数
8. animate() 可以模仿已有任何一种动画，相当强大
9.font-weight:bold;会导致 fadeIn() 出现 文本 细体到粗体的变化。只在ie下面有。
随机阅读这备案真让人恼火 (2)用背景图片轻松实现文字显示隐藏 (2)好快的火狐狸firefox 3.6 简单体验 (0)像蜗牛一样努力生活并幸福着 (6)顾此失彼之痛——前端工程师需掌握 (6)&lt;img src=&quot;http://www1.feedsky.com/t1/415105567/imouou/feedsky/s.gif?r=http://imouou.com/blog/xuexi-jquery-biji-1/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105567/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105567/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Jquery</category><category>jquery笔记</category><pubDate>Wed, 09 Jun 2010 18:45:07 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/xuexi-jquery-biji-1/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=397</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/xuexi-jquery-biji-1/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105567/6140287</fs:itemid></item><item><title>li 不设高度可能导致ie6 ie7 新问题bug</title><link>http://imouou.com/blog/li-gaodu-daozhi-xinwenti/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/ligaoduwenti.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/ligaoduwenti.jpg&quot; alt=&quot;li没设高度导致的问题&quot; title=&quot;li没设高度导致的问题&quot; width=&quot;353&quot; height=&quot;167&quot; class=&quot;alignnone size-full wp-image-389&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
ie6 ie7 效果图 错误&lt;br /&gt;
&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/ligaoduwenti2.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/ligaoduwenti2.jpg&quot; alt=&quot;li没设高度导致的问题&quot; title=&quot;li没设高度导致的问题&quot; width=&quot;353&quot; height=&quot;167&quot; class=&quot;alignnone size-full wp-image-389&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
firefox ie8效果图 正确&lt;/p&gt;
&lt;p&gt;如上面的图一样，对比一下你会发现右边标题的地方 往下移了 10个像素左右，但是我并没有设置它的margin-top啊，这10个像素左右的位移从哪里来的？ 我发现只要是块元素才会这样，如果是a标签，或者内联元素，就不会了。那我把h3直接改成 inline 元素，应该就可以了啊，但还是没有解决这个问题。。。。h3自带的边距已经清零了。。最后，竟然是因为&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-391&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;没有给 li 设置高度~~ ，不知道算不算 ie6的一个新bug。。ie7也是同样的效果。。以后切记高度莫忘加啊。。不然出现什么怪异现象只会浪费时间。。还是看代码吧。。&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt; li没设高度导致h3块元素上面10px左右的边距 o仔札记 http://imouou.com/blog/&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;editplus&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;author&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;keywords&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;style&amp;gt;
body,ul,li,h3,p {margin:0;padding:0;font-size:12px;}
.movie_list {height:auto !important;min-height:100px;padding-top:10px;}
.movie_list li {margin:3px 8px;}
.movie_info h3 {width:400px;height:30px;line-height:25px;overflow:hidden;margin:0;padding:0;}
.movie_list li a img{float:left;width:120px;height:146px;padding:2px;border:1px solid #ccc;margin-right:10px;}
.movie_info {color:#666699}
.movie_info strong {color:#666666;font-weight:normal;}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;div class=&amp;quot;movie_list&amp;quot;&amp;gt;
	&amp;lt;ul&amp;gt;
		&amp;lt;li&amp;gt;
			&amp;lt;a href=&amp;quot;#&amp;quot; &amp;gt;&amp;lt;img src=&amp;quot;#&amp;quot; alt=&amp;quot;&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;
			&amp;lt;div class=&amp;quot;movie_info&amp;quot;&amp;gt;
			&amp;lt;h3&amp;gt;&amp;lt;a href=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot;&amp;gt;这个标题在ie6 ie7下会有上面的边距&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;影片主演：&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;影片类型：&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;发行地区：&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;发行时间：&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
			&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;影片备注：&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
		&amp;lt;/li&amp;gt;
	&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;mark 说不会出现这样的情况，难道是我浏览器的问题？&lt;/p&gt;
&lt;p&gt;再贴一个简单的例子 ,li不设定高度，旁边只要是块元素，像里面的h3就会往下移~~（bs：代码写得比较懒）&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt; new document &amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;editplus&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;author&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;keywords&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;&amp;quot; /&amp;gt;
&amp;lt;link href=&amp;quot;#&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;
&amp;lt;style&amp;gt;
	body,ul,li,h3 {margin:0;padding:0;}
	a img{width:120px;height:140px;float:left;}
	div {width:200px;border:1px solid #ccc;}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;
	&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;#&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;div&amp;gt;
		&amp;lt;h3&amp;gt;标题&amp;lt;/h3&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;原来真不是li的问题，是因为 div .movie_info 没有跟着往左 float 导致的。。当然设置 li高度也可以解决这个问题。而且这个高度是加比较好，如果你要设li的下边框，没有高度是不行的~~&lt;/strong&gt; &lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ie6-ie7-background-suoxie-huiyouwenti/&quot; title=&quot;ie6 ie7的background缩写也会出现问题&quot;&gt;ie6 ie7的background缩写也会出现问题&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105568/imouou/feedsky/s.gif?r=http://imouou.com/blog/li-gaodu-daozhi-xinwenti/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105568/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105568/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/li-gaodu-daozhi-xinwenti/feed/</wfw:commentRss><slash:comments>9</slash:comments><description>ie6 ie7 效果图 错误

firefox ie8效果图 正确
如上面的图一样，对比一下你会发现右边标题的地方 往下移了 10个像素左右，但是我并没有设置它的margin-top啊，这10个像素左右的位移从哪里来的？ 我发现只要是块元素才会这样，如果是a标签，或者内联元素，就不会了。那我把h3直接改成 inline 元素，应该就可以了啊，但还是没有解决这个问题。。。。h3自带的边距已经清零了。。最后，竟然是因为

没有给 li 设置高度~~ ，不知道算不算 ie6的一个新bug。。ie7也是同样的效果。。以后切记高度莫忘加啊。。不然出现什么怪异现象只会浪费时间。。还是看代码吧。。

&amp;#60;!DOCTYPE html PUBLIC &amp;#34;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;#34; &amp;#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;#34;&amp;#62;
&amp;#60;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34;&amp;#62;
&amp;#60;head&amp;#62;
&amp;#60;title&amp;#62; li没设高度导致h3块元素上面10px左右的边距 o仔札记 http://imouou.com/blog/&amp;#60;/title&amp;#62;
&amp;#60;meta http-equiv=&amp;#34;Content-Type&amp;#34; content=&amp;#34;text/html; charset=utf-8&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;generator&amp;#34; content=&amp;#34;editplus&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;author&amp;#34; content=&amp;#34;&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;keywords&amp;#34; content=&amp;#34;&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;description&amp;#34; content=&amp;#34;&amp;#34; /&amp;#62;
&amp;#60;style&amp;#62;
body,ul,li,h3,p {margin:0;padding:0;font-size:12px;}
.movie_list {height:auto !important;min-height:100px;padding-top:10px;}
.movie_list li {margin:3px 8px;}
.movie_info h3 {width:400px;height:30px;line-height:25px;overflow:hidden;margin:0;padding:0;}
.movie_list li a img{float:left;width:120px;height:146px;padding:2px;border:1px solid #ccc;margin-right:10px;}
.movie_info [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105568/imouou/feedsky/s.gif?r=http://imouou.com/blog/li-gaodu-daozhi-xinwenti/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105568/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105568/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Css</category><category>li高度问题</category><category>bug</category><pubDate>Mon, 26 Apr 2010 20:24:16 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/li-gaodu-daozhi-xinwenti/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=391</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/li-gaodu-daozhi-xinwenti/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105568/6140287</fs:itemid></item><item><title>loading条实现空间占用百分比的CSS</title><link>http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/loading.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/loading.jpg&quot; alt=&quot;loading空间占用百分比&quot; title=&quot;loading空间占用百分比&quot; width=&quot;157&quot; height=&quot;54&quot; class=&quot;alignnone size-full wp-image-381&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;loading空间占用百分比 CSS制作，这个有人也会用于页面加载时候使用。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/star.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/star.jpg&quot; alt=&quot;推荐星级百分比&quot; title=&quot;推荐星级百分比&quot; width=&quot;132&quot; height=&quot;43&quot; class=&quot;alignnone size-full wp-image-382&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
比较常用于推荐，等级，满意度调查之类的&lt;br /&gt;
&lt;span id=&quot;more-380&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt; o仔札记--http://imouou.com/blog/&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;editplus&amp;quot; /&amp;gt;
&amp;lt;style&amp;gt;
	.bar {padding:2px;width:100px;height:8px;border:1px solid #cccccc;}
	.loading {background:#999999;height:8px;width:30%}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
	&amp;lt;!--进度条空间占用百分比--&amp;gt;
	&amp;lt;div class=&amp;quot;bar&amp;quot;&amp;gt;
		&amp;lt;div class=&amp;quot;loading&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;loading 百分百条的实现：我们只要获得目前下载的页面大小，除以页面的文件大小，乘以100就可以得到页面的loading进度了，一般页面都是比较小，所以用到也比较少，常用于flash的加载，网页上面的应用，更多的是占用百分比，像QQ的相册空间，给你16Ｍ大小，你目前的用了多少，那只要得到这个比例，控制好 loading的 width 等于百分几，就可以轻松实现了。&lt;/p&gt;
&lt;p&gt;上面是一种方法，还有一种比较蠢的方式，就是把百分比切成10块，然后每一个css就控制它百分之10，如果精确到百分之1，那就有得切了，呵呵，所以这种方法一般用来 做等级，推荐度~~&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt; o仔札记--http://imouou.com/blog/&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;editplus&amp;quot; /&amp;gt;
&amp;lt;style&amp;gt;
	#star {background:url(images/star.jpg) no-repeat;height:16px;width:70px;}
	.star1 {background:url(images/star.jpg) 0 -18px no-repeat;height:16px;width:70px;}
	.star2 {background:url(images/star.jpg) 0 -34px no-repeat;height:16px;width:70px;}
	.star3 {background:url(images/star.jpg) 0 -52px no-repeat;height:16px;width:70px;}
	.star4 {background:url(images/star.jpg) 0 -70px no-repeat;height:16px;width:70px;}
	.star5 {background:url(images/star.jpg) 0 -85px no-repeat;height:16px;width:70px;}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
	&amp;lt;!--五角星等级--&amp;gt;
	&amp;lt;div id=&amp;quot;star&amp;quot; class=&amp;quot;star2&amp;quot;&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;看代码，我们只需要控制 id star 的class样式，star + i  就好了。或者你还有更好的方法~~&lt;/p&gt;
&lt;p&gt; 本文用到的例子下载  点击这里 &lt;a href='http://imouou.com/blog/wp-content/uploads/2010/04/loadingstar.zip'&gt;空间占用百分比，星级例子&lt;/a&gt;&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;随机阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/modify-wordpress-index-php-to-index-html/&quot; title=&quot;让wordpress显示首页index.html&quot;&gt;让wordpress显示首页index.html&lt;/a&gt; (2)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/gundongtiao-tiyan/&quot; title=&quot;滚动条的体验，左边还是右边好？&quot;&gt;滚动条的体验，左边还是右边好？&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ie-firefox-changjian-jianrong/&quot; title=&quot;ie firefox浏览器常见兼容问题&quot;&gt;ie firefox浏览器常见兼容问题&lt;/a&gt; (4)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/mozilla-firefox36-tiyan/&quot; title=&quot;好快的火狐狸firefox 3.6 简单体验&quot;&gt;好快的火狐狸firefox 3.6 简单体验&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/national-geographic-flash/&quot; title=&quot;National Geographic Flash&quot;&gt;National Geographic Flash&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105569/imouou/feedsky/s.gif?r=http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105569/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105569/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>loading空间占用百分比 CSS制作，这个有人也会用于页面加载时候使用。

比较常用于推荐，等级，满意度调查之类的


&amp;#60;!DOCTYPE html PUBLIC &amp;#34;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;#34; &amp;#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;#34;&amp;#62;
&amp;#60;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34;&amp;#62;
&amp;#60;head&amp;#62;
&amp;#60;title&amp;#62; o仔札记--http://imouou.com/blog/&amp;#60;/title&amp;#62;
&amp;#60;meta http-equiv=&amp;#34;Content-Type&amp;#34; content=&amp;#34;text/html; charset=utf-8&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;generator&amp;#34; content=&amp;#34;editplus&amp;#34; /&amp;#62;
&amp;#60;style&amp;#62;
	.bar {padding:2px;width:100px;height:8px;border:1px solid #cccccc;}
	.loading {background:#999999;height:8px;width:30%}
&amp;#60;/style&amp;#62;
&amp;#60;/head&amp;#62;

&amp;#60;body&amp;#62;
	&amp;#60;!--进度条空间占用百分比--&amp;#62;
	&amp;#60;div class=&amp;#34;bar&amp;#34;&amp;#62;
		&amp;#60;div class=&amp;#34;loading&amp;#34;&amp;#62;&amp;#60;/div&amp;#62;
	&amp;#60;/div&amp;#62;
&amp;#60;/body&amp;#62;
&amp;#60;/html&amp;#62;

loading 百分百条的实现：我们只要获得目前下载的页面大小，除以页面的文件大小，乘以100就可以得到页面的loading进度了，一般页面都是比较小，所以用到也比较少，常用于flash的加载，网页上面的应用，更多的是占用百分比，像QQ的相册空间，给你16Ｍ大小，你目前的用了多少，那只要得到这个比例，控制好 loading的 width 等于百分几，就可以轻松实现了。
上面是一种方法，还有一种比较蠢的方式，就是把百分比切成10块，然后每一个css就控制它百分之10，如果精确到百分之1，那就有得切了，呵呵，所以这种方法一般用来 做等级，推荐度~~

&amp;#60;!DOCTYPE html PUBLIC &amp;#34;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;#34; &amp;#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;#34;&amp;#62;
&amp;#60;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34;&amp;#62;
&amp;#60;head&amp;#62;
&amp;#60;title&amp;#62; o仔札记--http://imouou.com/blog/&amp;#60;/title&amp;#62;
&amp;#60;meta http-equiv=&amp;#34;Content-Type&amp;#34; content=&amp;#34;text/html; charset=utf-8&amp;#34; /&amp;#62;
&amp;#60;meta name=&amp;#34;generator&amp;#34; content=&amp;#34;editplus&amp;#34; /&amp;#62;
&amp;#60;style&amp;#62;
	#star {background:url(images/star.jpg) no-repeat;height:16px;width:70px;}
	.star1 {background:url(images/star.jpg) 0 -18px no-repeat;height:16px;width:70px;}
	.star2 {background:url(images/star.jpg) 0 -34px no-repeat;height:16px;width:70px;}
	.star3 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105569/imouou/feedsky/s.gif?r=http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105569/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105569/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Css</category><category>占用百分比</category><category>loading进度条</category><category>星级</category><pubDate>Mon, 26 Apr 2010 10:21:20 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=380</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/kongjian-zhanyong-baifenbi-loading-bar-star/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105569/6140287</fs:itemid></item><item><title>滚动条的体验，左边还是右边好？</title><link>http://imouou.com/blog/gundongtiao-tiyan/</link><content:encoded>&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/gundongtiao.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/gundongtiao.jpg&quot; alt=&quot;找礼物上口袋收藏网95is.com&quot; title=&quot;滚动条在左边的情况&quot; width=&quot;500&quot; height=&quot;215&quot; class=&quot;alignnone size-full wp-image-374&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;平常我们习惯了滚动条在右边，如果把滚动条突然放在左边，相信用户一定不会习惯的。。但是假如你的导航菜单是在左边，你的内容又很长需要滚动，那这个时候左边的滚动条就可以派上用场了。用户只需要移动很小的距离就可以拉动滚动条。&lt;/p&gt;
&lt;p&gt;假如你的分辨率是1366*768，菜单在左栏，宽度200px，那么如果你鼠标移到滚动条位置拖动就得移动 1166个像素，而在左边的话，你只需要移动200个像素不到。。我们很多内容都在中间，也就是200px后，那鼠标经常活动的位置也是这么一小块地方，你说是从左边近还是右边近呢？&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-375&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;也许你会说，我不用拖动滚动条的，我用鼠标中间的滚轮滚动就可以实现了，干嘛要去拉呢？是的，对于用鼠标的用户来讲，其实并没有多大必要，但对于笔记本用户，他没有用鼠标呢？他需要在中间的鼠标移动区域划好几下。。特别是在现在宽屏比较普遍的时候，更是需要我们多去注意一下用户的体验。。屏幕越大，被我们忽略的东西就会越多，相信这个小小的改变会对让你的用户对你的网站更有依赖性的。&lt;/p&gt;
&lt;p&gt;怎么让滚动条在左边？其实很简单，只需要一个属性就够了。。&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;html dir=&amp;quot;rtl&amp;quot;&amp;gt;
&lt;/pre&gt;
&lt;p&gt;把下面的例子复制看看&lt;/p&gt;
&lt;pre class=&quot;brush: plain;&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; dir=&amp;quot;rtl&amp;quot;&amp;gt;
 &amp;lt;head&amp;gt;
  &amp;lt;title&amp;gt; 滚动条的体验，左边还是右边？ &amp;lt;/title&amp;gt;
  &amp;lt;meta name=&amp;quot;generator&amp;quot; content=&amp;quot;editplus&amp;quot; /&amp;gt;
  &amp;lt;meta name=&amp;quot;author&amp;quot; content=&amp;quot;o仔札记 imouou.com&amp;quot; /&amp;gt;
 &amp;lt;/head&amp;gt;

 &amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;看下你的滚动条是不是在左边了？&amp;lt;/h1&amp;gt;
  &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
 &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/browser-sandbox-jiaocheng/&quot; title=&quot;比ietest 更好的浏览器调试工具 Browser Sandbox 使用教程&quot;&gt;比ietest 更好的浏览器调试工具 Browser Sandbox 使用教程&lt;/a&gt; (20)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/win7-vs-xp/&quot; title=&quot;win7 VS 叉P（XP）时尚与怀旧&quot;&gt;win7 VS 叉P（XP）时尚与怀旧&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/mozilla-firefox36-tiyan/&quot; title=&quot;好快的火狐狸firefox 3.6 简单体验&quot;&gt;好快的火狐狸firefox 3.6 简单体验&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ni-jiandao-pianyi-le-ma/&quot; title=&quot;你捡到便宜了吗？&quot;&gt;你捡到便宜了吗？&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/404cuowu-yemian-tiyan/&quot; title=&quot;404错误页面体验&quot;&gt;404错误页面体验&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105570/imouou/feedsky/s.gif?r=http://imouou.com/blog/gundongtiao-tiyan/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105570/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105570/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/gundongtiao-tiyan/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>平常我们习惯了滚动条在右边，如果把滚动条突然放在左边，相信用户一定不会习惯的。。但是假如你的导航菜单是在左边，你的内容又很长需要滚动，那这个时候左边的滚动条就可以派上用场了。用户只需要移动很小的距离就可以拉动滚动条。
假如你的分辨率是1366*768，菜单在左栏，宽度200px，那么如果你鼠标移到滚动条位置拖动就得移动 1166个像素，而在左边的话，你只需要移动200个像素不到。。我们很多内容都在中间，也就是200px后，那鼠标经常活动的位置也是这么一小块地方，你说是从左边近还是右边近呢？

也许你会说，我不用拖动滚动条的，我用鼠标中间的滚轮滚动就可以实现了，干嘛要去拉呢？是的，对于用鼠标的用户来讲，其实并没有多大必要，但对于笔记本用户，他没有用鼠标呢？他需要在中间的鼠标移动区域划好几下。。特别是在现在宽屏比较普遍的时候，更是需要我们多去注意一下用户的体验。。屏幕越大，被我们忽略的东西就会越多，相信这个小小的改变会对让你的用户对你的网站更有依赖性的。
怎么让滚动条在左边？其实很简单，只需要一个属性就够了。。

&amp;#60;html dir=&amp;#34;rtl&amp;#34;&amp;#62;

把下面的例子复制看看

&amp;#60;!DOCTYPE html PUBLIC &amp;#34;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;#34; &amp;#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;#34;&amp;#62;
&amp;#60;html xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34; dir=&amp;#34;rtl&amp;#34;&amp;#62;
 &amp;#60;head&amp;#62;
  &amp;#60;title&amp;#62; 滚动条的体验，左边还是右边？ &amp;#60;/title&amp;#62;
  &amp;#60;meta name=&amp;#34;generator&amp;#34; content=&amp;#34;editplus&amp;#34; /&amp;#62;
  &amp;#60;meta name=&amp;#34;author&amp;#34; content=&amp;#34;o仔札记 imouou.com&amp;#34; /&amp;#62;
 &amp;#60;/head&amp;#62;

 &amp;#60;body&amp;#62;
&amp;#60;h1&amp;#62;看下你的滚动条是不是在左边了？&amp;#60;/h1&amp;#62;
  &amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;&amp;#60;br/&amp;#62;
 &amp;#60;/body&amp;#62;
&amp;#60;/html&amp;#62;

相关阅读比ietest 更好的浏览器调试工具 Browser Sandbox 使用教程 (20)win7 VS 叉P（XP）时尚与怀旧 (0)好快的火狐狸firefox 3.6 简单体验 (0)你捡到便宜了吗？ (1)404错误页面体验 (2)&lt;img src=&quot;http://www1.feedsky.com/t1/415105570/imouou/feedsky/s.gif?r=http://imouou.com/blog/gundongtiao-tiyan/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105570/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105570/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>左边滚动条</category><category>Css</category><category>应用体验</category><category>体验</category><pubDate>Mon, 12 Apr 2010 20:18:13 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/gundongtiao-tiyan/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=375</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/gundongtiao-tiyan/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105570/6140287</fs:itemid></item><item><title>比ietest 更好的浏览器调试工具 Browser Sandbox 使用教程</title><link>http://imouou.com/blog/browser-sandbox-jiaocheng/</link><content:encoded>&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/BrowserSandboxPage.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/BrowserSandboxPage.jpg&quot; alt=&quot;浏览器多版本共存测试工具Xenocode Browser Sandbox&quot;  title=&quot;浏览器多版本共存测试工具Xenocode Browser Sandbox--点击看大图&quot; width=&quot;500&quot; height=&quot;537&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;还没写过这么长的标题，browser sandbox全名叫Xenocode Browser Sandbox，看到这个标题有点兴奋，当我今天在搜手机模拟器测试的时候，无意中发现了这么一个东西，当你搜索 Xenocode Browser Sandbox 的时候，你就会发现有很多关于这个软件的介绍，但总感觉只是写手 用来宣传的广告语，不知道是不是真的有用，是不是他们有钱收的。。不过可以肯定的是，我写这篇文章我是没钱收。哈哈 ，好了，废话不多说了，进入正题吧。&lt;/p&gt;
&lt;p&gt;以前我会想，如果一个系统可以同时装ie6, ie7, ie8，firefox2, firefox3, firefox3.5, safari3, safari4, chrome , opera10, opera9,那就好了，虽然现在也有很多方法来解决浏览器的兼容性测试，但是就我目前的了解情况，这样得装好多个虚拟机来测试，这样是一点都不方便，像ie6 ie7 ie8 虽然有 ietest 还有其它工具来帮助测试，可是偶尔还有些差异，明明ietest没有问题，在别人的ie6 或者ie8下，却出现错乱，当然这个不能全怨浏览器，自己本身的代码写法可能也有问题，写得好的xhtml是很少出现兼容问题的，因为他们了解浏览器的各个bug，ie三个解决了，firefox呢？firefox几个版本怎么共存？用绿化版的？ok，opera呢？safari呢？chrome呢？从官方下载的chrome目前采用自动更新的，应该就是防止出现多版本共存的情况的。我以前试过最多装的测试浏览器有7个，真的已经挺多了，没想到还可以装得更多，现在这种想法终于不是空想了，是的，真的可以，上面提到的浏览器通通可以兼容，通通可以在一个系统打开而不影响目前的系统环境。&lt;/p&gt;
&lt;p&gt;东西真的是个好东西，对于我们在web前端做页面构建重构这一块工作的人来说，但是你会发现打开官网，就只有几个浏览器在那里，也没有教你怎么做，啥文档也没有，我看了大半天，好不容易把安装程序弄下来，差点没搞懂怎么用，所以才想写篇文章写给跟我一样迷茫的页面构建者，希望能有点帮助。欢迎拍砖反馈使用效果。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-354&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;打开官方地址：http://spoon.net/browsers/  &lt;/p&gt;
&lt;p&gt;我发现官方 含谷歌广告打开缓慢，因为以后可能每天都得连线打开这个地址，打开缓慢会很不爽，但我们也要体谅一下人家好不容易整的一个赚钱方式，不用你捐助还想咋样啊 ？ &lt;/p&gt;
&lt;p&gt;如果不爽上面的带广告的页面，也可以使用我下面的在线地址，没广告的在线使用地址：&lt;a href=&quot;http://imouou.com/allbrowser/&quot; title=&quot;&quot;&gt;http://imouou.com/allbrowser/&lt;/a&gt; ( 除了去除广告还删除了很多不必用的代码，加快了打开速度 )&lt;/p&gt;
&lt;p&gt;你也可以下载本地版的 &lt;a href=&quot;http://imouou.com/allbrowser/allbrowser.zip&quot;&gt;http://imouou.com/allbrowser/allbrowser.zip&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;这些打开页面都是需要连接到官方取数据的，所以如果你不能上网的话，你还是别整了，我也想搞个离线版的，这样我就不怕网络打不开的时候不能用了。搞了半天，没能搞定。。如果有哪个高手搞成了离线版，记得分享一下啊。。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;具体使用步骤：&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;   1. 打开在线的使用地址：&lt;a href=&quot;http://imouou.com/allbrowser/&quot; title=&quot;去除广告快速版&quot;&gt;http://imouou.com/allbrowser/&lt;/a&gt; ( 去除广告快速版，没安装插件前暂时点链接浏览器是没有反应的 )&lt;br /&gt;
   2. 点击下载安装&lt;a href=&quot;http://start-o.spoon.net/layers/setup/3.19.0.5/spoon-plugin-dotnet.exe&quot; title=&quot;点击安装插件，需要重新启动浏览器&quot;&gt;spoon-plugin插件&lt;/a&gt;（需要重启所有在用的浏览器）&lt;br /&gt;
   3. 然后再打开&lt;a href=&quot;http://imouou.com/allbrowser/&quot; title=&quot;去除广告快速版&quot;&gt;http://imouou.com/allbrowser/&lt;/a&gt;  点击上面的浏览器就可以在线安装各种浏览器，会有进度条提示你下载结束，然后就啥都没有了，也没有告诉你接下来要怎么去做。。后来才知道要用第4步&lt;br /&gt;
   4. 安装好以后，就可以通过上面的使用地址&lt;a href=&quot;http://imouou.com/allbrowser/&quot; title=&quot;去除广告快速版&quot;&gt;http://imouou.com/allbrowser/&lt;/a&gt; 来启动浏览器了。你也可以下载本地版的 &lt;a href=&quot;http://imouou.com/allbrowser/allbrowser.zip&quot;&gt;http://imouou.com/allbrowser/allbrowser.zip&lt;/a&gt; 来启动浏览器&lt;/p&gt;
&lt;p&gt;这个插件据说是利用了虚拟机的方式，达到浏览器多版本共存，确实很新颖，也很吸引我，在适用过程中，发现单个浏览器的启动速度有点慢，可能由于在线获取的关系吧，如果想同时打开所有的浏览器，很慢，要先关掉一些才行。。反正对我来说非常好用，我只需要测试好几个主要的浏览器没有问题，然后再一个一个打开测试最终效果，有问题的单独解决。。哈哈，它最大的优点是跟浏览器的效果一样，不是模仿出来的效果，目前还没有发现不同的地方。。欢迎拍砖啊。。&lt;/p&gt;
&lt;p&gt;详细使用教程：&lt;a href=&quot;http://imouou.com/blog/browser-sandbox-jiaocheng/&quot; title=&quot;页面构建多个浏览器多版本共存适用教程&quot;&gt;http://imouou.com/blog/browser-sandbox-jiaocheng/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;下面我用我写的一个代码作品，来测试各个浏览器的兼容性，原先已经在ie6绿色版，ie7，ie8，ietest，firefox3.6，safari4，opera10，chrome等浏览器测过，可以宽度自适应兼容，以下是在Browser Sandbox激活的浏览器测试的截图，看图吧，点击图片可以看大图。&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie8.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie8.jpg&quot; alt=&quot;该作品在ie8浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在ie8浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在ie8浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie7.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie7.jpg&quot; alt=&quot;该作品在ie7浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在ie7浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在ie7浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie6.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_ie6.jpg&quot; alt=&quot;该作品在ie6浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在ie6浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在ie6浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox35.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox35.jpg&quot; alt=&quot;该作品在firefox35浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在firefox3.5浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在firefox3.5浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox3.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox3.jpg&quot; alt=&quot;该作品在firefox3浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在firefox3浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在firefox3浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox2.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_firefox2.jpg&quot; alt=&quot;该作品在firefox2浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在firefox2浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在firefox2浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_safari4.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_safari4.jpg&quot; alt=&quot;该作品在safari4浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在safari4浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在safari4浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_safari3.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_safari3.jpg&quot; alt=&quot;该作品在safari3浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在safari3浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在safari3浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_chrome.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_chrome.jpg&quot; alt=&quot;该作品在chrome浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在chrome浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在chrome浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_opera10.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_opera10.jpg&quot; alt=&quot;该作品在opera10浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在opera10浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在opera10浏览器测试效果图&lt;/p&gt;
&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_opera9.jpg&quot;&gt;&lt;img src=&quot;http://imouou.com/blog/wp-content/uploads/2010/04/qgroup_opera9.jpg&quot; alt=&quot;该作品在opera9浏览器测试效果图--点击看大图 &quot; title=&quot;该作品在opera9浏览器测试效果图--点击看大图 &quot; width=&quot;500&quot; height=&quot;270&quot; class=&quot;alignnone size-full wp-image-358&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
在opera9浏览器测试效果图&lt;/p&gt;
&lt;h4  class=&quot;related_post_title&quot;&gt;相关阅读&lt;/h4&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/gundongtiao-tiyan/&quot; title=&quot;滚动条的体验，左边还是右边好？&quot;&gt;滚动条的体验，左边还是右边好？&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/win7-vs-xp/&quot; title=&quot;win7 VS 叉P（XP）时尚与怀旧&quot;&gt;win7 VS 叉P（XP）时尚与怀旧&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/mozilla-firefox36-tiyan/&quot; title=&quot;好快的火狐狸firefox 3.6 简单体验&quot;&gt;好快的火狐狸firefox 3.6 简单体验&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/ni-jiandao-pianyi-le-ma/&quot; title=&quot;你捡到便宜了吗？&quot;&gt;你捡到便宜了吗？&lt;/a&gt; (1)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imouou.com/blog/404cuowu-yemian-tiyan/&quot; title=&quot;404错误页面体验&quot;&gt;404错误页面体验&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/415105571/imouou/feedsky/s.gif?r=http://imouou.com/blog/browser-sandbox-jiaocheng/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105571/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105571/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://imouou.com/blog/browser-sandbox-jiaocheng/feed/</wfw:commentRss><slash:comments>20</slash:comments><description>还没写过这么长的标题，browser sandbox全名叫Xenocode Browser Sandbox，看到这个标题有点兴奋，当我今天在搜手机模拟器测试的时候，无意中发现了这么一个东西，当你搜索 Xenocode Browser Sandbox 的时候，你就会发现有很多关于这个软件的介绍，但总感觉只是写手 用来宣传的广告语，不知道是不是真的有用，是不是他们有钱收的。。不过可以肯定的是，我写这篇文章我是没钱收。哈哈 ，好了，废话不多说了，进入正题吧。
以前我会想，如果一个系统可以同时装ie6, ie7, ie8，firefox2, firefox3, firefox3.5, safari3, safari4, chrome , opera10, opera9,那就好了，虽然现在也有很多方法来解决浏览器的兼容性测试，但是就我目前的了解情况，这样得装好多个虚拟机来测试，这样是一点都不方便，像ie6 ie7 ie8 虽然有 ietest 还有其它工具来帮助测试，可是偶尔还有些差异，明明ietest没有问题，在别人的ie6 或者ie8下，却出现错乱，当然这个不能全怨浏览器，自己本身的代码写法可能也有问题，写得好的xhtml是很少出现兼容问题的，因为他们了解浏览器的各个bug，ie三个解决了，firefox呢？firefox几个版本怎么共存？用绿化版的？ok，opera呢？safari呢？chrome呢？从官方下载的chrome目前采用自动更新的，应该就是防止出现多版本共存的情况的。我以前试过最多装的测试浏览器有7个，真的已经挺多了，没想到还可以装得更多，现在这种想法终于不是空想了，是的，真的可以，上面提到的浏览器通通可以兼容，通通可以在一个系统打开而不影响目前的系统环境。
东西真的是个好东西，对于我们在web前端做页面构建重构这一块工作的人来说，但是你会发现打开官网，就只有几个浏览器在那里，也没有教你怎么做，啥文档也没有，我看了大半天，好不容易把安装程序弄下来，差点没搞懂怎么用，所以才想写篇文章写给跟我一样迷茫的页面构建者，希望能有点帮助。欢迎拍砖反馈使用效果。

打开官方地址：http://spoon.net/browsers/  
我发现官方 含谷歌广告打开缓慢，因为以后可能每天都得连线打开这个地址，打开缓慢会很不爽，但我们也要体谅一下人家好不容易整的一个赚钱方式，不用你捐助还想咋样啊 ？ 
如果不爽上面的带广告的页面，也可以使用我下面的在线地址，没广告的在线使用地址：http://imouou.com/allbrowser/ ( 除了去除广告还删除了很多不必用的代码，加快了打开速度 )
你也可以下载本地版的 http://imouou.com/allbrowser/allbrowser.zip 
这些打开页面都是需要连接到官方取数据的，所以如果你不能上网的话，你还是别整了，我也想搞个离线版的，这样我就不怕网络打不开的时候不能用了。搞了半天，没能搞定。。如果有哪个高手搞成了离线版，记得分享一下啊。。
具体使用步骤：
   1. 打开在线的使用地址：http://imouou.com/allbrowser/ ( 去除广告快速版，没安装插件前暂时点链接浏览器是没有反应的 )
   2. 点击下载安装spoon-plugin插件（需要重启所有在用的浏览器）
   3. 然后再打开http://imouou.com/allbrowser/  点击上面的浏览器就可以在线安装各种浏览器，会有进度条提示你下载结束，然后就啥都没有了，也没有告诉你接下来要怎么去做。。后来才知道要用第4步
   [...]&lt;img src=&quot;http://www1.feedsky.com/t1/415105571/imouou/feedsky/s.gif?r=http://imouou.com/blog/browser-sandbox-jiaocheng/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/imouou/415105571/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/imouou/415105571/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Css</category><category>浏览器共存</category><category>教程</category><category>应用体验</category><category>测试</category><category>Sandbox</category><category>体验</category><category>兼容</category><pubDate>Sat, 10 Apr 2010 00:47:06 +0800</pubDate><author>o仔</author><comments>http://imouou.com/blog/browser-sandbox-jiaocheng/#comments</comments><guid isPermaLink="false">http://imouou.com/blog/?p=354</guid><dc:creator>o仔</dc:creator><fs:srclink>http://imouou.com/blog/browser-sandbox-jiaocheng/</fs:srclink><fs:srcfeed>http://imouou.com/blog/feed/</fs:srcfeed><fs:itemid>feedsky/imouou/~8032304/415105571/6140287</fs:itemid></item></channel></rss>
