2016-09-06 5 views
0

私は幾分かtyped.jsで作業していましたが、この文字列を印刷しようとしています。typed.jsテキストの入力が途中で止まり、ブラウザのサイズを変更するまで表示されない

"Lorem Ipsumを使用している点は、読者がページの読み込み可能なコンテンツに気を取られていないということです多くのデスクトップパブリッシングパッケージやウェブページエディタでは、デフォルトのモデルテキストとしてLorem Ipsumが使用され、 'lorem ipsum'の検索で多くのWebが公開されるようになりましたサイトはまだ幼児期にあります。さまざまなバージョンが何年もかけて時折、ときどき誤って意図的に(注射されたユーモアなど)進化しました。

私のコードは、この

$("#level-description").typed({ 
         strings: [levelContentArray[currentlySelectedLevel-1]], //Above string is stored in this array 
         typeSpeed: 30 
        }); 

のように見えるそれはタイパーがちょうど停止した後のことを...罰金とタイプ2行を開始します。ブラウザウィンドウのサイズを変更すると、タイパーは再びタイプします。明白なことの1つは、typed.jsが文章の入力を続けても表示されないことです。私はここで間違っているのか分からない。助けてくれてありがとう。

答えて

0

問題を再現できません。作業例:私はあなたがMCVEを提供するために、

var str = "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident sometimes on purpose (injected humour and the like)."; 
 

 
$("#level-description").typed({ 
 
    strings: [str], 
 
    typeSpeed: 0 
 
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="https://cdn.bootcss.com/typed.js/1.1.4/typed.min.js"></script> 
 

 
<p id="level-description"></p>

聞いてもいいですか?

関連する問題