current position:Home>How to cut the picture into SVG pieces

How to cut the picture into SVG pieces

2022-01-27 01:43:30 CSDN Q & A

I want to make one , Apartment layout diagram , requirement , Click on each module of the house type diagram , Pop up the contents of the module , such as , Click kitchen , Just pop up the kitchen message , Click the living room to pop up the information of the living room , I want to cut the house type map into svg, Click the module to pop up different contents , How to do this




Refer to the answer 1:

You can try to take the whole house type map as a large div Background map , stay div It contains some small div, Small div The background setting is transparent, adding click events , In this way, users can only click small div, Click to render the information of the block to the pop-up box




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270143282519.html

Random recommended