简体   繁体   English

使用html突出显示文本的一部分

[英]Highlighting a part of a text using html

在此处输入图片说明

Hello everyone. 大家好。 The question which I have mentioned earlier is related to this. 我前面提到的问题与此有关。 The letter which is shown in image was written by using unicodes. 图像中显示的字母是使用unicode编写的。 పా now I want to highlight the white part of that image. పా现在,我要突出显示该图像的白色部分。 I have tried this by replacing the required part by using ా but it is not suitable as it is having the dotted lines. 我已经尝试过使用replacing替换所需的部分,但是它不适合使用,因为它带有虚线。 And I even tried this by using the png image of that letter for which it is harder for me to change the colour of the image for highlighting. 而且我什至通过使用该字母的png图像来尝试此操作,对于我来说,很难更改图像的颜色以突出显示。 Please suggest me some methods. 请给我建议一些方法。

you can do it with a font, create a custom font from https://icomoon.io/ . 您可以使用一种字体,从https://icomoon.io/创建一个自定义字体。 For that you will need SVG file of both the symbol పా and and create a font. 为此,您将需要同时使用符号పా SVG文件并创建字体。 that way you will be able to change all propeties of font using CSS. 这样,您将能够使用CSS更改字体的所有属性。

Here is a tutorial on How to Create a SVG from Illustrator 这是有关如何从Illustrator创建SVG的教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM