css3_html/css_WEB-ITnoseの複数列レイアウト列の詳細説明
columns 構文: columns: [ column-width ] || [ column-count ]
オブジェクトの列数と各列の幅を設定または取得します
ここで: [ column-width ]: 設定または取得しますオブジェクトの各列の列数 width; [column-count]: オブジェクトの列数を設定または取得します。
css コード:
body{font:14px/1.5 georgia,serif,sans-serif;}p{margin:0;padding:5px 10px;background:#eee;}h1{margin:10px 0;font-size:16px;}.test{ width:628px; border:10px solid #000; -moz-columns:200px 3; -webkit-columns:200px 3; columns:200px 3;}.test2{ border:10px solid #000; -moz-columns:200px; -webkit-columns:200px; columns:200px;}
html コード:
<h1>列数及列宽固定:</h1><div class="test"> <p>This module describes multi-column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns. </p> <p>On the Web, tables have also been used to describe multi-column layouts. The main benefit of using CSS-based columns is flexibility; content can flow from one column to another, and the number of columns can vary depending on the size of the viewport. Removing presentation table markup from documents allows them to more easily be presented on various output devices including speech synthesizers and small mobile devices.</p></div><h1>列宽固定,根据容器宽度液态分布列数:</h1><div class="test2"> <p>This module describes multi-column layout in CSS. By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns. </p> <p>On the Web, tables have also been used to describe multi-column layouts. The main benefit of using CSS-based columns is flexibility; content can flow from one column to another, and the number of columns can vary depending on the size of the viewport. Removing presentation table markup from documents allows them to more easily be presented on various output devices including speech synthesizers and small mobile devices.</p></div>
結果は図に示すとおりです。
以下は、column
1.column-width:
3 .column-gap:
4.column-rule:[ column-rule -width ] || [ column-rule-style ] || [ column-rule-color ] オブジェクトの列間の境界線を設定または取得します。複合プロパティ。 border 属性と同等です
5.column-span: none | オブジェクト要素がすべての列にまたがるかどうかを設定または取得します。
6.column-fill: auto |balance オブジェクトのすべての列の高さが均一であるかどうかを設定または取得します。
balance: すべての列の高さが最も高いものに統一されます
例: column-fill:balance;
7.column-break-before: auto | always | | ページ | 回避ページ | オブジェクトを設定または取得する前に改行するかどうか。
always: 常に要素の前で改行し、新しい列を作成する
avoid: 要素の前での改行と新しい列の作成を避ける
8.column-break -after: auto | always | 回避 | ページ 回避 | オブジェクトを設定または取得した後に改行するかどうか。
always: 要素の後に常に改行と新しい列の作成
avoid: 要素の後に改行と新しい列の作成を避ける
9.column-break -inside: auto |avoid |avoid-column オブジェクト内で改行するかどうかを設定または取得します。
実際、最初の 5 つの項目は一般的に使用されます。

ホットAIツール

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

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

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

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

人気の記事

ホットツール

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

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

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

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

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

ホットトピック









HTMLは、簡単に学習しやすく、結果をすばやく見ることができるため、初心者に適しています。 1)HTMLの学習曲線はスムーズで簡単に開始できます。 2)基本タグをマスターして、Webページの作成を開始します。 3)柔軟性が高く、CSSおよびJavaScriptと組み合わせて使用できます。 4)豊富な学習リソースと最新のツールは、学習プロセスをサポートしています。

HTMLはWeb構造を定義し、CSSはスタイルとレイアウトを担当し、JavaScriptは動的な相互作用を提供します。 3人はWeb開発で職務を遂行し、共同でカラフルなWebサイトを構築します。

Anexampleapalofastartingtaginhtmlis、それはaperginsaparagraph.startingtagsaresentionentientiontheyinitiateelements、definetheirtypes、およびarecrucialforurturingwebpagesandcontingthomedomを構築します。

webdevelopmentReliesOnhtml、css、andjavascript:1)htmlStructuresContent、2)cssStylesit、および3)Javascriptaddsinteractivity、形成、

GiteEpages静的Webサイトの展開が失敗しました:404エラーのトラブルシューティングと解像度Giteeを使用する

Y軸位置Webアノテーション機能の適応アルゴリズムこの記事では、単語文書と同様の注釈関数、特に注釈間の間隔を扱う方法を実装する方法を探ります...

画像をクリックした後、散乱と周囲の画像を拡大する効果を実現するには、多くのWebデザインがインタラクティブな効果を実現する必要があります。特定の画像をクリックして周囲を作成してください...

Vueアプリケーションを開発するときに、ルーターフォルダーの下にindex.jsファイルにvuerouterを登録する必要性があるため、ルーティング構成で問題が発生することがよくあります。特別...
