highlight a line / section of text in html
تبليغيرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.
I want to highlight a line / section of text in html. By set tags e.g. id, to each section of text I wish to highlight, then run a javascript function to apply the highlight to that identified section of text. Then I would need to pass the selected text position back to the app in order to play the relevant sound.
This is my code :
}
.highlight {
background-color: yellow;
}
.div_style_block {
text-align: center;
border-bottom-style: solid;
border-bottom-color: #C0C0C0;
}
.bg_green {
background-color: #D9EAE6;
}
.bg_grey {
background-color: #F0F0F0;
}
.div_style_inline {
display: inline;
}
</style>
أضف إجابة