レスポンシブ レイアウト
レスポンシブ レイアウト デザインは、基本的に、さまざまな解像度のデバイスに対応できる優れた柔軟性を備えており、優れたユーザーにページの閲覧を提供します。私が作成したシンプルなレスポンシブ レイアウトを共有しましょう:
異なるページは、ブラウザ ページの異なるサイズに適応します。解像度によって異なります。コードは以下に示されています:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> p{ font-size: 12px; } header{ width: 100%; } header img{ width: 100%; } @media (min-width: 1300px) and (max-width:1400px) { #left{ float: left; width: 30%; margin: 0px 50px; } #left #logo-bg{ margin: 10% 10%; width: 80%; position: relative; } #left #logo{ float: left; width: 12%; position: absolute; left: 13%; top: 230px; } #left p{ margin-bottom: -20px; } #left p,h4{ text-align: center; color: red; } #right{ float: left; width: 60%; margin: 15% 0px; } #right h2{ text-align: center; } #right fieldset{ text-align: center; border-left: none; border-right: none; border-bottom: none; } #right fieldset legend{ padding: 0px 20px; } #fen{ width: 100%; -webkit-column-count: 6; -moz-column-count: 6; -o-column-count: 6; -ms-column-count: 6; column-count: 6; -webkit-column-gap: 1em; -moz-column-gap: 1em; -o-column-gap: 1em; -ms-column-gap: 1em; column-gap: 1em; } #fen img{ width: 100%; border-radius: 10px 10px 10px 10px; } #fen p,h4{ text-align: center; color: red; } #fen p{ margin-bottom: -20px; } #di p{ text-align: center; } #di p span{ color: red; } } @media (min-width: 1000px) and (max-width:1300px){ #left{ float: left; width: 30%; margin: 0px 50px; } #left #logo-bg{ margin: 10% 10%; width: 80%; position: relative; } #left #logo{ width: 12%; position: absolute; left: 14%; top: 190px; } #left p{ margin-bottom: -20px; } #left p,h4{ text-align: center; color: red; } #right{ float: left; width: 60%; margin: 15% 0px; } #right h2{ text-align: center; } #right fieldset{ text-align: center; border-left: none; border-right: none; border-bottom: none; } #right fieldset legend{ padding: 0px 20px; } #fen{ width: 100%; -webkit-column-count: 3; -moz-column-count: 3; -o-column-count: 3; -ms-column-count: 3; column-count: 3; -webkit-column-gap: 1em; -moz-column-gap: 1em; -o-column-gap: 1em; -ms-column-gap: 1em; column-gap: 1em; } #fen img{ width: 100%; border-radius: 10px 10px 10px 10px; } #fen p,h4{ text-align: center; color: red; } #fen p{ margin-bottom: -20px; } #di p{ text-align: center; } #di p span{ color: red; } } </style> </head> <body> <header> <img src="/static/imghwm/default1.png" data-src="img/rag.png" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > </header> <aside id="left"> <img src="/static/imghwm/default1.png" data-src="img/logo-bg.png" class="lazy" id="logo-bg"/ alt="レスポンシブレイアウトの簡単な事例紹介" > <img src="/static/imghwm/default1.png" data-src="img/logo.png" class="lazy" id="logo" / alt="レスポンシブレイアウトの簡単な事例紹介" > <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> </aside> <article id="right"> <h2 id="Give-nbsp-me-nbsp-problems-nbsp-give-nbsp-me-nbsp-work">“Give me problems, give me work.”</h2> <p>In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course.</p> <p>In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course.</p> <fieldset><legend>victors</legend></fieldset> <p id="fen"> <img src="/static/imghwm/default1.png" data-src="img/1.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/2.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/3.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/4.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/5.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/6.jpg" class="lazy" / alt="レスポンシブレイアウトの簡単な事例紹介" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> </p> <fieldset><legend>*</legend></fieldset> <p id="di"> <p>In the year 1878 I took <span>Suing table</span> dogree of Doctor</p> <p>What the year 2016 I took dogree <span>Ruing roid</span> of Doctor</p> </p> </article> </body> </html>
時間の関係で十分に厳密ではありませんが、ご容赦ください。
上記のレスポンシブ レイアウトの簡単なケースは、エディターによって共有されたすべてのコンテンツです。参考にしていただければ幸いです。また、PHP 中国語 Web サイトをサポートしていただければ幸いです。
レスポンシブレイアウトの簡単な事例紹介や関連記事は、PHP中国語サイトにぜひご注目ください!

@keyframesandcsstransitionsdifferincomplexity:@keyframesallowsfordeTailedAnimationのシーケンス、whilecsstransitionshandlesimplestatechanges.usecsstransitionsは、ButtonColorChanges、および@keyframesforintricateanimationslikerotatingingspinnnersを使用します。

私は知っています、私は知っています:たくさんのコンテンツ管理システムオプションが利用可能であり、私はいくつかテストしましたが、実際にはY&#039;知っているものはありませんでしたか?奇妙な価格設定モデル、困難なカスタマイズ、一部は全体になることさえあります&

CSSファイルをHTMLにリンクすることは、HTMLの一部で要素を使用することで実現できます。 1)タグを使用して、ローカルCSSファイルをリンクします。 2)複数のタグを追加することにより、複数のCSSファイルを実装できます。 3)外部CSSファイルは、そのような絶対URLリンクを使用します。 4)ファイルパスとCSSファイルの読み込み順序の正しい使用を確認し、パフォーマンスを最適化すると、CSSプリプロセッサを使用してファイルをマージできます。

FlexBoxまたはグリッドの選択は、レイアウト要件によって異なります。1)FlexBoxは、ナビゲーションバーなどの1次元レイアウトに適しています。 2)グリッドは、雑誌のレイアウトなどの2次元レイアウトに適しています。この2つは、レイアウト効果を改善するためにプロジェクトで使用できます。

CSSファイルを含める最良の方法は、タグを使用してHTMLパーツに外部CSSファイルを導入することです。 1.タグを使用して、外部CSSファイルを導入します。 2。小さな調整のために、インラインCSSを使用できますが、注意して使用する必要があります。 3.大規模プロジェクトでは、@Importを介して他のCSSファイルをインポートするために、SASS以下などのCSSプリプロセッサを使用できます。 4。パフォーマンスのために、CSSファイルをマージし、CDNを使用し、CSSNANOなどのツールを使用して圧縮する必要があります。

はい、Youはrelearnbothlexboxandgrid.1)FlexBoxisidealforone-Dimensional、FlexiblleayoutslikenavigationMenus.2)Gridexcelsintwo-digsignssuchasmagazinelayouts.3)Bothenhanceslaysutibulivedibulisunivedivition、floctonsulururを

独自のコードをリファクタリングするのはどのように見えますか?ジョン・レアは、彼が書いた古いCSSアニメーションを選び、それを最適化するという思考プロセスを歩きます。

cssanimationsArenotintinlentyhardbutrepracticeanderstanding ofcsspropertiesandtimingfunctions.1)


ホットAIツール

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

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

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

SublimeText3 Linux 新バージョン
SublimeText3 Linux 最新バージョン

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

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

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター

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