純粋な CSS3 ファッション価格表デザイン効果
簡単なチュートリアル
これは純粋な CSS3 を使用して作成されたスタイリッシュな価格表です。価格表はブートストラップによってレイアウトされ、フラット スタイルを採用しており、マウスをその上に移動するとスムーズに色が変化します。
使用方法
HTML構造
価格表の基本的なHTML構造は次のとおりです:
<div class="container"> <div class="row"> <div class="col-md-3 col-sm-6"> <div class="pricingTable"> <div class="pricingTable-header"> <h3 class="heading">Standard</h3> <span class="price-value"> <span class="currency">$</span> 10 <span class="month">/mo</span> </span> </div> <div class="pricing-content"> <ul> <li>50GB Disk Space</li> <li>50 Email Accounts</li> <li>50GB Monthly Bandwidth</li> <li>10 Subdomains</li> <li>15 Domains</li> </ul> <a href="#" class="read">sign up</a> </div> </div> </div> <div class="col-md-3 col-sm-6"> <div class="pricingTable"> <div class="pricingTable-header"> <h3 class="heading">Business</h3> <span class="price-value"> <span class="currency">$</span> 20 <span class="month">/mo</span> </span> </div> <div class="pricing-content"> <ul> <li>60GB Disk Space</li> <li>60 Email Accounts</li> <li>60GB Monthly Bandwidth</li> <li>15 Subdomains</li> <li>20 Domains</li> </ul> <a href="#" class="read">sign up</a> </div> </div> </div> </div> </div>
CSSスタイル
価格表を完成させるためのすべてのCSSコードは次のとおりです:
.pricingTable{ text-align: center; } .pricingTable .pricingTable-header{ padding: 30px 0; background: #4d4d4d; position: relative; transition: all 0.3s ease 0s; } .pricingTable:hover .pricingTable-header{ background: #09b2c6; } .pricingTable .pricingTable-header:before, .pricingTable .pricingTable-header:after{ content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #d9d9d8; position: absolute; bottom: 12px; } .pricingTable .pricingTable-header:before{ left: 40px; } .pricingTable .pricingTable-header:after{ right: 40px; } .pricingTable .heading{ font-size: 20px; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-top: 0; } .pricingTable .price-value{ display: inline-block; position: relative; font-size: 55px; font-weight: bold; color: #09b1c5; transition: all 0.3s ease 0s; } .pricingTable:hover .price-value{ color: #fff; } .pricingTable .currency{ font-size: 30px; font-weight: bold; position: absolute; top: 6px; left: -19px; } .pricingTable .month{ font-size: 16px; color: #fff; position: absolute; bottom: 15px; right: -30px; text-transform: uppercase; } .pricingTable .pricing-content{ padding-top: 50px; background: #fff; position: relative; } .pricingTable .pricing-content:before, .pricingTable .pricing-content:after{ content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #7c7c7c; position: absolute; top: 12px; } .pricingTable .pricing-content:before{ left: 40px; } .pricingTable .pricing-content:after{ right: 40px; } .pricingTable .pricing-content ul{ padding: 0 20px; margin: 0; list-style: none; } .pricingTable .pricing-content ul:before, .pricingTable .pricing-content ul:after{ content: ""; width: 8px; height: 46px; border-radius: 3px; background: linear-gradient(to bottom,#818282 50%,#727373 50%); position: absolute; top: -22px; z-index: 1; box-shadow: 0 0 5px #707070; transition: all 0.3s ease 0s; } .pricingTable:hover .pricing-content ul:before, .pricingTable:hover .pricing-content ul:after{ background: linear-gradient(to bottom, #40c4db 50%, #34bacc 50%); } .pricingTable .pricing-content ul:before{ left: 44px; } .pricingTable .pricing-content ul:after{ right: 44px; } .pricingTable .pricing-content ul li{ font-size: 15px; font-weight: bold; color: #777473; padding: 10px 0; border-bottom: 1px solid #d9d9d8; } .pricingTable .pricing-content ul li:last-child{ border-bottom: none; } .pricingTable .read{ display: inline-block; font-size: 16px; color: #fff; text-transform: uppercase; background: #d9d9d8; padding: 8px 25px; margin: 30px 0; transition: all 0.3s ease 0s; } .pricingTable .read:hover{ text-decoration: none; } .pricingTable:hover .read{ background: #09b1c5; } @media screen and (max-width: 990px){ .pricingTable{ margin-bottom: 25px; } }
上記は内容です純粋な CSS3 ファッション価格表デザイン効果の詳細については、PHP 中国語 Web サイト (www.php.cn) に注目してください。

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

メモ帳++7.3.1
使いやすく無料のコードエディター

SublimeText3 中国語版
中国語版、とても使いやすい

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ドリームウィーバー CS6
ビジュアル Web 開発ツール

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

ホットトピック









純粋な CSS3 で波の効果を実現するにはどうすればよいですか?この記事ではSVGとCSSアニメーションを使って波のエフェクトを作成する方法をご紹介しますので、お役に立てれば幸いです。

この記事では、頻繁に登場する様々な奇妙な形のボタンをCSSを使って簡単に実現する方法を紹介しますので、ぜひ参考にしてください。

2 つの方法: 1. display 属性を使用して、要素に「display:none;」スタイルを追加するだけです。 2. Position 属性と top 属性を使用して、要素の絶対位置を設定し、要素を非表示にします。要素に「position:absolute;top:-9999px;」スタイルを追加するだけです。

1. レベル 1 の料金は 0.5 元です。 2. レベル 2 の料金は 1 元です。 3. レベル 3 の料金は 2 元です。 4. レベル 4 の料金は 3 元です。 5. レベル 5 の料金は 5 元です。 6. レベル6の料金は7元です。 7. レベル 7 の料金は 9 元です。 8. レベル 8 の料金は 13 元です。レベル9。レベル9の料金は18元です。 10. レベル 10 の料金は 24 元です。 11. レベル 11 の料金は 32 元です。レベル12。レベル12の料金は42元です。 13. レベル 13 の料金は 57 元です。 14. レベル 14 の料金は 73 元です。 15. レベル 15 の料金は 97 元です。レベル16。レベル16の料金は130元です。 17. レベル 17 の料金は 170 元です。

CSS では、border-image 属性を使用してレースの境界線を実現できます。 border-image 属性では、画像を使用して境界線を作成できます。つまり、境界線に背景画像を追加できます。背景画像をレース スタイルとして指定するだけで済みます。構文「border-image: url (画像パス) は、内側への画像境界線の幅。開始を繰り返すかどうか;"。

テキストカルーセルと画像カルーセルを作成するにはどうすればよいですか?皆さんが最初に考えるのはjsを使うかどうかですが、実はテキストカルーセルや画像カルーセルも純粋なCSSでも実現できますので実装方法を見ていきましょう。

1. レベル1にアップグレードするには0.5元かかります。 2. レベル2にアップグレードするには1元かかります。 3. レベル3にアップグレードするには2元かかります。 4. レベル4にアップグレードするには3元かかります。 5. レベル5にアップグレードするには5元かかります。 6. レベル6にアップグレードするには7元かかります。 7. レベル7にアップグレードするには9元かかります。 8. レベル8にアップグレードするには13元かかります。 9. レベル9にアップグレードするには18元かかります。 10. レベル10にアップグレードするには24元かかります。 11. レベル11にアップグレードするには32元かかります。 12. レベル12にアップグレードするには42元かかります。 13. レベル 13 にアップグレードするには 57 元かかります。 14. レベル14にアップグレードするには73元かかります。

実装方法: 1. ":active" セレクターを使用して、画像上のマウス クリックの状態を選択します; 2. 変換属性とscale() 関数を使用して、画像の拡大効果を実現します。構文 "img:active {transform : スケール(x 軸倍率、y 軸倍率);}"。
