本文介绍了如何将拼写错误的单词放在HTML中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页HTML& JS。

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 waved line under those words.

推荐答案

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

采取从这里:

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

这篇关于如何将拼写错误的单词放在HTML中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 06:18