検索
ホームページウェブフロントエンドhtmlチュートリアルこのようなスタイルを実装するにはどうすればよいでしょうか? _html/css_WEB-ITnose


このようなスタイルを実装するにはどうすればよいですか?背景から動的に取り出して、各マス目に


ディスカッションへの返信 (解決策)

css3 と css2 のどちらですか


あなたの意見をチェックしてください: CSS3 変換

transform:rotate(90deg) );

-ms-transform:rotate(90deg); /* Internet Explorer */
-moz-transform:rotate(90deg); /* Firefox */
-webkit-transform:rotate(90deg) ); /* Safari と Chrome */
-o-transform:rotate(9deg); /* Opera */

css3 は 45 度回転

transform:rotate(45deg);

css3 45 度回転

transform:rotate(45deg);


回転後はぴったりと並べず、空白を空けてください


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:400px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-last-child(4n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>

Css3 は 45 度回転します

transform:rotate(45deg);

回転後はぴったりと並べずに隙間を作ります


余白を使用してスペースを調整しますか?

css3 ですか?


-ms-transform:rotate (90deg); /* Internet Explorer */
-moz-transform:rotate(90deg); /* Firefox */

-webkit-transform:rotate(90deg); Chrome */
-o-transform:rotate(9deg); /* Opera */




私の行は上から下です、左の行が 2、次に右の行が 1、次に左の行が 2 になります。このサイクルを実行するにはどうすればよいでしょうか。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:400px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-last-child(4n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:300px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-child(3n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>

マスター、ごめんなさい、私が上から下まで私の意味を理解していませんでした。左から左へ、次のように右に進みます。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:300px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-child(3n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>



マスター、ごめんなさい、理解できませんでした。つまり、上から下に、左から右に次のように進むという意味です:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:300px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-child(3n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>

負け、スコアが非常に低い。 。 。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:800px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);	margin-left: -45px;	}div ul li:nth-child(1){margin-left:0px;}div ul li:nth-child(3n-1){ margin-left:-125px;margin-top:150px;}div ul li:nth-child(3n){margin-left: -45px;margin-top: 74px; }</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>



マスター、ごめんなさい、私の意味が理解できませんでした。次のように、上から下、左から右に進みます:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:300px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);}div ul li:nth-child(3n){margin-left:97px;}</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>

負け、スコアが非常に低い。 。 。
損じゃないよ、全部あげるよ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">div{ background:#62aff3; width:800px; height:400px; padding:30px;}div ul{list-style:none;margin:0;padding:0}div ul li{float:left; width:100px; height:100px; border:2px solid #7bcbff; margin:0 22px; border-radius:10px; 	transform: rotate(45deg);	-ms-transform: rotate(45deg);		/* IE 9 */	-webkit-transform: rotate(45deg);	/* Safari and Chrome */	-o-transform: rotate(45deg);		/* Opera */	-moz-transform: rotate(45deg);		/* Firefox */	background:#004594;	background-image:-webkit-linear-gradient(to top right, #004594, #0186fc,#025cb2);	background-image:linear-gradient(to bottom right, #004594, #0186fc,#025cb2);	margin-left: -45px;	}div ul li:nth-child(1){margin-left:0px;}div ul li:nth-child(3n-1){ margin-left:-125px;margin-top:150px;}div ul li:nth-child(3n){margin-left: -45px;margin-top: 74px; }</style></head><body><div>	<ul>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    	<li></li>    </ul></div></body></html>
声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
&lt; Progress&gt;の目的は何ですか 要素?&lt; Progress&gt;の目的は何ですか 要素?Mar 21, 2025 pm 12:34 PM

この記事では、HTML&lt; Progress&gt;について説明します。要素、その目的、スタイリング、および&lt; meter&gt;との違い要素。主な焦点は、&lt; Progress&gt;を使用することです。タスクの完了と&lt; Meter&gt; statiの場合

&lt; datalist&gt;の目的は何ですか 要素?&lt; datalist&gt;の目的は何ですか 要素?Mar 21, 2025 pm 12:33 PM

この記事では、HTML&lt; Datalist&GT;について説明します。オートコンプリートの提案を提供し、ユーザーエクスペリエンスの改善、エラーの削減によりフォームを強化する要素。

&lt; meter&gt;の目的は何ですか 要素?&lt; meter&gt;の目的は何ですか 要素?Mar 21, 2025 pm 12:35 PM

この記事では、html&lt; meter&gt;について説明します。要素は、範囲内でスカラーまたは分数値を表示するために使用され、Web開発におけるその一般的なアプリケーション。それは差別化&lt; Meter&gt; &lt; Progress&gt;およびex

ビューポートメタタグとは何ですか?レスポンシブデザインにとってなぜそれが重要なのですか?ビューポートメタタグとは何ですか?レスポンシブデザインにとってなぜそれが重要なのですか?Mar 20, 2025 pm 05:56 PM

この記事では、モバイルデバイスのレスポンシブWebデザインに不可欠なViewportメタタグについて説明します。適切な使用により、最適なコンテンツのスケーリングとユーザーの相互作用が保証され、誤用が設計とアクセシビリティの問題につながる可能性があることを説明しています。

HTML5&lt; time&gt;を使用するにはどうすればよいですか 日付と時刻を意味的に表す要素?HTML5&lt; time&gt;を使用するにはどうすればよいですか 日付と時刻を意味的に表す要素?Mar 12, 2025 pm 04:05 PM

この記事では、html5&lt; time&gt;について説明します。セマンティックデート/時刻表現の要素。 人間の読み取り可能なテキストとともに、マシンの読みやすさ(ISO 8601形式)のDateTime属性の重要性を強調し、Accessibilitを増やします

HTML5フォーム検証属性を使用してユーザー入力を検証するにはどうすればよいですか?HTML5フォーム検証属性を使用してユーザー入力を検証するにはどうすればよいですか?Mar 17, 2025 pm 12:27 PM

この記事では、ブラウザのユーザー入力を直接検証するために、必要、パターン、MIN、MAX、および長さの制限などのHTML5フォーム検証属性を使用して説明します。

&lt; iframe&gt;の目的は何ですか タグ?使用する際のセキュリティ上の考慮事項は何ですか?&lt; iframe&gt;の目的は何ですか タグ?使用する際のセキュリティ上の考慮事項は何ですか?Mar 20, 2025 pm 06:05 PM

この記事では、&lt; iframe&gt;外部コンテンツをWebページ、その一般的な用途、セキュリティリスク、およびオブジェクトタグやAPIなどの代替案に埋め込む際のタグの目的。

HTML5のクロスブラウザー互換性のベストプラクティスは何ですか?HTML5のクロスブラウザー互換性のベストプラクティスは何ですか?Mar 17, 2025 pm 12:20 PM

記事では、HTML5クロスブラウザーの互換性を確保するためのベストプラクティスについて説明し、機能検出、プログレッシブエンハンスメント、およびテスト方法に焦点を当てています。

See all articles

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

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

AI Clothes Remover

AI Clothes Remover

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

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

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

ホットツール

SublimeText3 Mac版

SublimeText3 Mac版

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

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

このプロジェクトは osdn.net/projects/mingw に移行中です。引き続きそこでフォローしていただけます。 MinGW: GNU Compiler Collection (GCC) のネイティブ Windows ポートであり、ネイティブ Windows アプリケーションを構築するための自由に配布可能なインポート ライブラリとヘッダー ファイルであり、C99 機能をサポートする MSVC ランタイムの拡張機能が含まれています。すべての MinGW ソフトウェアは 64 ビット Windows プラットフォームで実行できます。

ドリームウィーバー CS6

ドリームウィーバー CS6

ビジュアル Web 開発ツール

WebStorm Mac版

WebStorm Mac版

便利なJavaScript開発ツール