使用CSS设置列的简写属性
使用columns 属性设置CSS列。您可以尝试运行以下代码以实现columns 属性:
示例
<!DOCTYPE html> <html> <head> <style> .demo { column-rule-color: gray; columns: 100px 4; column-rule-style: dashed; } </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>