<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>评论: WordPress 2.6 小技巧之4：让图片在博客中正常显示</title> <atom:link href="http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/feed/" rel="self" type="application/rss+xml" /><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/</link> <description>提供 WordPress 插件、主题、程序及相关的中文资讯</description> <lastBuildDate>Wed, 23 May 2012 11:27:53 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>作者: 解决图片在博客中显示不正常的方法 &#124; 高达数字实验室</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-348758</link> <dc:creator>解决图片在博客中显示不正常的方法 &#124; 高达数字实验室</dc:creator> <pubDate>Sat, 21 Apr 2012 15:05:22 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-348758</guid> <description>[...] 其实解决起来老简单了（以至于想死的心都有了）。下面的内容摘自WordPress 2.6 小技巧之4：让图片在博客中正常显示： WordPress 系统在你编辑文章的时候，给这些图片添加了 alignleft, alignright, aligncentered 等 class 参数，分别实现居左，居右，居中。WordPress 对编辑区域的显示设置了相应的参数；但是大部分主题的样式表里，可能并没有此 class 的显示设置；或者有，但并不完全一样。因此，如果你希望能在你的博客中显示的图片和编辑区域显示一致的话，需要你在所使用的主题的样式表文件中添加如下代码。注意，一般是指在 /wp-content/thems/xxx/style.css 文件，xxx 代表你的主题所在目录。 img.alignleft, div.alignleft { float:left; margin:0 0.5em 0.5em 0; } img.alignright, div.alignright { float:right; margin:0 0 0.5em 0.5em; } img.aligncentered, div.aligncentered { text-align:center; margin:0 auto; } [...]</description> <content:encoded><![CDATA[<p>[...] 其实解决起来老简单了（以至于想死的心都有了）。下面的内容摘自WordPress 2.6 小技巧之4：让图片在博客中正常显示： WordPress 系统在你编辑文章的时候，给这些图片添加了 alignleft, alignright, aligncentered 等 class 参数，分别实现居左，居右，居中。WordPress 对编辑区域的显示设置了相应的参数；但是大部分主题的样式表里，可能并没有此 class 的显示设置；或者有，但并不完全一样。因此，如果你希望能在你的博客中显示的图片和编辑区域显示一致的话，需要你在所使用的主题的样式表文件中添加如下代码。注意，一般是指在 /wp-content/thems/xxx/style.css 文件，xxx 代表你的主题所在目录。 img.alignleft, div.alignleft { float:left; margin:0 0.5em 0.5em 0; } img.alignright, div.alignright { float:right; margin:0 0 0.5em 0.5em; } img.aligncentered, div.aligncentered { text-align:center; margin:0 auto; } [...]</p> ]]></content:encoded> </item> <item><title>作者: 90后博客</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-144072</link> <dc:creator>90后博客</dc:creator> <pubDate>Tue, 19 May 2009 05:50:30 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-144072</guid> <description>怎么我这不行啊</description> <content:encoded><![CDATA[<p>怎么我这不行啊</p> ]]></content:encoded> </item> <item><title>作者: 乐扣乐扣</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-17767</link> <dc:creator>乐扣乐扣</dc:creator> <pubDate>Mon, 02 Feb 2009 13:16:13 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-17767</guid> <description>我直接复制过来的图片不显示，不知道是怎么回事～～郁闷啊</description> <content:encoded><![CDATA[<p>我直接复制过来的图片不显示，不知道是怎么回事～～郁闷啊</p> ]]></content:encoded> </item> <item><title>作者: viapast</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-3481</link> <dc:creator>viapast</dc:creator> <pubDate>Sat, 23 Aug 2008 06:20:53 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-3481</guid> <description>这个对我有用，呵呵。。。</description> <content:encoded><![CDATA[<p>这个对我有用，呵呵。。。</p> ]]></content:encoded> </item> <item><title>作者: 摩摩诘</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-3020</link> <dc:creator>摩摩诘</dc:creator> <pubDate>Tue, 29 Jul 2008 13:10:57 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-3020</guid> <description>类似的还有Image Caption,如果主题中没有相关CSS定义的话是无法正确显示的.这个问题我写过一篇日志:http://www.digglife.cn/articles/about-wordpress26-image-caption.html</description> <content:encoded><![CDATA[<p>类似的还有Image Caption,如果主题中没有相关CSS定义的话是无法正确显示的.这个问题我写过一篇日志:<a href="http://www.digglife.cn/articles/about-wordpress26-image-caption.html" rel="nofollow">http://www.digglife.cn/articles/about-wordpress26-image-caption.html</a></p> ]]></content:encoded> </item> <item><title>作者: wangyh</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-3002</link> <dc:creator>wangyh</dc:creator> <pubDate>Tue, 29 Jul 2008 03:05:37 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-3002</guid> <description>我用Dean的那个编辑器。</description> <content:encoded><![CDATA[<p>我用Dean的那个编辑器。</p> ]]></content:encoded> </item> <item><title>作者: 怒风</title><link>http://wpchina.org/wordpress-26-tips-part-4-floating-images-within-the-post-286/comment-page-1/#comment-2999</link> <dc:creator>怒风</dc:creator> <pubDate>Tue, 29 Jul 2008 01:51:03 +0000</pubDate> <guid isPermaLink="false">http://wpchina.org/wordpress-26-tips-part-3-floating-images-within-the-post-286/#comment-2999</guid> <description>学习了!</description> <content:encoded><![CDATA[<p>学习了!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: wpchina.org @ 2012-05-24 10:46:25 -->
