根据高度将div中的文本划分为sub div。 [英] Divide text in a div to sub div depending on the height.

查看:65
本文介绍了根据高度将div中的文本划分为sub div。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将包含1000行文本的div划分为指定高度的子div。

How to divide a div containing 1000 lines of text into sub divs of a specified height.

推荐答案

不好主意。请看我对这个问题的评论。



HTML中没有文本行这样的概念。从HTML的角度来看,源HTML中的所有行都合并在一起,所有行尾字符合并为一个空格,所有标签,行尾字符和空格的组合合并为一个空格空格。



文本应根据其内容在逻辑和语义上进行结构化。没有任何技巧可以使大块文本更有条理或更易读。



-SA
Bad idea. Please see my comment to the question.

And there is no such concept as "line of text" in HTML. From the standpoint of HTML, all the lines in source HTML are merged together, all end-of-line characters are merged to a single blank space, all combinations of tabs, end-of-line characters and spaces are merged to a single blank space.

Text should be structured logically and semantically, depending on its content. No technical tricks can make big solid piece of text more structured or more readable.

—SA


这篇关于根据高度将div中的文本划分为sub div。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆