EMBED +溢出 [英] EMBED + overflow

查看:83
本文介绍了EMBED +溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我对CSS没有非常深刻的理解,这个问题可能会给你带来愚蠢的回报。对不起。


溢出的CSS属性是否可以应用于embed标签?


我有一个源代码为SVG的嵌入式标签文件,其尺寸未知。

如果它大于屏幕,则SVG的其余部分被剪裁而不显示。

我想强制嵌入标签在这种情况下滚动。


但设置溢出滚动没有任何效果。


我可以设置溢出属性在embed标签上?


非常感谢您的帮助。


Anna

解决方案

Anna写道:

溢出的CSS属性是否可以应用于embed标签?


因为< embed>将是一个被替换的元素,我会认为它然后,< embed>是一个非标准的,专有的Netscape元素,

所以也许这就是为什么它没有。

我有一个嵌入标签,其来源是大SVG文件,其尺寸未知。




你应该使用< object>相反,在HTML 4.01和XHTML

1.1规范中定义。但是,IE并不支持标准

,只有它的专有扩展。您还应该能够使用< img />来
SVG的元素,当它被正确地删除为

" image / svg + xml"。


-

Lachlan Hunt
http://www.lachy.id.au/
la ********** @ lachy.id.au.update.virus.scan ners


删除.update.virus.scanners给我发电子邮件,

没有垃圾邮件和没有病毒!!!


On Sun,2004年5月30日08:58:53 GMT,Lachlan Hunt

< la **** ******@lachy.id.au.update.virus.scanners>写道:

Anna写道:

我有一个embed标签,其来源是大SVG文件,其尺寸未知。
你应该使用<对象>相反,在HTML 4.01和XHTML
1.1规范中定义。




不,OBJECT不能很好地为SVG定义(在

对象导航父对象或jus对象的容器?)使用

IFRAME。

然而,IE并不支持标准
非常好,只有它的专属扩展。


IE支持OBJECT for SVG就好了。

您还应该能够使用< img /> SVG的元素,当它被正确地删除为
image / svg + xml。




为什么你能够这样做?


吉姆。

-

comp.lang.javascript常见问题 - http://jibbering.com/faq/


Jim Ley写道:

On Sun,2004年5月30日08:58:53 GMT,Lachlan Hunt
< la ********** @ lachy.id.au.update。 virus.scanners>写道:

Anna写道:

我有一个embed标签,其来源是大SVG文件,其尺寸未知。



你应该使用< object>相反,在HTML 4.01和XHTML
1.1规范中定义。



对不起,OBJECT没有为SVG定义好(在
中做链接)对象导航父对象或jus对象的容器?)使用
IFRAME。




为什么不,我以为你可以使用

< object type =" image / svg + xml" data =" image.svg">

< p>替代内容...< / p>

< / object>


根据我的经验,使用< object>来嵌入XHTML文档

而不是< iframe> ;;对象内容中的链接

替换对象的内容,而不是父/窗口,没有显示目标属性的显式使用。
< blockquote class =post_quotes>

然而,IE并不支持标准
,只有它的专有扩展。






什么?这似乎是矛盾的。首先你说的对象是不是很好的为SVG定义的
,但现在你说IE支持它就好了。 IE支持
麻烦支持定义明确的东西,更不用说那些没有b $ b的东西了。

您还应该能够使用< img /> SVG的元素,当它被正确地删除为
image / svg + xml。



为什么你能够这样做?




因为SVG是一种图像格式,这就是为什么它应该作为

" image / svg + xml",所以我假设使用< img / >会工作。我包含了

mime类型,因为我不确定UA如果能够如何运作

作为application / xml或text / xml。它们可能会正常工作,但是这意味着UA需要读取文件以确定它是什么类型的XML,无论是否是它是一种XML图像格式,例如

SVG,以及它是否支持格式。


-

Lachlan Hunt
http://www.lachy.id.au/
la ********** @ lachy .id.au.update.virus.scan ners


删除.update.virus.scanners给我发电子邮件,

没有垃圾邮件和没有病毒!!!


Hi all.
I don''t have a very deep understanding of CSS and this question might
sound stupid for you. Sorry for that.

Can the overflow CSS property be applied to the embed tag?

I have an embed tag whose source is big SVG file, whose dimensions are unknown.
If it is bigger than the screen, the rest of the SVG is clipped and not shown.
I would like to force the embed tag to scroll in that case.

But setting the overflow to scroll doesn''t have any effect.

Can I set the overflow property on embed tag at all?

Thank you very much for help.

Anna

解决方案

Anna wrote:

Can the overflow CSS property be applied to the embed tag?
Since <embed> would be a replaced element, I would assume that it
does, however, <embed> is a non-standard, proprietary Netscape element,
so maybe that''s why it doesn''t.
I have an embed tag whose source is big SVG file, whose dimensions are unknown.



You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead. However, IE doesn''t support the standard
very well, only it''s proprietry extensions. You should also be able to
use the <img/> element for SVG, when it''s deleivered correctly as
"image/svg+xml".

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!


On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
<la**********@lachy.id.au.update.virus.scanners> wrote:

Anna wrote:

I have an embed tag whose source is big SVG file, whose dimensions are unknown.
You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead.



Nope, OBJECT isn''t well enough defined for SVG (do links within the
object navigate the parent or jus the object''s container?) use
IFRAME.
However, IE doesn''t support the standard
very well, only it''s proprietry extensions.
IE supports OBJECT for SVG just fine.
You should also be able to
use the <img/> element for SVG, when it''s deleivered correctly as
"image/svg+xml".



Why should you be able to?

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/


Jim Ley wrote:

On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
<la**********@lachy.id.au.update.virus.scanners> wrote:

Anna wrote:

I have an embed tag whose source is big SVG file, whose dimensions are unknown.



You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead.



Nope, OBJECT isn''t well enough defined for SVG (do links within the
object navigate the parent or jus the object''s container?) use
IFRAME.



Why not, I thought you could use
<object type="image/svg+xml" data="image.svg">
<p>Alternate Content...</p>
</object>

From my experience, experementing with embedding XHTML documents
using <object> instead of <iframe>; links within an object''s content
replace the contents of the object, not the parent/window, without
explicit use of the target attribute.

However, IE doesn''t support the standard
very well, only it''s proprietry extensions.



IE supports OBJECT for SVG just fine.



What? this seem contradictory. First you said OBJECT isn''t well
defined for SVG, yet now you say IE supports it just fine. IE has
trouble supporting things which are well defined, let alone those which
are not.

You should also be able to
use the <img/> element for SVG, when it''s deleivered correctly as
"image/svg+xml".


Why should you be able to?



Because SVG is an image format, which is why it should be served as
"image/svg+xml", so I assumed using <img/> would work. I included the
mime type, because I wasn''t sure how UAs would work if it were delivered
as "application/xml" or "text/xml". It''s possible they would work fine,
but it would mean the UA would need to read the file to determine which
type of XML it was, whether or not it was an XML image format, such as
SVG, and whether or not it supported the format.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!


这篇关于EMBED +溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆