<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									セルの背景色を指定する - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Sun, 06 Sep 2026 17:38:59 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8785</link>
                        <pubDate>Fri, 16 Nov 2018 11:39:32 +0000</pubDate>
                        <description><![CDATA[あら。また書いていたら、わいひらさんの投稿が。]]></description>
                        <content:encoded><![CDATA[<p>あら。また書いていたら、わいひらさんの投稿が。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8785</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8783</link>
                        <pubDate>Fri, 16 Nov 2018 11:38:26 +0000</pubDate>
                        <description><![CDATA[一応、補足。class をつける方法は、任意の th のセルの色を変更する場合に使います。th 全ての色のご変更は、かうたっくさんの CSS の td を th にすれば OK です。]]></description>
                        <content:encoded><![CDATA[<p>一応、補足。</p><p>class をつける方法は、任意の th のセルの色を変更する場合に使います。</p><p>th 全ての色のご変更は、<a href="https://wp-cocoon.com/community/cocoon-theme/%E3%82%BB%E3%83%AB%E3%81%AE%E8%83%8C%E6%99%AF%E8%89%B2%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B/#post-8773" target="true">かうたっくさんの CSS</a> の td を th にすれば OK です。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8783</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8781</link>
                        <pubDate>Fri, 16 Nov 2018 11:25:40 +0000</pubDate>
                        <description><![CDATA[あらら、書いている途中にAkiraさんの投稿が。]]></description>
                        <content:encoded><![CDATA[<p>あらら、書いている途中にAkiraさんの投稿が。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8781</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8780</link>
                        <pubDate>Fri, 16 Nov 2018 11:24:40 +0000</pubDate>
                        <description><![CDATA[子テーマのstyle.cssに以下のように記述して色を変更すればよいかと思います。table th {  background-color: #f3f4f5;}うまくいかない場合は、サイトのURLを提示していただいて、ソースコードを見てみないとわからないかもしれません。いずれにせよ、bgcolorではなくスタイルシートで指定すべきかと思います。]]></description>
                        <content:encoded><![CDATA[<p>子テーマのstyle.cssに以下のように記述して色を変更すればよいかと思います。</p><pre>table th {<br />  background-color: #f3f4f5;<br />}</pre><p>うまくいかない場合は、サイトのURLを提示していただいて、ソースコードを見てみないとわからないかもしれません。</p><p>いずれにせよ、bgcolorではなくスタイルシートで指定すべきかと思います。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8780</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8779</link>
                        <pubDate>Fri, 16 Nov 2018 11:23:48 +0000</pubDate>
                        <description><![CDATA[td も th もやり方は同じです。th に class をつけます。class=&quot;th-background&quot;CSS を指定します。.th-background {
  background: red;
}&gt;&gt; tdに紹介されているのが見当たらないからです。td も th もグローバル属性があるので、class をつけても何も問題ありません。参考：MDN の ...]]></description>
                        <content:encoded><![CDATA[<p>td も th もやり方は同じです。</p><p>th に class をつけます。</p><pre>class="th-background"</pre><p>CSS を指定します。</p><pre>.th-background {
  background: red;
}</pre><p>&gt;&gt; tdに紹介されているのが見当たらないからです。</p><p>td も th もグローバル属性があるので、class をつけても何も問題ありません。</p><p>参考：MDN の <a href="https://developer.mozilla.org/ja/docs/Web/HTML/Element/td" target="true">td</a> と <a href="https://developer.mozilla.org/ja/docs/Web/HTML/Element/th" target="true">th</a></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8779</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8774</link>
                        <pubDate>Fri, 16 Nov 2018 10:26:44 +0000</pubDate>
                        <description><![CDATA[「bgcolor」廃止されたんですか！ ?  スミマセン、間違ってました&lt;td bgcolor=&quot;色&quot;&gt;　～　&lt;/td&gt;では上手く行くのですが&lt;th bgcolor=&quot;色&quot;&gt;　～　&lt;/th&gt;だとダメなんです]]></description>
                        <content:encoded><![CDATA[<p>「bgcolor」廃止されたんですか！ ? </p><p> </p><p>スミマセン、間違ってました</p><p>&lt;td bgcolor="<span class="em2">色</span>"&gt;　<span class="em0">～</span>　&lt;/td&gt;では上手く行くのですが</p><p>&lt;th bgcolor="<span class="em2">色</span>"&gt;　<span class="em0">～</span>　&lt;/th&gt;だとダメなんです</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>masamii</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8774</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8773</link>
                        <pubDate>Fri, 16 Nov 2018 10:04:38 +0000</pubDate>
                        <description><![CDATA[spanで背景がは装飾できない。放置しようにも できないやらかしだったので全体であれば以下でいけると思います。任意の箇所であればやっぱ仕方ないかも。table td {
	background: #f00;
}]]></description>
                        <content:encoded><![CDATA[<p>spanで背景がは装飾できない。放置しようにも できないやらかしだったので</p><p>全体であれば以下でいけると思います。任意の箇所であればやっぱ仕方ないかも。</p><pre>table td {
	background: #f00;
}</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>かうたっく</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8773</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8765</link>
                        <pubDate>Fri, 16 Nov 2018 09:24:58 +0000</pubDate>
                        <description><![CDATA[こんにちは細かい話ですが、それであれば該当箇所にspanタグでくくってclass属性をつけてCSSで背景色を付けると良いと思います。tdにclass名を付けてるページはちょくちょく見ますけど、tableにclass属性を付けるのが一般的なくらいに公式ページっ『ぽい』所でtdに紹介されているのが見当たらないからです。tdにclass属性を付けても良いものか、正解が不明なので念のた...]]></description>
                        <content:encoded><![CDATA[<p>こんにちは</p><p>細かい話ですが、それであれば</p><p>該当箇所にspanタグでくくってclass属性をつけてCSSで背景色を付けると良いと思います。</p><p>tdにclass名を付けてるページはちょくちょく見ますけど、tableにclass属性を付けるのが一般的なくらいに公式ページっ『ぽい』所でtdに紹介されているのが見当たらないからです。</p><p>tdにclass属性を付けても良いものか、正解が不明なので念のため</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>かうたっく</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8765</guid>
                    </item>
				                    <item>
                        <title>RE: セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8764</link>
                        <pubDate>Fri, 16 Nov 2018 09:07:56 +0000</pubDate>
                        <description><![CDATA[bgcolor 属性は廃止された上に、IE しか対応していなかったものです。なので、使ってはいけません。任意のセルにとのことですので、このように行います。まず、色をつけたい td に class をつけます。class=&quot;td-background&quot;次に、td につけた class を使い、CSS の background-color で色を指定します。CSS は、子テーマの ...]]></description>
                        <content:encoded><![CDATA[<p>bgcolor 属性は廃止された上に、IE しか対応していなかったものです。</p><p>なので、使ってはいけません。</p><p>任意のセルにとのことですので、このように行います。</p><p>まず、色をつけたい td に class をつけます。</p><pre>class="td-background"</pre><p>次に、td につけた class を使い、CSS の background-color で色を指定します。CSS は、子テーマの style.css や amp.css に追加します。</p><pre>.td-background {
  background: red;
}</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8764</guid>
                    </item>
				                    <item>
                        <title>セルの背景色を指定する</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8763</link>
                        <pubDate>Fri, 16 Nov 2018 08:09:25 +0000</pubDate>
                        <description><![CDATA[よろしくお願いいたしますテーマとは直接関係がありませんがテーブルで任意のセル背景色を指定したいです&lt;td bgcolor=&quot;色&quot;&gt;　～　&lt;/td&gt;上記のタグではcssが優先？されて背景色が変わりませんアドバイスをご教示頂けないでしょうか]]></description>
                        <content:encoded><![CDATA[<p>よろしくお願いいたします</p><p>テーマとは直接関係がありませんが</p><p>テーブルで任意のセル背景色を指定したいです</p><p><span class="em1">&lt;td bgcolor="<span class="em2">色</span>"&gt;　<span class="em0">～</span>　&lt;/td&gt;</span></p><p>上記のタグではcssが優先？されて背景色が変わりません</p><p>アドバイスをご教示頂けないでしょうか</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>masamii</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%82%bb%e3%83%ab%e3%81%ae%e8%83%8c%e6%99%af%e8%89%b2%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b/#post-8763</guid>
                    </item>
							        </channel>
        </rss>
		