How to Use iframe to display weather and iframe weather on the webpage

Source: Internet
Author: User

How to Use iframe to display weather and iframe weather on the webpage

Source: http://www.ido321.com/921.html

Css:

   1: *{margin:0;padding:0;list-style-type:none;}
   2: a,img{border:0;}
3: body {font: 12px/180% Arial, Helvetica, sans-serif, "";}
   4:
   5: /* demo */
   6: .demo{width:800px;margin:0 auto;}
   7: .demo div{margin:40px 0 0 0;}

Html:

   1: <div class="demo">
   2:
   3:    <div>
   4:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=2&num=5" width="650" height="70" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
   5:    </div>
   6:
   7:    <div>
   8:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=7" style="border:solid 1px red" width="225" height="90" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
   9:    </div>
  10:
  11:    <div>
  12:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=9" width="800" height="60" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
  13:    </div>
  14:
  15:    <div>
  16:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=11" width="500" height="15" frameborder="0"></iframe>
  17:    </div>
  18:
  19:    <div>
  20:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=13" width="650" height="221" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
  21:    </div>
  22:
  23:    <div>
  24:        <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=19" width="800" height="120" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
  25:    </div>
  26: /div>

Some results:

I made the following results in the project:

Demo address: http://jsfiddle.net/2yfL8x0g/embedded/result/

Next will show you how to get lunar Date: http://www.ido321.com/926.html


On page A, how does one control the webpage displayed by iframe on page B?

The Problem description is unclear:
What is the relationship between page A and page B, and B is the framework, so A is A member of the Framework in B?

Supplement:
<A href0000b.htm target = "_ top"> AAA </a>

How to Use iframe code to display the specified part of the called webpage

I don't know what methods others use,

But I can give you some advice. This is a method I have used before,

It is applied using two iframe. If you want to reference the "ranking of rising persons by category" on the right of the current page, the "zhidao.baidu.com/question/123277073.htmlken" command is correct.

The Code is as follows:
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> untitled document </title>
</Head>
<Body>
<Iframe src = "zhidao.baidu.com/question/123277073.html" width = "980" height = "700" frameborder = "0" scrolling = "no" style = "position: absolute; top:-120px; left:-680px; "> </iframe>
</Body>
</Html>

This page uses the iframe framework to reference the zhidao.baidu.com/question/123277073.html page, and uses csspositioning to set the frame floating position.

Then I wrote this on the page that needs to call zhidao.baidu.com/question/123277073.html:
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> untitled document </title>
</Head>
<Body>
<Iframe src = "Un... the remaining full text>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.