我有一個Div
與300px
高度和300px
寬度。更新所有div元素的內容
我想在Div
中放一些文字,所以我想檢查一下,如果文本量 更大,那麼這個div區域會製作另一個Div標籤,並在其中放置其餘的文本。 這是可能的嗎?
編輯
也許這樣的: 我怎麼可以轉換(例如)本文中的一些股利300 * 300:
A fractal is a mathematical set that has a fractal dimension that usually exceeds its topological dimension[1] and may fall between the integers.[2] Fractals are typically self-similar patterns, where self-similar means they are "the same from near as from far"[3] Fractals may be exactly the same at every scale, or as illustrated in Figure 1, they may be nearly the same at different scales.[2][4][5][6] The definition of fractal goes beyond self-similarity per se to exclude trivial self-similarity and include the idea of a detailed pattern repeating itself.[2]:166; 18[4][7]
As mathematical equations, fractals are usually nowhere differentiable, which means that they cannot be measured in traditional ways.[2][6][8] An infinite fractal curve can be perceived of as winding through space differently from an ordinary line, still being a 1-dimensional line yet having a fractal dimension indicating it also resembles a surface.[1]:48[2]:15
The mathematical roots of the idea of fractals have been traced through a formal path of published works, starting in the 17th century with notions of recursion, then moving through increasingly rigorous mathematical treatment of the concept to the study of continuous but not differentiable functions in the 19th century, and on to the coining of the word fractal in the 20th century with a subsequent burgeoning of interest in fractals and computer-based modelling in the 21st century.[9][10] The term "fractal" was first used by mathematician Benoît Mandelbrot in 1975. Mandelbrot based it on the Latin frāctus meaning "broken" or "fractured", and used it to extend the concept of theoretical fractional dimensions to geometric patterns in nature.[2]:405[7]
結果一定是有這樣的事:
嘗試從接受的答案[這個問題](http://stackoverflow.com/questions/3238515/javascript-detect-scrollbar-in-textarea) ,它應該給你一個良好的起點 –
@Zathrus作家:正好我想生成我的HTML代碼之前顯示它,我想分割我的字符串數據(格300 * 300)如果文本大於div區生成另一個div標記 – KF2