Home > Backend Development > PHP Tutorial > javascript - How to display small images when drawing a div layout with the mouse?

javascript - How to display small images when drawing a div layout with the mouse?

WBOY
Release: 2016-08-08 09:06:45
Original
1119 people have browsed it

The page is divided into two parts. The upper part is to draw a rectangle with the mouse (already implemented). When you click OK, a proportional layout diagram will appear below according to the above graphic. The specific effect is as shown in the figure (the picture is slightly ugly = =) , how to achieve it? Can anyone help me? Thank you very much
javascript - How to display small images when drawing a div layout with the mouse?

Reply content:

The page is divided into two parts. The upper part is to draw a rectangle with the mouse (already implemented). When you click OK, a proportional layout diagram will appear below according to the above graphic. The specific effect is as shown in the figure (the picture is slightly ugly = =) , how to achieve it? Can anyone help me? Thank you very much
javascript - How to display small images when drawing a div layout with the mouse?

Same as what I thought above, use jq’s append to stuff the entire content of the upper div into the lower div, and then use transform to reduce the style of the lower div

Let’s talk about the idea:
There are two containers, upper and lower. The size of the elements in the container is determined according to the percentage of the container. After confirmation, copy the elements of the upper container to the lower container. Add a class to the lower container and reduce it proportionally.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template