需要帮助使用OBJECT标签 [英] Need help using OBJECT tag

查看:91
本文介绍了需要帮助使用OBJECT标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,以下文件应该可以使用。但是,我得到一个

的空白页面。使用IE 7


" test2.html"是一个简单的文件,只有再见

World。在它。


我做错了什么?如果是这样,什么?如果没有,为什么这个

对我有用?我也尝试过使用test2.html的绝对路径

- 没有区别。


谢谢!

< html>

< head>

< meta http-equiv =" Content-Type" content =" text / html;

charset = iso-8859-1">

< title>< / title>

< / head>

< body>

< object data =" test2.html"待机="请待机...正在加载文字>

替代内容

< / object>

< / body>

< / html>

The following file, as far as I know, should work. However, I get a
blank page. Using IE 7

"test2.html" is a simple file which has nothing more than "Goodbye
World" in it.

Am I doing something wrong? If so, what? If not, why doesn''t this
work for me? I''ve also tried it using an absolute path for test2.html
- makes no difference.

Thank you!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title></title>

</head>
<body>
<object data="test2.html" standby="Please standby...Loading Text">
Alternate Content
</object>
</body>
</html>

推荐答案

Dudely< ab **** @ gmail.comwrote :
Dudely <ab****@gmail.comwrote:

news: 11 ******** @ q75g2000hsh.googlegroups。 com

据我所知,以下文件应该有效。但是,我得到一个

的空白页面。使用IE 7
news: 11**********************@q75g2000hsh.googlegroups. com
The following file, as far as I know, should work. However, I get a
blank page. Using IE 7



[snip]

[snip]


我做错了什么?如果是这样,什么?如果没有,为什么这个

对我有用?我也尝试过使用test2.html的绝对路径

- 没有区别。
Am I doing something wrong? If so, what? If not, why doesn''t this
work for me? I''ve also tried it using an absolute path for test2.html
- makes no difference.



[snip]

[snip]


< object data =" test2.html"待机="请待机...正在加载文字>

替代内容

< / object>
<object data="test2.html" standby="Please standby...Loading Text">
Alternate Content
</object>



[snip]


给对象一个宽度和高度。

-

BootNic 2007年4月5日星期四12:31

我的问题在于调整我的总体习惯和我的净收入。

* Errol Flynn *

[snip]

Give the object a width and height.
--
BootNic Thursday, April 05, 2007 12:31 AM

My problem lies in reconciling my gross habits with my net income.
*Errol Flynn*


Scripsit BootNic:
Scripsit BootNic:

给对象一个宽度和高度。
Give the object a width and height.



说明:IE使用默认宽度和高度0表示< objectelement。

(如果使用CSS设置边框元素,你会看到元素

,只有空内容和零维度,当你没有设置

的尺寸时。)长之前有人争论这是一个bug还是只是一个非常糟糕的功能。


您可以设置宽度百分比或纯数字(在CSS中解释为

像素)。然后,您可以使用其他更多

合适的单位来更正CSS中的尺寸,例如em单位。


-

Jukka K. Korpela(Yucca)
http:// www .cs.tut.fi / ~jkorpela /

Explanation: IE uses default width and height of 0 for an <objectelement.
(If you use CSS to set a border on the element, you''ll see that the element
is there, just with empty content and zero dimensions, when you don''t set
the dimensions.) Long ago it was debated whether this is a bug or just an
awfully awful feature.

You can set the width in a percentage or as a pure number (interpreted as
pixels) in CSS. You can then correct the dimensions in CSS using other, more
suitable units like the em unit.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


谢谢你们两位。这样可行。但是,我注意到它包含了滚动条的
。我该怎么办呢?


再次感谢!


4月5日上午12:33,Jukka K. Korpela < jkorp ... @ cs.tut.fiwrote:
Thank you to both of you. That works. However, I notice it includes
a scrollbar. How can I turn that off?

Thanks again!

On Apr 5, 12:33 am, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:

Scripsit BootNic:
Scripsit BootNic:

对象的宽度和高度。
Give the object a width and height.



说明:IE使用默认宽度和高度0表示< objectelement。

(如果使用CSS设置边框元素,你会看到元素

,只有空内容和零维度,当你没有设置

的尺寸时。)长之前有人争论这是一个bug还是只是一个非常糟糕的功能。


您可以设置宽度百分比或纯数字(在CSS中解释为

像素)。然后,您可以使用其他更多

合适的单位来更正CSS中的尺寸,例如em单位。


-

Jukka K. Korpela(Yucca) http://www.cs.tut .fi / ~jkorpela /



这篇关于需要帮助使用OBJECT标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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