
CSSだけでグラデーションを実現:WebKit
大野晋一(編集部)
2008-04-17 18:22:01
WebKit now supports gradients specified in CSS. There are two types of gradients: linear gradients and radial gradients.
builder extra - the Web filtered by humans, not bots
WebKit now supports gradients specified in CSS. There are two types of gradients: linear gradients and radial gradients.
WebKitがCSSのグラデーション指定をサポートした。Dave Hyatt氏のブログ「Surfin' Safari」で14日(現地時間)に明らかにされたもの。
これまでCSSでの色指定はべた塗りが基本だったが、-webkit-gradientという属性を利用することで直線もしくは円方向へのグラデーションの指定が可能となる。
Ajaxanではサンプルコードとそのレンダリング結果の画像が紹介されているので参考にされたい。