How to put a waved line under misspelled words HTML

前端 未结 3 804
情书的邮戳
情书的邮戳 2020-12-11 04:58

I have a webpage HTML & JS.

I need to add a red waved-line under misspelled words. I got my algorithm to detect those words but I just need to know how put a wa

3条回答
  •  甜味超标
    2020-12-11 05:22

    Actually you don't have a standard curly underline just by using CSS, but check this tutorial on how to create one yourself:

    Taken from here: http://www.phpied.com/curly-underline/

    .curly-underline {
        background: url(underline.gif) bottom repeat-x;
    }
    

提交回复
热议问题