Home >Web Front-end >HTML Tutorial >div nested html without iframe_HTML/Xhtml_webpage production

div nested html without iframe_HTML/Xhtml_webpage production

WBOY
WBOYOriginal
2016-05-16 16:38:141491browse

Recently, during my homework, I needed to nest pages without iframe, so I had to nest them in divs, using the jquery method.

Copy code
The code is as follows:



As long as the code is so much, #button is the id of a button, and content is You need to insert the html div

and you cannot directly use $("#button").click(function() {}; because this is before the page is loaded, so you will not find what you want after the page is loaded. div, you need to add $(document).ready(function() {};

Another key point is that many people forget to quote jquery, so you must add
Statement:
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