CSSとJavaScriptで影付きの角丸ボックス要素を作る
2006年09月27日
スポンサード リンク
Transparent custom corners and borders, version 2 | 456 Berea Street
It’s been almost a year and a half since I posted Transparent custom corners and borders, a technique for creating custom corners and borders with optional alpha transparency.
CSSとJavaScriptで影付きの角丸ボックス要素を作る。
次のような2重線と影がついたボックスのサンプルが公開されています。
HTMLは次のようにシンプルな形に出来るようです。
<div class="cbb">
<h1>Transparent custom corners and borders, version 2</h1> <p>This page demonstrates different uses of the technique described in the article <a href="http://www.456bereastreet.com/archive/200609/transparent_custom_corners_and_borders_version_2/">Transparent custom corners and borders, version 2</a>. Please read that article for more info on how this technique works. Should you want to link to this, please link to the related article instead of to this demo page. Thanks!</p> <p>To create your own corners and borders, follow the instructions in <a href="http://www.456bereastreet.com/archive/200506/customising_custom_corners_and_borders/">Customising custom corners and borders</a>. For an example of how easy doing stuff like this will be once all browser vendors get with the times and update their CSS support, check out <a href="http://www.456bereastreet.com/archive/200509/custom_borders_with_advanced_css/">Custom borders with advanced CSS</a>.</p> <p>The CSS and JavaScript are free to use, but please create your own graphics. Thanks!</p>
</div>
デモページのソースを参考に、この仕組みを利用することで、CSSデザインの可能性が広がりそう。
※尚、IEでデモページを見たところ影は表示されないようです。
スポンサード リンク
投稿者 KJ : 2006年09月27日 07:05
|
![]()
間違いの指摘をしていただける方はメールでお願いします
最新のブログ記事
- 独自の分野でインターネットの最先端を走りませんか?株式会社クレッシェンドをインタビュー
- 2008年10月7日 管理人のブックマーク
- PHPを使ってミニブログを作るチュートリアル
- おいしそうな青りんごを1から作るPhotoshopチュートリアル
- 青ベースの綺麗なサイトデザイン集
- 2008年10月6日 管理人のブックマーク
- SymfonyでのWeb開発に役立つFirebug拡張「FireSymfony」
- GoogleWebToolkit用PHP5フレームワーク「GwtPHP」
- アップル風の画像を作るためのPhotoshopチュートリアル集
- ページ内の画像を一括で最適化「smush.it」
- ブラウザ上で動作するPhotoshop風アプリ「Sumo Paint」


















