<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>art2nd</author_name>
  <author_url>https://blog.hatena.ne.jp/art2nd/</author_url>
  <blog_title>晴歩雨描</blog_title>
  <blog_url>https://2ndart.hatenablog.com/</blog_url>
  <categories>
    <anon>ホームページ、Web作成</anon>
  </categories>
  <description>備忘録として。 印刷時に特定のクラスの背景色を適用しないようにする方法。 ≪ うまくいかない方法 ≫ ※ この方法では、元の要素に別の色が定義されていても、透明になってしまう。例えば、カレンダーの土日の背景で色指定をしていて、当日には別の色を指定している場合、この方法では、印刷で土日の背景が透明になってしまう。 /* 画面表示用スタイル */ .some-class { background-color: #ffcb93; } /* 印刷用スタイル */ @media print { .some-class { background-color: transparent !important;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2ndart.hatenablog.com%2Fentry%2F2025%2F01%2F08%2F150158&quot; title=&quot;CSS）印刷時に特定のクラスの背景色を適用しないようにする。HTMLカレンダーの当日色を消す。 - 晴歩雨描&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/art2nd/20250108/20250108145657.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-08 15:01:58</published>
  <title>CSS）印刷時に特定のクラスの背景色を適用しないようにする。HTMLカレンダーの当日色を消す。</title>
  <type>rich</type>
  <url>https://2ndart.hatenablog.com/entry/2025/01/08/150158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
