לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

How to use zoom style of iframe in JavaScript?

  • 3 תגובות
  • 9 have this problem
  • 4 views
  • תגובה אחרונה מאת cor-el

more options

Hello!

On my webpage I am using JavaScript where content of iframe object needs to be zoomed in or out.

I am using the following JavaScript code:

iframeElem = document.createElement ("iframe"); iframeElem.src = "http://www.mozilla.com"; iframeElem.style.zoom="50%";

This works with Internet Explorer and my frame looks 50% smaller, but it does not work in Firefox.

Can you please help with this or direct me where I can receive help?

Kind regards, Leo

Hello! On my webpage I am using JavaScript where content of iframe object needs to be zoomed in or out. I am using the following JavaScript code: iframeElem = document.createElement ("iframe"); iframeElem.src = "http://www.mozilla.com"; iframeElem.style.zoom="50%"; This works with Internet Explorer and my frame looks 50% smaller, but it does not work in Firefox. Can you please help with this or direct me where I can receive help? Kind regards, Leo

כל התגובות (3)

more options

CSS Zoom doesn't work in Firefox.

Use -moz-transform: scale(0.5);


A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

Thank you, it really helps!

(sorry for using the wrong forum).

more options

You're welcome

It is not really the wrong forum, but on that forum there is more expertise and time to answer such questions. Posts on this forum disappear quickly, so you may need to be lucky for someone familiar with the subject to read this.