Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Use SVG Images in IFRAME Tags
How to Use SVG Images in HTML <iframe> Tags?
✍: FYIcenter.com
If you want to use SVG images in HTML <iframe> Tags,
you can save SVG images in .svg files and
include SVG image file names in the "src" attribute
of <iframe> Tags.
You can follow this tutorial to test this.
1. Save the following SVG image in a file called, circle.svg:
<svg xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50"/> </svg>
2. Save the following HTML document in another file called, iframe.html:
<html><body> <p>Black <iframe src="/circle.svg"></iframe> Circle... </p> </body></html>
When you open the above HTML file, iframe.html, in a Web browser, you see a black circle inserted inside a text line.
Similar to square.html in the previous tutorial, extra white spaces are padded below and after image. The the 100px x 100px circle occupied an area of 300px x 150px.
See next tutorial on how to remove padded space around the SVG image.
Also note that, an empty IFRAME tag should coded as <iframe ...></iframe>, not <iframe .../>.
⇐ Use SVG Images in EMBED Tags
2022-12-03, 860🔥, 0💬
Popular Posts:
How to unzip an XPS (XML Paper Specification, .xps) file? According to Microsoft documentation, an ....
How to make my presentation beautiful by applying a built-in theme provided by Office PowerPoint 200...
What are browser popup ads for Firefox? Browser popup ads are new browser windows opened by Websites...
How to install IPython in a Conda environment? If you want to install IPython in a specific Conda en...
Where to find answers to frequently asked questions on Adobe FrameMaker? I want to know how to know ...