2011-11-09 6 views
20

मैं सिर्फ उन्हें पृष्ठ के शरीर में एक के बाद एक है। अगर मैं <object> के साथ ऐसा करता हूं, तो मैं उन्हें सब देखता हूं। IFrames के साथ, मैं केवल पहले को देखता हूं।मैं अपने एचटीएमएल पेज में एकाधिक आईफ्रेम का उपयोग कैसे करूं?

<iframe id="AlertMaintenance" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="AlertMaintenance.html"/> 

<iframe id="DelayReason" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="DelayReason.html"/> 

उत्तर

42

आप एक </iframe> अंतिम टैग निर्दिष्ट करना होगा। स्व-समापन टैग (/>) काम नहीं करते हैं।

कार्य कोड:

<iframe id="AlertMaintenance" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="AlertMaintenance.html"></iframe> 
<iframe id="DelayReason" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="DelayReason.html"></iframe> 

अंत टैग की आवश्यकता है। यह भी देखें: MDN: iFrame

2

आप स्वयं को टैग करने का प्रयास कर रहे हैं।

बदलें इस के लिए:

<iframe id="AlertMaintenance" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="AlertMaintenance.html"></iframe> 

<iframe id="DelayReason" style="border-style: none; border-color: inherit; border-width: 0px; height:1222px; width:100%;" src="DelayReason.html"></iframe> 
2

Iframe एक बंद टैग है:।

<iframe ...></iframe> 

उन्हें में जोड़ें '

संबंधित मुद्दे