Vertical Text with jQuery

后端 未结 6 1945
猫巷女王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 14:58

    Let's go golfing!

    $('#foo label').html($('#foo label').text().replace(/(.)/g,"$1
    "));

    Completely untested, but the pattern in the regex looks like a boob.

提交回复
热议问题