使用CSS指定列的宽度
使用column-width属性指定列的宽度。您可以尝试运行以下代码以实现column-width属性-
示例
<!DOCTYPE html> <html> <head> <style> .demo { column-count: 4; column-rule-color: gray; column-rule-style: dashed; column-width: 100px; } </style> </head> <body> <div class = "demo"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </body> </html>