使用HTML的文本流的多列布局。
HTML<multicol>标记用于创建多列文本,并允许您控制列的大小和数量。<multicol>标记可以包含任何其他HTML内容,与<div>标记非常相似。<multicol>标记内的所有内容均按常规内容显示,只是Netscape4将内容分成多列而不是仅一列。
注-仅Netscape3和更高版本支持此标记。
以下是属性-
示例
您可以尝试以下代码为文本流添加多列布局-
<h1>Breaking News</h1> <multicol cols = 3> <p>State media said more than 2,000 soldiers, police and miners closed the breach in the dike in Shandong province early Sunday and installed pipes and five high-speed pumps, but gave no indication if there were any signs of life.</p> <p>The Huayuan Mining Co. mine flooded on Friday afternoon when the Wen river burst a dike, sending water pouring into a shaft and trapping 172 miners, Xinhua and state television said.</p> </multicol>