Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
練習用 Web サイトに一部の CSS を使用していて、テキストに影を追加したいのですが、影の不透明度を変更したいのですが、これは私が使用しているコードです。
前もって感謝します。
#text{ text-shadow: 2px 1px 2px #FF9D00; text-family: Gulim; font-weight: bold; font-style: italic; }
hex の代わりに rgba を使用する必要があります。最後のパラメーターはアルファ値です。
#text { text-shadow: 2px 1px 2px rgba(255, 157, 0, 0.5); font-family: Gulim; font-weight: bold; font-style: italic; }
また、text-family有効なプロパティではありません。それはfont-family(上で修正)です。
text-family
font-family