<?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>Dansion&#039;s 日志 &#187; ie8</title>
	<atom:link href="http://www.dansion.com/blog/tag/ie8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dansion.com/blog</link>
	<description>学无止境～～～～～～～</description>
	<lastBuildDate>Thu, 29 Sep 2011 09:25:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>opensearch让你网站的搜索搬到浏览器</title>
		<link>http://www.dansion.com/blog/uncategorized/opensearch-for-ie8-and-ff.html</link>
		<comments>http://www.dansion.com/blog/uncategorized/opensearch-for-ie8-and-ff.html#comments</comments>
		<pubDate>Mon, 18 May 2009 17:49:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[opensearch]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">http://www.dansion.com/blog/?p=631</guid>
		<description><![CDATA[opensearch,分享搜寻结果的简单的格式。IE7+,以及FF2+都支持。让你网站的搜索服务搬到浏览器上面，不管实用不实用，反正不是很难，不防给网站加上。
一.创建opensearch.
1.可以能管IE8的专门网站www.ideadons.com创建
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; ?&#62; 
&#60;OpenSearchDescription xmlns=&#8221;http://a9.com/-/spec/opensearch/1.1/&#8221;&#62;
&#60;ShortName&#62;搜索名称&#60;/ShortName&#62; 
&#60;Description&#62;搜索描述&#60;/Description&#62; 
&#60;InputEncoding&#62;UTF-8&#60;/InputEncoding&#62;  //输入编码
&#60;Url type=&#8221;text/html&#8221; template=&#8221;http://www.dansion.com/blog/q={searchTerms}&#8221; /&#62; //搜索的地址,其中{searchTerms}是用户浏览器输入的
&#60;/OpenSearchDescription&#62;
这是最简单的一个opensearch.还可以增加一些输入的建议的功能。
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; ?&#62; 
&#60;OpenSearchDescription xmlns=&#8221;http://a9.com/-/spec/opensearch/1.1/&#8221;&#62;
&#60;ShortName&#62;搜索名称&#60;/ShortName&#62; 
&#60;Description&#62;搜索描述&#60;/Description&#62; 
&#60;Contact&#62;联系(邮件地址)&#60;/Contact&#62; 
&#60;Url type=&#8221;text/html&#8221; method=&#8221;get&#8221; template=&#8221;http://www.yoursite.com/search?q={searchTerms}&#8221; /&#62; //搜索结果
&#60;Url type=&#8221;application/x-suggestions+xml&#8221; template=&#8221;http://www.yoursite.com/suggest/ie.s?query={searchTerms}&#8221; /&#62; //输入关健字建议,输入联想
&#60;Url type=&#8221;application/x-suggestions+json&#8221; method=&#8221;GET&#8221; template=&#8221;http://www.yoursite.com/suggest/js.s?query={searchTerms}&#8221; /&#62; //输入关健字建议,输入联想,针对FF
&#60;Image height=&#8221;16&#8243; width=&#8221;16&#8243; type=&#8221;image/icon&#8221;&#62;http://www.yoursite.com/favicon.ico&#60;/Image&#62; 
&#60;LongName&#62;长名字&#60;/LongName&#62; 
&#60;Developer&#62;开发者&#60;/Developer&#62; 
&#60;Attribution&#62;归属&#60;/Attribution&#62; 
&#60;SyndicationRight&#62;open&#60;/SyndicationRight&#62; //默认open,还有limited,private,closed
&#60;AdultContent&#62;false&#60;/AdultContent&#62; //是否仅对成人
&#60;Language&#62;en-us&#60;/Language&#62;
&#60;OutputEncoding&#62;UTF8&#60;/OutputEncoding&#62; //输出编码
&#60;InputEncoding&#62;UTF8&#60;/InputEncoding&#62; //输入编码
&#60;/OpenSearchDescription&#62;
opensearch 详细的标签说明 
输入提示的XML格式如下
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF8&#8243; ?&#62;
&#60;SearchSuggestion version=&#8221;2.0&#8243; xmlns=&#8221;http://opensearch.org/searchsuggest2&#8243;&#62;
&#60;Query&#62;输入关健字&#60;/Query&#62;
&#60;Section title=&#8221;Yodao Web Search Suggestion&#8221;&#62;
&#60;Item&#62;
&#60;Text&#62;相关提示&#60;/Text&#62;
&#60;/Item&#62;
&#60;/Section&#62;
&#60;/SearchSuggestion&#62;
json格式如下:
["输入关健字",["相关提示","相关提示","相关提示"]]
输入提示还可以更丰富，比如还可以增加图片，描述，链接，例如淘宝那样.
更多详情标签格式.
二.如何添加或让用户知道
创建并上传opensearch XML文件到到你的网站，再在需要提示的页面增加html头部添加以下代码。
&#60;link rel=&#8221;search&#8221; type=&#8221;application/opensearchdescription+xml&#8221; href=&#8221;http://www.yoursite.com/search.xml&#8221; title=&#8221;搜索名字&#8221; /&#62;
这种方式只会在浏览器搜索框有提示，不过不明显。
还可以提供按扭让用户安装的js方法如下：（该js来自:https://developer.mozilla.org)
function installSearchEngine() {
 if (window.external &#38;&#38; [...]]]></description>
		<wfw:commentRss>http://www.dansion.com/blog/uncategorized/opensearch-for-ie8-and-ff.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给你的网站添加ie8的WebSlices(网页快讯)</title>
		<link>http://www.dansion.com/blog/aboutsite/webslices-for-website.html</link>
		<comments>http://www.dansion.com/blog/aboutsite/webslices-for-website.html#comments</comments>
		<pubDate>Tue, 12 May 2009 16:52:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[WebSlices]]></category>

		<guid isPermaLink="false">http://www.dansion.com/blog/?p=450</guid>
		<description><![CDATA[webslices，微软的IE8帮助文档里翻译为网页快讯。网页快讯是网页中您可以订阅的一个特定部分，通过它您可以了解收藏网站何时提供更新的内容（如当前气温或不断变化的拍卖价格）。一旦您订阅了网页快讯，它将在收藏夹栏中显示为一个链接。在更新网页快讯时，收藏夹栏上的链接将以粗体格式显示。然后，您可以单击该链接来查看更新内容。

只需要在页面里增加微软指定的css class名就可以实现。
&#60;div class=&#8221;hslice&#8221; id=&#8221;webslices&#8221;&#62;/*一个webslices,id号是必需的,命名可随意*/
&#60;div class=&#8221;entry-title&#8221;&#62;&#60;/div&#62;/*当前webslices标题*/
&#60;div class=&#8221;entry-content&#8221;&#62;/*当前webslices内容*/
&#60;/div&#62;
&#60;/div&#62;
只有一个网页有上述的设定，通过IE8浏览，在标题栏就会出现一个绿色的安扭。
 





 
鼠标指向该网页的上述设定处，也会出现一个绿色的边框。
 





 很简单&#8230;&#8230;&#8230;&#8230;
]]></description>
		<wfw:commentRss>http://www.dansion.com/blog/aboutsite/webslices-for-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>又一个可用的CSS HACK</title>
		<link>http://www.dansion.com/blog/xhtmlcss/csshack.html</link>
		<comments>http://www.dansion.com/blog/xhtmlcss/csshack.html#comments</comments>
		<pubDate>Tue, 07 Apr 2009 22:55:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[xhtml+css]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://www.dansion.com/blog/?p=112</guid>
		<description><![CDATA[长时间写AS代码之后，养成良好习惯，每行代码结束随手输入&#8221;;&#8221;,无意中在在整CSS时也顺便在&#8221;}&#8221;之后敲了个&#8221;;&#8221;,变态是整个CSS文件也仅仅只是多敲了这么一个.于是乎在firefox,chorm,opera测试页面时无论如何也不能和IE一致。经过一番&#8230;&#8230;
IE7,IE6包括IE5.5都支持 样式结束之后&#8221;;&#8221;号码,IE8以及firefox,chorm,opera在解晰CSS会让&#8221;;&#8221;号之后的单个样式类无效．
.classA{color:#f00;}/*IE8,firefox,chorm,opera*/
;.classA{color:#000;}/*IE7,IE6,IE5.5*/
这种方式在CSS测试中不能给在&#8221;;&#8221;增加注释代码．
.classA{color:#f00;}/*IE8,firefox,chorm,opera*/
{};.classA{color:#000;}/*IE7,IE6,IE5.5*/
虽然方式在开发中不值的推荐，但对一些原来网站要做IE8,firefox,chorm,opera做兼容性调整，在CSS中完全可以在原来的CSS前面再增加一个同名的样式类来设定对IE8,firefox,chorm,opera的支又不影响原来IE7或之前版本的。看来这样hack还是有一定价值的。
.classA{};classA{}
]]></description>
		<wfw:commentRss>http://www.dansion.com/blog/xhtmlcss/csshack.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 8测式版出来了</title>
		<link>http://www.dansion.com/blog/xhtmlcss/internet-explorer8-bate.html</link>
		<comments>http://www.dansion.com/blog/xhtmlcss/internet-explorer8-bate.html#comments</comments>
		<pubDate>Thu, 06 Mar 2008 14:35:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[xhtml+css]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://www.dansion.com/blog/archives/37</guid>
		<description><![CDATA[IE8终于出来了!完装后重启,IE7和IE8模式可以并存.官方地址http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx做了简单测试.新问题图片标签没有设定长宽的情况下，设定float:left;图片会消失。对网站文本进行选取，出现文字不可见。html标签在不设高度情况，如果汉字行高设为奇数，会使外html标签增高一像素。不支list-style-image；奇怪了。改进从IE7开始大部份标签开始支持伪类:hover,现在IE8开始支持伪类:focus;(复选框不支持);继续测试中&#8230;..
]]></description>
		<wfw:commentRss>http://www.dansion.com/blog/xhtmlcss/internet-explorer8-bate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

