It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center。
7年前关闭。
我有一个textarea和一个div。我希望当我将鼠标悬停在div中的特定单词上时,它也像这样在文本区域中突出显示该单词...
http://translate.google.com/#hi|en|%E0%A4%AE%E0%A5%87%E0%A4%B0%E0%A4%BE%20%E0%A4%A8%E0%A4%BE%E0%A4%AE%20%E0%A4%B6%E0%A4%BE%E0%A4%B9%E0%A4%AC%E0%A4%BE%E0%A4%9C%E0%A4%BC%20%E0%A4%B8%E0%A4%BF%E0%A4%82%E0%A4%B9
请帮忙...
7年前关闭。
我有一个textarea和一个div。我希望当我将鼠标悬停在div中的特定单词上时,它也像这样在文本区域中突出显示该单词...
http://translate.google.com/#hi|en|%E0%A4%AE%E0%A5%87%E0%A4%B0%E0%A4%BE%20%E0%A4%A8%E0%A4%BE%E0%A4%AE%20%E0%A4%B6%E0%A4%BE%E0%A4%B9%E0%A4%AC%E0%A4%BE%E0%A4%9C%E0%A4%BC%20%E0%A4%B8%E0%A4%BF%E0%A4%82%E0%A4%B9
请帮忙...
最佳答案
无法突出显示textarea
中的文本部分。
话虽如此,这是一种常见的做法(translate.google.com使用该做法)是在元素上方/下方显示叠加层以突出显示其各个部分...
关于javascript - 突出显示文本区域中的文本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11083300/
10-11 08:11