私は3行のテキストでdivを持っているとしましょう。そのdivを2つに分割したいので、150文字あるとしましょう。分割したいので、単語ごとに2つの等しい部分になります。
では、もう少し説明させてください。
テキストノードは下にあります...stackoverflowwysiwygコンテナに6行あります。
<p>Brown the roast on all sides in a large lightly oiled skillet over high heat, before
adding to the slow cooker. While meat is browning. Prepare vegetables by washing and paring
potatoes, carrots, and parsnips. Cut into pieces, approximately 2 inches (5 cm) in length.
Place in the bottom, and up the sides, of a slow cooker. Add onions, and place pot roast on
top. Combine cranberry sauce, orange juice, rind and cinnamon and pour over the meat. Cover
and cook on low for 8-10 hours. Yield: 6 servings.</p>
そのdivを52ピクセルの2つのdivに分割したいとします(私のブラウザによると、高さは104ピクセルです)。Cut
しかし、私はそれをやりたいので、それは言葉遣いを意味するものではありません。つまり、2つの単語に分割したくないので、たとえば、C
あるdivと別のdivで。ut
だから私は次のようなものになってしまうでしょう
Div 1
<p>Brown the roast on all sides in a large lightly oiled skillet over high heat, before
adding to the slow cooker. While meat is browning. Prepare vegetables by washing and paring
potatoes, carrots, and parsnips. Cut into pieces, approximately 2 inches (5 cm) in length. </p>
Div 2
<p>Place in the bottom, and up the sides, of a slow cooker. Add onions, and place pot roast on
top. Combine cranberry sauce, orange juice, rind and cinnamon and pour over the meat. Cover
and cook on low for 8-10 hours. Yield: 6 servings.</p>
これを行う方法はありますか?