<?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>中文Flex例子 &#187; HTML</title>
	<atom:link href="http://blog.minidx.com/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +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>25篇非常详细的关于如何从PSD转换为HTML&amp;CSS的教程</title>
		<link>http://blog.minidx.com/2009/11/15/3048.html</link>
		<comments>http://blog.minidx.com/2009/11/15/3048.html#comments</comments>
		<pubDate>Sun, 15 Nov 2009 14:41:04 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[程序开发相关]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PSD]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2009/11/15/3048.html</guid>
		<description><![CDATA[在设计一个网站，WordPress的Theme，或者是Joomla，Drupal等一些CMS的Theme的时候，很多正规商业上的做法都是先用PhotoShop设计出PSD图片，经过客户确认（也有很多是客户找另外的专业设计公司设计），然后着手HTML和CSS按照这一设计制作模板。25 Useful Tutorials Show How to Convert PSD to HTML &#38; CSS Step by Step收集了25篇关于如何从PSD转换为HTML&#38;CSS的教程，写的非常详细，按照上面的步骤，即便是初学者也很容易设计，制作自己的Theme。当然，HTMl以及CSS的基础知识还是必需的。有兴趣的可以看看。

你可能还对下列文章感兴趣:Flex4视频教程《一周学习Flex4》中文字幕版+离线下载播放器50篇Adobe PhotoShop教程超过30篇最新的高质量Adobe PhotoShop教程25篇很不错的Flash和ActionScript 3相关的教程超过14篇Away3D相关的基础教程]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/11/15/3048.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何利用HTMLComponent组件让你的Flex应用支持完美的HTML</title>
		<link>http://blog.minidx.com/2008/12/15/1721.html</link>
		<comments>http://blog.minidx.com/2008/12/15/1721.html#comments</comments>
		<pubDate>Sun, 14 Dec 2008 16:15:51 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTMLComponent]]></category>
		<category><![CDATA[htmlText]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1721</guid>
		<description><![CDATA[一般Flex开发者都知道，Flex中的Text和TextArea虽然有htmlText这个属性可以用来解析HTML并且显示，不过它支持的实际上只是HTML的一个子集，很多HTML的标签都没办法解析。不过HTMLComponent这款组件，帮我们解决了这个问题，下面是一篇相关的说明，有兴趣的可以看看：








http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&#038;productId=2&#038;postId=12208
你可能还对下列文章感兴趣:Flex中如何利用htmlText和condenseWhite属性在RichTextEditor中紧缩HTML的空格的例子Flex的TextArea控件中如何利用htmlText属性以及condenseWhite属性紧缩HTML空格的例子25篇非常详细的关于如何从PSD转换为HTML&#38;CSS的教程Flex Gumbo中如何通过lineBreak样式设置Spark TextArea自动换行的例子Flex中如何在TextArea中使用Tab Stops的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/12/15/1721.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用htmlText和condenseWhite属性在RichTextEditor中紧缩HTML的空格的例子</title>
		<link>http://blog.minidx.com/2008/04/25/774.html</link>
		<comments>http://blog.minidx.com/2008/04/25/774.html#comments</comments>
		<pubDate>Fri, 25 Apr 2008 12:15:37 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[condenseWhite]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[htmlText]]></category>
		<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/04/25/774.html</guid>
		<description><![CDATA[在前面的Flex的TextArea控件中如何利用htmlText属性以及condenseWhite属性紧缩HTML空格的例子中，我们了解了如何通过设置htmlText和condenseWhite属性，在TextArea中将HTML的空格进行紧缩。接下来的例子则演示了在RichTextEditor中，如何利用htmlText和condenseWhite属性，紧缩HTML标签的空格。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; private&#160;function checkBox_change(evt:Event):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; richTextEditor.textArea.condenseWhite = checkBox.selected;
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; ]]&#62;
&#160; &#160; &#60;/mx:Script&#62;
&#160;
&#160; &#160; &#60;mx:String [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/04/25/774.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex的TextArea控件中如何利用htmlText属性以及condenseWhite属性紧缩HTML空格的例子</title>
		<link>http://blog.minidx.com/2008/04/25/773.html</link>
		<comments>http://blog.minidx.com/2008/04/25/773.html#comments</comments>
		<pubDate>Fri, 25 Apr 2008 12:01:26 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[condenseWhite]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[htmlText]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/04/25/773.html</guid>
		<description><![CDATA[接下来的例子演示了Flex的TextArea控件中，如何利用htmlText属性和condenseWhite属性，将HTML的空格进行紧缩。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:String&#160;id=&#34;lorem&#34; source=&#34;lorem.html&#34; /&#62;
&#160;
&#160; &#160; &#60;mx:ApplicationControlBar dock=&#34;true&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:Form styleName=&#34;plain&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:FormItem label=&#34;condenseWhite:&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:CheckBox id=&#34;checkBox&#34; /&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;/mx:FormItem&#62;
&#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/04/25/773.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress中生成静态HTML页面的PHP代码</title>
		<link>http://blog.minidx.com/2008/03/30/663.html</link>
		<comments>http://blog.minidx.com/2008/03/30/663.html#comments</comments>
		<pubDate>Sun, 30 Mar 2008 01:13:36 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[WordPress相关]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[URL重定向]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[负载能力]]></category>
		<category><![CDATA[静态化]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/03/30/663.html</guid>
		<description><![CDATA[页面的静态化，对于访问量较大的站点来说，可以极大的减少数据库的连接/读取次数，减少CPU的消耗率，从而增强站点的负载能力，并且一定程度上提高用户的访问速度，即使数据库崩溃，站点依然可以正常访问，而且搜索引擎对于静态HTML页面，也会有很多的照顾……。目前可以看到的WordPress的静态化插件，一般都有比较致命的缺陷，比如关联文章的显示，留言时候的更新，SideBar部分数据的更新……等等，  那是否有什么方法，是可以让自己来定义如何，或者是什么时候生成静态化HTML页面的呢？








月光的通用PHP动态生成静态HTML网页的代码给我们做了简单的说明，说明了如何自己实现静态化HTML的输出：
首先设置.htaccess文件（关于.htaccess的URL重定向，可以参考.htaccess使用方法总结），将动态调用的参数转换为静态的HTML的URL地址，例如将在post目录下的文件，转发到根目录的wp-post.php文件中，加入的语句类似：
RewriteRule ^post/([a-z0-9\-]+\.html)$  wp-post.php?$1$2
然后修改wp-post.php文件，在文件的开头加入以下PHP代码：
ob_start();
$qstring = isset($_SERVER[&#34;QUERY_STRING&#34;]) ? $_SERVER[&#34;QUERY_STRING&#34;] : &#34;&#34;;
define(&#34;HTML_FILE&#34;,&#160; $_SERVER['DOCUMENT_ROOT'].&#34;/post/&#34;.$qstring);
&#160;
if&#160;(file_exists(HTML_FILE))
{
$lcft = filemtime(HTML_FILE);
if&#160;(($lcft + 3600) &#38;gt; time())&#160; //判断上次生成HTML文件是否超过1小时，若没有才直接输出文件内容
{
echo(file_get_contents(HTML_FILE));
exit(0);
}
}

之后是现有的PHP的代码，然后在当前代码的最后面加上如下的PHP代码：
define(&#34;HTMLMETA&#34;,&#34;&#38;lt;!-- this is a real static html file created at &#34;.date(&#34;Y-m-d H:i:s&#34;).&#34; --&#38;gt;&#34;);
$buffer = ob_get_flush();
$fp = fopen(HTML_FILE, &#34;w&#34;);
if&#160;($fp)
{
fwrite($fp, $buffer.HTMLMETA);
fclose($fp);
}

察看HTML页面，如果页面尾部出现了注释行，说明已经成功的创建了静态HTML文件。这样我们只需要修改文件输出的条件判断部分，就可以根据自己的需要，进行静态化HTML的输出了。
你可能还对下列文章感兴趣:25篇非常详细的关于如何从PSD转换为HTML&#38;CSS的教程61款非常不错的免费Wordpress商业模板如何利用HTMLComponent组件让你的Flex应用支持完美的HTMLGodaddy的wordpress中启用wp-cache插件出现500 Internal Server Error错误地解决方法Flex中如何利用htmlText和condenseWhite属性在RichTextEditor中紧缩HTML的空格的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/03/30/663.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 426/830 objects using disk

Served from: blog.minidx.com @ 2012-02-09 16:05:21 -->
