html高亮显示文本
For HTML5: (with 'mark' tag)
<p>Do not forget to buy <mark>milk</mark> today.</p>
In CSS file: (To customize highlight)
mark {
background-color: yellow;
color: black;
}
如何突出显示html中的文本
<mark>text</mark>
css标记颜色
<style>
mark {
background-color: yellow;
color: black;
}
</style>
<mark>Highlighted text!!</mark>
html标记
<!-- Highlight parts of a text: -->
<p>Do not forget to buy <mark>milk</mark> today.</p>
<!-- Default CSS: -->
<head><style>
mark {
background-color: yellow;
color: black;
}
</style></head>
在html中标记标记
mark {
display: inline-block;
line-height: 0em;
padding-bottom: 0.5em;
}