How to implement iframe, the road to fill the pit Various pits of iframe

Updated on technology 2024-04-02
3 answers
  1. Anonymous users2024-02-07

    I've done research on eliminating the horizontal scrollbar, and now I can finally eliminate and recall the x or y axis at will.

    name="mainframe" scrolling=yes noresize=false>

    name="topframe" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="10" bordercolor="#ffffff" >

    Your browser does not support frame display.

    You found that the frame below doesn't need to be scrolled, but I deliberately brought it out to be consistent with the frame above, and the noteworthy part is:

    scrolling="no" noresizerows="*,30"(This is the key to achieving the beauty of browsing) more advice and pull, and then communicate.

  2. Anonymous users2024-02-06

    Why isn't there a roll?

    Its**. name="mainframe">

  3. Anonymous users2024-02-05

    Two projects in a row encountered an iframe, uncomfortable.

    It's okay with the same domain, but it's just ** for different domains.

    Of course, after several tortures, there is still a way.

    The solution is to make them the same domain, which is to set the same domain in both parent and child windows. Of course, this domain is not set randomly, at least to make sure that the two are somewhat similar, otherwise.

    For example, now the parent window domain name and the child window domain name can now find that the second half of the domain name is the same, then we can write = in the js file at the entrance of the two pages', then the two are in the same domain (the local test should consider changing the host file, or setting the two to the same domain such as different ports).

    In short, the overall idea is to take the same part of the domain name to set the domain (if it doesn't work, change it, and if it doesn't work, there will always be one com that can be the same!). )

    Then now it's in the same domain, and it will be easier to do it later.

    The ContentWindow property supports all major browsers, and ContentDocument is rejected by IE6 and 7.

    In actual use, we may need to bind events to the DOM node in the iframe, and the reason why we can't bind the event has beenIt's possible to be ruthlessThat is, you don't load the DOM in the ready(onload) of the parent window at all (you can't be sure when the DOM in the iframe child window will be loaded), so a way to poll the DOM is to poll whether the DOM is loaded completely:

    Another thing to know is that you can make a big fuss in the src of the iframe, and many times you can attach some of the information you need to the src, such as the like, the subwindow can be operated by reading the url, which is very convenient.

    First of all, let's understand a few objects:

Related questions
17 answers2024-04-02

The third uncle of the southern school praised Zhu Yilong's acting skills, naturally because Zhu Yilong played the role of Wu Xie well, and he was able to get the appreciation of the original author, which shows that Zhu Yilong's Wu Xie is successful. <> >>>More

3 answers2024-04-02

1. Fishing spots.

The black pit is ranked first, and it is definitely the fishing spot. Even if Mr. Hua Shaoxin comes, he can't catch me if he can't choose a good fishing spot, which is not self-confidence, but shows the importance of a good fishing spot. Each black pit has several fixed places for fish, and in the case of the black pit boss does not do anything, he does not make a nest and catches more fish than others, which is determined by the underwater environment, and the fish can be kept here. >>>More

5 answers2024-04-02

Acne and acne scars should be treated at the same time. No matter what type of acne scars and acne pits you have, you need to treat acne at the same time, so that acne will no longer grow, otherwise there will be no effect on the treatment of acne scars and acne pits here, and new acne scars will continue to grow there, so that new acne scars and acne pits may be regenerated; >>>More

4 answers2024-04-02

Every place is different, and some things work well here and don't work well anywhere else. Try more. >>>More

3 answers2024-04-02

Come to my blog.

That's how the patriarchs of the past treated this kind of thing. >>>More