如何将拼写错误的单词放在HTML中 [英] How to put a waved line under misspelled words HTML

查看:72
本文介绍了如何将拼写错误的单词放在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.

推荐答案

<其实你没有使用CSS的标准卷曲下划线,但请查看本教程,了解如何自己创建一个:

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

采取从这里: http://www.phpied.com/curly-underline/

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆