<?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>Jennal's Blog &#187; xhtml</title>
	<atom:link href="http://jennal.cn/category/web%C3%A5%C2%89%C2%8D%C3%A5%C2%8F%C2%B0/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://jennal.cn</link>
	<description>Jennal的技术博客</description>
	<lastBuildDate>Tue, 06 Mar 2012 00:51:52 +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>Input submit button doesn&#8217;t display background image in IE</title>
		<link>http://jennal.cn/2009/12/16/input-submit-button-doesnt-display-background-image-in-ie/</link>
		<comments>http://jennal.cn/2009/12/16/input-submit-button-doesnt-display-background-image-in-ie/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 03:44:21 +0000</pubDate>
		<dc:creator>Jennal</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web前台相关]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://jennal.cn/2009/12/16/input-submit-button-doesnt-display-background-image-in-ie/</guid>
		<description><![CDATA[使用css的background-image让IE的input submit按钮显示背景图片。
IE的input要显示背景图片需要有border，如果把border设置为none，那就不能显示背景图片了。
所以我们只好这么做：

border: 0px solid #fff;


完整的代码：
  CSS:

1
2
3
4
5
6
7
8
9
.btn_test
&#123;
	height: 45px;
	background-image: url&#40;gradVert.jpg&#41;;
	background-repeat: repeat-x;
	border-style: 0px solid #fff;
	display: block;
	cursor: pointer;
&#125;


HTML：

&#60;input type=&#34;submit&#34; name=&#34;someName&#34; value=&#34;Save&#34; id=&#34;someID&#34; class=&#34;btn_test&#34; /&#62;

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2010%2F04%2F28%2Fie7%25E7%259C%259F%25E8%2584%2586%25E5%25BC%25B1%25E5%2595%258A%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IE7真脆弱啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F31%2Farray-indexof-in-internet-explorer%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Array.indexOf in Internet Explorer</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F25%2Fweb-designer-developer-should-know-15-sites%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Web 设计与开发者必须知道的 15 个站点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2008%2F11%2F05%2F%25E9%259A%2590%25E8%2597%258Fie%25E6%25A8%25AA%25E5%2590%2591%25E6%25BB%259A%25E5%258A%25A8%25E6%259D%25A1%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">隐藏IE横向滚动条</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>使用css的background-image让IE的input submit按钮显示背景图片。</p>
<p>IE的input要显示背景图片需要有border，如果把border设置为none，那就不能显示背景图片了。</p>
<p>所以我们只好这么做：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span></pre></div></div>

</p>
<p>完整的代码：<br />
  <br />CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.btn_test</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gradVert.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</p>
<p>HTML：</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;submit&quot; name=&quot;someName&quot; value=&quot;Save&quot; id=&quot;someID&quot; class=&quot;btn_test&quot; /&gt;</pre></div></div>
</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2010%2F04%2F28%2Fie7%25E7%259C%259F%25E8%2584%2586%25E5%25BC%25B1%25E5%2595%258A%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IE7真脆弱啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F31%2Farray-indexof-in-internet-explorer%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Array.indexOf in Internet Explorer</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F25%2Fweb-designer-developer-should-know-15-sites%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Web 设计与开发者必须知道的 15 个站点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2008%2F11%2F05%2F%25E9%259A%2590%25E8%2597%258Fie%25E6%25A8%25AA%25E5%2590%2591%25E6%25BB%259A%25E5%258A%25A8%25E6%259D%25A1%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F12%2F16%2Finput-submit-button-doesnt-display-background-image-in-ie%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">隐藏IE横向滚动条</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://jennal.cn/2009/12/16/input-submit-button-doesnt-display-background-image-in-ie/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jennal.cn/2009/01/31/125/</link>
		<comments>http://jennal.cn/2009/01/31/125/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 12:58:58 +0000</pubDate>
		<dc:creator>Jennal</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web前台相关]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://jennal.cn/?p=125</guid>
		<description><![CDATA[略懂 HTML 的朋友都知道，如果想让一个链接在新窗口中打开，通常的做法是利用 target=”_blank” 来设定 a 标签。例如：


&#60;a href=&#8220;http://jennal.cn&#8220; target=&#8220;_blank&#8220;&#62;Jennal.cn&#60;/a&#62;


这种做法确实比较方便，但在 XHTML 1.0 Strict 中去掉了 target 属性，也就是说我们不能再利用 target 属性来控制链接的行为。虽然当今流行的浏览器在 XHTML 1.0 Strict 甚至 XHTML 1.1 下扔能正确执行 target=”_blank”，但这样的代码毕竟是不规范的，不推荐使用。
很自然，我们会想到用 Javascript 来解决这个问题，我通常是使用下面的方法：


&#60;a href=&#8220;http://jennal.cn&#8220; onclick=&#8220;window.open(this.href);return false;&#8220;&#62;Jennal.cn&#60;/a&#62;


这样虽然可以满足要求，但是当链接很多的时候，代码就显得有些臃肿了。为了简化代码，我们应该用 DOM Event / DHTML 的方法来解决这个问题。今天我恰好在做一个网页，需要使用 XHTML 1.0 Strict，准备自己写一个这样的 Javascript。不过幸好我养成了万事先 Google 的坏习惯，还真让我找到了一个很完善的 Javascript 弹窗代码，这段代码不仅写的漂亮，通用性强，而且还考虑到了当今流行的浏览器按下组合键点击链接的情况，已经非常完善了。代码源头在这里，作者提供了源码下载和一个演示。
这段代码的通用性非常强，作者原文中举例写的也很详细，其实最简单的用法就是为需要开新窗的链接添加 rel=”external” 属性，当然，你也可以自己定制根据 class 或其它什么属性来判断。


&#60;a href=&#8220;http://jennal.cn&#8220; rel=&#8220;external&#8220;&#62;Jennal.cn&#60;/a&#62;


当然，在网页设计中，弹出新窗口在多数情况下应该尽量避免，只在可以提高用户体验的情况下才需要使用。此外，由于有些 Pop Window Blocker 会拦截 Javascript 弹出窗口，我们可以修改这段代码，通过判断窗口是否成功建立来给出关闭弹窗过滤的提示，相信可以使用户体验提升不少。
转自：http://blog.istef.info/2007/05/17/open-a-new-window-when-click-a-link-under-xhtml-10-strict/
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F04%2F24%2Fjavascript-timeout-hacks%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Javascript Timeout Hacks</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2010%2F02%2F23%2Fjavascript%25E4%25B8%25AD%25E5%2588%25A4%25E6%2596%25AD%25E5%258F%2598%25E9%2587%258F%25E6%2598%25AF%25E5%2590%25A6%25E4%25B8%25BAarray%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]javascript中判断变量是否为array</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F18%2Fpro-javascript-techniques-menu%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Pro Javascript Techniques – 目录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2008%2F10%2F06%2Fjavascript%25E4%25B8%25AD%25E8%258E%25B7%25E5%258F%2596%25E5%2585%2583%25E7%25B4%25A0%25E7%259A%2584%25E7%25BB%259D%25E5%25AF%25B9%25E4%25BD%258D%25E7%25BD%25AE%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JavaScript中获取元素的绝对位置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>略懂 HTML 的朋友都知道，如果想让一个链接在新窗口中打开，通常的做法是利用 target=”_blank” 来设定 a 标签。例如：</p>
<div class="hl-surround">
<ol class="hl-main ln-show" title="Double click to hide line number." ondblclick="linenumber(this)">
<li class="hl-firstline"><span style="color: olive;">&lt;</span><span style="color: green;">a</span><span style="color: gray;"> </span><span style="color: #00008b;">href</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">http://jennal.cn</span><span style="color: #8b0000;">&#8220;</span><span style="color: gray;"> </span><span style="color: #00008b;">target</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">_blank</span><span style="color: #8b0000;">&#8220;</span><span style="color: olive;">&gt;<span style="color: gray;">Jennal.cn</span></span><span style="color: gray;"></span><span style="color: olive;">&lt;/</span><span style="color: green;">a</span><span style="color: olive;">&gt;</span></li>
</ol>
</div>
<p>这种做法确实比较方便，但在 XHTML 1.0 Strict 中去掉了 target 属性，也就是说我们不能再利用 target 属性来控制链接的行为。虽然当今流行的浏览器在 XHTML 1.0 Strict 甚至 XHTML 1.1 下扔能正确执行 target=”_blank”，但这样的代码毕竟是不规范的，不推荐使用。</p>
<p>很自然，我们会想到用 Javascript 来解决这个问题，我通常是使用下面的方法：</p>
<div class="hl-surround">
<ol class="hl-main ln-show" title="Double click to hide line number." ondblclick="linenumber(this)">
<li class="hl-firstline"><span style="color: olive;">&lt;</span><span style="color: green;">a</span><span style="color: gray;"> </span><span style="color: #00008b;">href</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">http://<span style="color: #8b0000;">jennal.cn</span></span><span style="color: #8b0000;">&#8220;</span><span style="color: gray;"> </span><span style="color: #00008b;">onclick</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">window.open(this.href);return false;</span><span style="color: #8b0000;">&#8220;</span><span style="color: olive;">&gt;<span style="color: gray;">Jennal.cn</span></span><span style="color: gray;"></span><span style="color: olive;">&lt;/</span><span style="color: green;">a</span><span style="color: olive;">&gt;</span></li>
</ol>
</div>
<p>这样虽然可以满足要求，但是当链接很多的时候，代码就显得有些臃肿了。为了简化代码，我们应该用 DOM Event / DHTML 的方法来解决这个问题。今天我恰好在做一个网页，需要使用 XHTML 1.0 Strict，准备自己写一个这样的 Javascript。不过幸好我养成了万事先 Google 的坏习惯，还真让我找到了一个很完善的 Javascript 弹窗代码，这段代码不仅写的漂亮，通用性强，而且还考虑到了当今流行的浏览器按下组合键点击链接的情况，已经非常完善了。代码源头在<a href="http://www.456bereastreet.com/archive/200610/opening_new_windows_with_javascript_version_12/">这里</a>，作者提供了源码下载和一个<a href="http://www.456bereastreet.com/lab/javascript-target/1.2/">演示</a>。</p>
<p>这段代码的通用性非常强，作者原文中举例写的也很详细，其实最简单的用法就是为需要开新窗的链接添加 rel=”external” 属性，当然，你也可以自己定制根据 class 或其它什么属性来判断。</p>
<div class="hl-surround">
<ol class="hl-main ln-show" title="Double click to hide line number." ondblclick="linenumber(this)">
<li class="hl-firstline"><span style="color: olive;">&lt;</span><span style="color: green;">a</span><span style="color: gray;"> </span><span style="color: #00008b;">href</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">http://jennal.cn</span><span style="color: #8b0000;">&#8220;</span><span style="color: gray;"> </span><span style="color: #00008b;">rel</span><span style="color: gray;">=</span><span style="color: #8b0000;">&#8220;</span><span style="color: red;">external</span><span style="color: #8b0000;">&#8220;</span><span style="color: olive;">&gt;<span style="color: gray;">Jennal.cn</span></span><span style="color: gray;"></span><span style="color: olive;">&lt;/</span><span style="color: green;">a</span><span style="color: olive;">&gt;</span></li>
</ol>
</div>
<p>当然，在网页设计中，弹出新窗口在多数情况下应该尽量避免，只在可以提高用户体验的情况下才需要使用。此外，由于有些 Pop Window Blocker 会拦截 Javascript 弹出窗口，我们可以修改这段代码，通过判断窗口是否成功建立来给出关闭弹窗过滤的提示，相信可以使用户体验提升不少。</p>
<p>转自：http://blog.istef.info/2007/05/17/open-a-new-window-when-click-a-link-under-xhtml-10-strict/</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F04%2F24%2Fjavascript-timeout-hacks%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Javascript Timeout Hacks</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2010%2F02%2F23%2Fjavascript%25E4%25B8%25AD%25E5%2588%25A4%25E6%2596%25AD%25E5%258F%2598%25E9%2587%258F%25E6%2598%25AF%25E5%2590%25A6%25E4%25B8%25BAarray%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]javascript中判断变量是否为array</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2009%2F07%2F18%2Fpro-javascript-techniques-menu%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Pro Javascript Techniques – 目录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fjennal.cn%2F2008%2F10%2F06%2Fjavascript%25E4%25B8%25AD%25E8%258E%25B7%25E5%258F%2596%25E5%2585%2583%25E7%25B4%25A0%25E7%259A%2584%25E7%25BB%259D%25E5%25AF%25B9%25E4%25BD%258D%25E7%25BD%25AE%2F&from=http%3A%2F%2Fjennal.cn%2F2009%2F01%2F31%2F125%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JavaScript中获取元素的绝对位置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://jennal.cn/2009/01/31/125/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

