Make HTML content not react on search (Ctrl+F)

后端 未结 7 2164
春和景丽
春和景丽 2021-01-01 07:12

In my web app I have a layer with a static HTML content that displays a text.

When I do a search on a page (ctrl+F) and type some text that is contained in the layer

7条回答
  •  时光取名叫无心
    2021-01-01 07:32

    Try to render the text with SVG:

    
      I love SVG
    
    

    http://www.w3schools.com/svg/svg_text.asp

    Edit: After further probing it seems that to prevent search you have to put the SVG in separate file:

    
      
    
    

提交回复
热议问题