Vertical Text with jQuery

后端 未结 6 1837
猫巷女王i
猫巷女王i 2021-02-15 14:11

I\'m looking to vertically align text by adding
tags between characters with jQuery.

6条回答
  •  清酒与你
    2021-02-15 15:12

    Why use a while loop when you can use jQuery's builtin each method?

    $.each( $('#foo').text(), function(){ $('#foo').append(this + '
    '); } );

    There. It works. You can test it.

提交回复
热议问题