<?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>Comments on: 在文章標題添加圖片</title> <atom:link href="http://who-know.com/add-images-to-your-post-title/feed/" rel="self" type="application/rss+xml" /><link>http://who-know.com/add-images-to-your-post-title/</link> <description>C&#039;est La Vie</description> <lastBuildDate>Mon, 12 Jul 2010 10:47:49 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Eric</title><link>http://who-know.com/add-images-to-your-post-title/comment-page-1/#comment-74</link> <dc:creator>Eric</dc:creator> <pubDate>Tue, 29 Sep 2009 11:26:34 +0000</pubDate> <guid isPermaLink="false">http://who-know.com/?p=81#comment-74</guid> <description>如果您加入圖片會讓標題分成兩行或您用的主題是 &lt;a href=&quot;http://wordpress.org/extend/themes/lightword&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;WordPress LightWord Theme&lt;/a&gt; 可以參考下面更詳細的說明。原本
&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;修改
&lt;h2&gt;Put_the_Code_Here_A &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;Put_the_Code_Here_C &lt;?php the_title(); ?&gt; Put_the_Code_Here_D&lt;/a&gt; Put_the_Code_Here_B&lt;/h2&gt;Put_the_Code_Here_A, Put_the_Code_Here_B : 會讓標題變成2行
Put_the_Code_Here_C, Put_the_Code_Here_D : 會讓連結包含圖片所以, 看來主題作者對文章標題有做特別的設定, 所以只好來去修改主題的 style.css, 因為它被 h2 包養, 所以應該可以很順利的找到下面那行h2 a{font-weight:700;border:0;text-decoration:none;color:#2C2C29;display:block;}a. 不管標題長短, 放 A, 放 B, 直接變2行
display:block The element will generate a block box (a line break before and after the element)b. 圖片會正常顯是在標題前後, 另外這是預設值, 所以如果沒有特別設定就是 display:inline。
display:inline The element will generate an inline box (no line break before or after the element). This is default.c. 這個就留給有興趣的試
display:inline-block The element will generate a block box, laid out as an inline box.每種方法各有優缺點, 衡量它的代價和它所帶來的效益, 選一種最適合自己的方法吧。更多 CSS display 的用法可以參考 &lt;a href=&quot;http://www.w3schools.com/css/pr_class_display.asp&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;CSS display Property&lt;/a&gt; ,&lt;a href=&quot;http://www.quirksmode.org/css/display.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;CSS display Declaration&lt;/a&gt;.</description> <content:encoded><![CDATA[<p>如果您加入圖片會讓標題分成兩行或您用的主題是 <a href="http://wordpress.org/extend/themes/lightword" target="_blank" rel="nofollow">WordPress LightWord Theme</a> 可以參考下面更詳細的說明。</p><p>原本<br /> &lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</p><p>修改<br /> &lt;h2&gt;Put_the_Code_Here_A &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;Put_the_Code_Here_C &lt;?php the_title(); ?&gt; Put_the_Code_Here_D&lt;/a&gt; Put_the_Code_Here_B&lt;/h2&gt;</p><p>Put_the_Code_Here_A, Put_the_Code_Here_B : 會讓標題變成2行<br /> Put_the_Code_Here_C, Put_the_Code_Here_D : 會讓連結包含圖片</p><p>所以, 看來主題作者對文章標題有做特別的設定, 所以只好來去修改主題的 style.css, 因為它被 h2 包養, 所以應該可以很順利的找到下面那行</p><p>h2 a{font-weight:700;border:0;text-decoration:none;color:#2C2C29;display:block;}</p><p>a. 不管標題長短, 放 A, 放 B, 直接變2行<br /> display:block The element will generate a block box (a line break before and after the element)</p><p>b. 圖片會正常顯是在標題前後, 另外這是預設值, 所以如果沒有特別設定就是 display:inline。<br /> display:inline The element will generate an inline box (no line break before or after the element). This is default.</p><p>c. 這個就留給有興趣的試<br /> display:inline-block The element will generate a block box, laid out as an inline box.</p><p>每種方法各有優缺點, 衡量它的代價和它所帶來的效益, 選一種最適合自己的方法吧。</p><p>更多 CSS display 的用法可以參考 <a href="http://www.w3schools.com/css/pr_class_display.asp" target="_blank" rel="nofollow">CSS display Property</a> ,<a href="http://www.quirksmode.org/css/display.html" target="_blank" rel="nofollow">CSS display Declaration</a>.</p> ]]></content:encoded> </item> <item><title>By: Eric</title><link>http://who-know.com/add-images-to-your-post-title/comment-page-1/#comment-71</link> <dc:creator>Eric</dc:creator> <pubDate>Mon, 28 Sep 2009 12:44:48 +0000</pubDate> <guid isPermaLink="false">http://who-know.com/?p=81#comment-71</guid> <description>eg: 如果是想在文章標題前面加上圖片原本
&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;修改
&lt;h2&gt;&lt;img src=&quot;圖片網址&quot; title=&quot;&quot; alt=&quot;&quot;/&gt; &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</description> <content:encoded><![CDATA[<p>eg: 如果是想在文章標題前面加上圖片</p><p>原本<br /> &lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</p><p>修改<br /> &lt;h2&gt;&lt;img src="圖片網址" title="" alt=""/&gt; &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</p> ]]></content:encoded> </item> </channel> </rss>