CSS で Adobe Photoshop のあの透明を表現する方法を紹介します。 例えば、Adobe Photoshop が好きすぎる人におすすめな方法です。 CSS で Adobe Photoshop の透明を表現する方法 CSS で Adobe Photoshop の透明を表現する方法 CSS で市松模様を表現するには linear-gradient を使用します。 例えば、特定の要素に透明の市松模様を表示するには、次のコードを特定の要素に追加します。 .transparent { background: rgb(204, 204, 204); background-image: linear-gradient(45deg, rgb(255, 255, 255) 25%, transparent 0), linear-gradient(45deg, transparent 75%,
![CSS で Adobe Photoshop のあの透明を表現する方法 - by Takumi Hirashima](https://cdn-ak-scissors.b.st-hatena.com/image/square/509df0927c74f72d6067fff7f41a928f681960e1/height=288;version=1;width=512/https%3A%2F%2Fhirashimatakumi.com%2Fwp%2Fwp-content%2Fuploads%2F2019%2F07%2F190730_2.jpg)