タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

cssとpngに関するseckieのブックマーク (2)

  • CSS を使って IE 6 で PNG の半透明を有効にする | ヨモツネット

    概要 IE 6 で img 要素で埋め込んだ PNG ファイルの半透明を有効にする JS はいろいろありますが、CSS でこれを行うための方法です。 利点として、JS で実現した場合、一瞬グレーの部分が表示されてしまいますが、この方法ではそれがありません。 PNG が読み込まれた時点で半透明が有効になっています。 また、CSS のセレクタを用いて、どの img 要素に対して半透明を有効にするかなどを決めることができます。 さらに、onload 後にドキュメントに appendChild や innerHTML などで追加された PNG ファイルについても、半透明が有効になった状態で追加されます。 動作確認用の demo (IE 6 用) 説明 アルファチャンネルを有効にしたい個所に対して以下のようなCSSを適用します。この例では、#sample の中の img 要素となります。(セレクター

  • Scalable CSS Buttons Using Scalable CSS Buttons Using PNG and Background Colors | David’s kitchen

    This guide will help you create your very own dynamic CSS buttons. We will accomplice this with the use of PNG files, transparency and background colors. This will allow the buttons to scale according to our needs and still be useable on older systems that do not support the fancy buttons as you can see on casinoidag.se. You can find many CSS button scripts on the web. Many of them do not do what

    seckie
    seckie 2007/06/04
    CSSと透過pngとDOMを使って、クリーンなHTMLで実現する、可変角丸ボタン
  • 1