搜索高亮效果/mark标签
利用mark标签实现搜索高亮效果
<!DOCTYPE html>
<html>
<body>
<h1>The mark element</h1>
<p>Do not forget to buy <mark>milk</mark> today.</p>
<p><a href="https://js.work">I'm a <mark>link</mark> today.</a></p>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1>The mark element</h1>
<p>Do not forget to buy <mark>milk</mark> today.</p>
<p><a href="https://js.work">I'm a <mark>link</mark> today.</a></p>
</body>
</html>