効果は以下のとおりです。 コードは次のとおりです (クリックすると展開してソース コードが表示されます)。 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <ヘッド> <meta http-equiv="コンテンツタイプ" コンテンツ="text/html; charset=utf-8" /> <title>アラームボタン</title> <スタイル タイプ="text/css"> /* すべてのスタイルシートコードをここに配置します */ 本文 { 背景: #333; テキストシャドウ: 0 1px 1px rgba(0,0,0,.5); } @-webkit-keyframes bigAssButtonPulse { { 背景色: #1e6a0f; -webkit-box-shadow: 0 0 25px #333; } から 50% { 背景色: #39ba1f; -webkit-box-shadow: 0 0 75px #39ba1f; } { background-color: #1e6a0f; -webkit-box-shadow: 0 0 25px #333; } に変更 } @-webkit-keyframes グリーンパルス { { 背景色: #1e6a0f; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #39ba1f; -webkit-box-shadow: 0 0 27px #39ba1f; } { 背景色: #1e6a0f; -webkit-box-shadow: 0 0 9px #333; } に変更 } @-webkit-keyframes bluePulse { { 背景色: #036075; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #2daebf; -webkit-box-shadow: 0 0 27px #2daebf; } { background-color: #036075; -webkit-box-shadow: 0 0 9px #333; } に変更 } @-webkit-keyframes redPulse { { 背景色: #8c2305; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #e33100; -webkit-box-shadow: 0 0 27px #e33100; } { background-color: #8c2305; -webkit-box-shadow: 0 0 9px #333; } に変更 } @-webkit-keyframes マゼンタパルス { { 背景色: #470123; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #a9014b; -webkit-box-shadow: 0 0 27px #a9014b; } { background-color: #470123; -webkit-box-shadow: 0 0 9px #333; } に変更 } @-webkit-keyframes オレンジパルス { { 背景色: #b84c04; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #ff5c00; -webkit-box-shadow: 0 0 27px #ff5c00; } { background-color: #b84c04; -webkit-box-shadow: 0 0 9px #333; } に変更 } @-webkit-keyframes オレンジローパルス { { 背景色: #bd5000; -webkit-box-shadow: 0 0 9px #333; } から 50% { 背景色: #ffb515; -webkit-box-shadow: 0 0 27px #ffb515; } { background-color: #bd5000; -webkit-box-shadow: 0 0 9px #333; } に変更 } a.ボタン{ -webkit アニメーション期間: 2 秒; -webkit-アニメーションの反復回数: 無限; } .green.button { -webkit-animation-name: greenPulse;アニメーション名: greenPulse; -webkit-animation-duration: 2s;アニメーション期間: 2s; } .blue.button { -webkit-animation-name: bluePulse; -webkit-animation-duration: 2s; } .red.button { -webkit-animation-name: redPulse; -webkit-animation-duration: 2s; } .magenta.button { -webkit-animation-name: magentaPulse; -webkit-animation-duration: 2s; } .orange.button { -webkit-animation-name: orangePulse; -webkit-animation-duration: 2s; } .orangelow.button { -webkit-animation-name: orangellowPulse; -webkit-animation-duration: 2s; } .wall-of-buttons { 幅: 100%; 高さ: 500px; テキスト配置: center; } .wall-of-buttons a.button { display: inline-block; margin: 0 30px 30px 0; } /* プレイグラウンド.css */ Button {#222 url.px 0; X-Moz-Box-Shadow:0,0,0.25)。 ; ボタン::-moz-focus-inner { 境界線: 0; パディング: 0; } .button:hover { 背景色: #111; 色: #fff; } .button:active { -webkit-transform: translateY(1px); -moz-transform: translateY(1px); } /* 小さなボタン */ .small.button { フォントサイズ: 11px; } /* 大きなボタン */ .large.button { フォントサイズ: 14px; パディング: 8px 19px 9px; } /* 私たちのお気に入りのボタンの色 */ .green.button { 背景色: #91bd09; } .green.button:hover { 背景色: #749a02; } .blue.button { 背景色: #2daebf; } .blue.button:hover { 背景色: #007d9a; } .red.button { 背景色: #e33100; } .red.button:hover { 背景色: #872300; } .magenta.button{ 背景色: #a9014b; } .magenta.button:hover { 背景色: #630030; } .orange.button {背景色: #ff5c00;} .orange.button:hover { 背景色: #d45500; } .orangelow.button { 背景色: #ffb515; } .orangelow.button:hover { 背景色: #fc9200; } .white.button { 背景色: #fff; 境界線: 1px solid #ccc; 色: #666 !important; フォントの太さ: normal; テキストの影: 0 1px 1px rgba(255,255,255,1); } .white.button:hover { 背景色: #eee; } </スタイル> </head> <body id="radioactiveButtonsPage" class="chrome windows"> <div class="ボタンの壁"> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><a class="large green button">通常</a> <a class="large blue button">実行</a> <a class="large red button">重度</a> <br /> <a class="large orange button">メイン</a> <a class="large orangelow button">セカンダリ</a> <br /> </p> </div> </本文> </html> 要約する 上記は、クールな点滅アラームボタンの私の推奨事項です。お役に立てば幸いです。ご質問がある場合は、メッセージを残してください。すぐに返信します。また、123WORDPRESS.COM ウェブサイトをサポートしてくださっている皆様にも感謝申し上げます。 |
<<: Typescriptを使用してローカルストレージをカプセル化する方法
>>: HTML で入力プロンプトのテキスト スタイルを変更するためのサンプル コード
目次解決策1解決策2テーブルを作成するときに、興味深い問題に遭遇しました。「指定されたキーが長すぎま...
この記事では、参考までにMySQL 5.7.16の無料インストール版のチュートリアルを紹介します。具...
今日は、「ローテク」の問題について書きたいと思います。ちなみに、私は JavaScript Week...
序文MySQL 8.0 の最新バージョンは 8.0.4 rc であり、正式版は近日中にリリースされる...
この記事の例では、WeChatアプレットの下部ナビゲーションバーコンポーネントの具体的な実装コードを...
MySQL では、ソートには order by を、ページングには limit をよく使用します。最...
1 はじめにデータベースを設計する場合、画像や音声ファイルをデータベースに挿入することは避けられませ...
目次開発環境用のDocker-ceをインストールする開発環境用のDocker-composeをインス...
現象: MySQL バージョン 5.7 以降では、日付型と日付時刻型のデフォルト値が「0000-00...
目次前の単語同期と非同期前菜プレートを追加マクロタスク マイクロタスク約束しましょうタイマーを追加す...
一言で言えば、大手メーカーからクラウド サーバーを購入する場合は、セキュリティ グループに移動して、...
背景ディープラーニング モデルの推論には、特定のデバイスが使用されます。マシンは、モデルの読み込み、...
目次MySQL 内部結合、左結合、右結合、外部結合、複数テーブルクエリビルド環境: 1. 内なる慈恩...
この記事では主に、すべてのコンテナを削除する Docker stop/remove を紹介し、皆さん...