0

I just wonder is there a fastest way to input each of these character

所戸戻肩涙雇編偏啓房扇扉炉肇遍顧 in each one html element.

until now I did like this manually one by one

   <div class=place>所</div>
   <div class=door>戸</div>
   <div class=back>戻</div>
   <div class=shoulder>肩</div>
   <div class=tears>涙</div>

just wonder is there a easier and fastest way to input those character maybe in one or two line of code ?

thank you

1 Answer 1

0

With some JS you could create a loop, inputting each one of those characters with their specific class.

I don't know why you'd want to though? If you just do it once in the HTML, then that will be it done forever. Otherwise, it will always have to be done dynamically and only work on browsers that are allowing scripts.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.