Home >Web Front-end >JS Tutorial >Specific code for stretching and dragging iframe using js_javascript skills

Specific code for stretching and dragging iframe using js_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:27:06962browse

The iframe on the left holds the tree directory, and the iframe on the right holds the index page. Drag the mouse to control the width and height of two iframes at the same time.
Hope someone can improve it.
How to operate: Point the mouse between two iframes and drag horizontally or vertically (control the height)
Disadvantages: The size of the CSDN page is changed after releasing the mouse, which does not occupy CPU resources. This changes the size in real time, so the speed is too slow. I hope someone can change it. I don't want to do it anymore, since it doesn't use any special technology.
Tip: The secret of dragging lies in the sentence filter:alpha(opacity=0)

Copy the code The code is as follows: