0

文字列に改行を挿入する正しい構文は何ですか? 「\n」を試しましたが、うまくいきません...? 問題の文字列は次のとおりです。

    function layer0(){
  document.getElementById('layerinfo').innerHTML = 'The Wembury Quest ran during June   2012 and was very popular in the parish. Over 400 quest packs were collected from the village school post office and local shops. The Quest was designed to encourage residents to go out into the parish and explore their local landscape. This layer shows the results from the letterboxes. For the letterboxes twelve locations were chosen, spread around the parish. They were picked to take participants to very different types of landscape and views. Some of them were places which they had visited before, and some were off the beaten track and were new to some Questers. All of the locations were found on public rights of way.';
4

4 に答える 4

2

\n文字列に改行を挿入するための正しい構文です。あなたの問題は、文字列に改行を挿入したくないということです。テキストを文字列に挿入したい<br><br>文字列にテキストを挿入するための正しい構文は<br>.

于 2013-05-08T21:51:29.763 に答える
0

<br>改行にタグを使用できます

于 2013-05-08T21:51:40.253 に答える