帧属性 [英] frames attributes

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

问题描述

我是第一次建立网站。在尝试验证

我的frameset html文件时,我遇到了以下网址
http://www.w3.org/TR/1999/REC-html401-19991224/


我得到的3个错误都是关于以下内容:


< frameset rows =" 100,*" FRAMEBORDER =" 0"边界=" 0" framespacing =" 0">


错误是:


第16行,第35列:没有属性FRAMEBORDER

第16行,第46栏:没有属性BORDER

第16行,第63栏:没有属性FRAMESPACING


在阅读上面的网址时,我发现没有像border这样的属性。或者

framespacing。我确实找到了frameborder,marginwidth和

marginheight。该信息还包含这些

属性都在< frame>内的示例。元素而不是

< frameset>元素。


我试图通过移动frameborder =" 0"来解决我的页面错误。进入

< frame>我的文档的元素,删除边框和

" framespacing"属性,并添加marginwidth =0和并且

marginheight =" 0"。

结果是在Netscape 7.0中我所有帧周围的空白区域


< frameset rows =" 100,*" FRAMEBORDER =" 0"边界=" 0" framespacing =" 0">

< frameset cols =" 170,*" FRAMEBORDER =" 0"边界=" 0" framespacing =" 0">

< frame src =" sg_tl.html"名称= QUOT; A"滚动= QUOT;否] noresize =" noresize">

< frame src =" sg_top.html"名称= QUOT; B"滚动= QUOT;否] noresize =" noresize">

< / frameset>

< frameset cols =" 164,*" FRAMEBORDER =" 0"边界=" 0" framespacing =" 0">

< frame src =" sg_menu.html"名称= QUOT; C"滚动= QUOT;汽车" noresize =" noresize">

< frame src =" main.html"命名= QUOT; d"滚动= QUOT;汽车" noresize =" noresize">

< / frameset>

< / frameset>


该网站看起来像它我想在NS和IE中使用它,但它只是

不会验证。

有没有人有任何建议?


我的网站是
http://members.cox .net / solidgroundba ... main_page.html


谢谢,

Jonathan

I am building a website for the first time. In attempting to validate
my frameset html file I came across the following URL
http://www.w3.org/TR/1999/REC-html401-19991224/

The 3 errors I am getting are all regarding the following:

<frameset rows="100,*" frameborder="0" border="0" framespacing="0">

The errors are:

Line 16, column 35: there is no attribute "FRAMEBORDER"
Line 16, column 46: there is no attribute "BORDER"
Line 16, column 63: there is no attribute "FRAMESPACING"

In reading up on the above url I found no such attribute as "border" or
"framespacing". I did find "frameborder", "marginwidth", and
"marginheight". The information also contains examples in which these
attributes are all inside the <frame> element as opposed to the
<frameset> element.

I attempted to correct my page''s errors by moving frameborder="0" into
the <frame> elements of my document, removing "border" and
"framespacing" attributes, and adding marginwidth="0" and
marginheight="0".
The result was white space around all of my frames in both Netscape 7.0
and IE 6. I ended up reverting back to the original which is:

<frameset rows="100,*" frameborder="0" border="0" framespacing="0">
<frameset cols="170,*" frameborder="0" border="0" framespacing="0">
<frame src="sg_tl.html" name="A" scrolling="no" noresize="noresize">
<frame src="sg_top.html" name="B" scrolling="no" noresize="noresize">
</frameset>
<frameset cols="164,*" frameborder="0" border="0" framespacing="0">
<frame src="sg_menu.html" name="C" scrolling="auto" noresize="noresize">
<frame src="main.html" name="D" scrolling="auto" noresize="noresize">
</frameset>
</frameset>

The site looks as it I intended it to in both NS and IE, but it just
won''t validate.
Does anyone have any suggestions?

My website is
http://members.cox.net/solidgroundba...main_page.html

Thank you,
Jonathan

推荐答案

Jonathan Carmichael写道:
Jonathan Carmichael wrote:
我是第一次建立一个网站。试图验证
我的frameset html文件
I am building a website for the first time. In attempting to validate
my frameset html file




http://www.allmyfaqs.com/faq.pl?Prob...h_using_frames


虽然有在某些可能有用的情况下,你在尝试创建你的第一个网站时遇到的几率是远程的

(至少可以说)。

-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

首页是〜/ .bashrc的位置



Browser support for standard frames markup is poor. However, frames are
almost always a bad idea in the first place.

http://www.allmyfaqs.com/faq.pl?Prob...h_using_frames

While there are some circumstances where they might be useful, the odds of
you running into them while trying to create your first website are remote
(to say the least).
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


星期六,11 2004年9月16:30:52 - 0400,Jonathan Carmichael

< jo **************** @ cox.net>写道:
On Sat, 11 Sep 2004 16:30:52 -0400, Jonathan Carmichael
<jo****************@cox.net> wrote:
我的网站是
http://members.cox.net/solidgroundba...main_page.html

我已经把你的帖子顺序混在一起作为我的回复。

我是第一次建立一个网站。
My website is
http://members.cox.net/solidgroundba...main_page.html
I''ve mixed the order of your post up for my reply.
I am building a website for the first time.




不要使用框架。坏坏。这不适合

帧。请参阅 http://www.html-faq.com/htmlframes/?framesareevil


顺便说一句 - 过去的十年里,这个小挖掘者就是这样。这就像在高中时戴着领结

,你会被戏弄到最后。事实上,不要说你的网站

正在建设中。只是把它设计得好像它是现场的,并且不要在它准备好之前释放它。


不要残忍 - 你的网站让它看起来像你在中学和

刚开始一个乐队。无论是否是这种情况,你都不想这样做b $ b就像那样做广告。


转储框架,使用CSS定位到把导航放到位,并且

请哦,请在导航项之间放置更少的空间。我可以

继续,但这将是一个良好的开端。



Don''t use frames. Bad bad bad. This is not a suitable application of
frames. See http://www.html-faq.com/htmlframes/?framesareevil

BTW - the little digging man is SO last decade. It''s like wearing a bowtie
to high school, you''ll get teased to no end. In fact, don''t say your site
is under construction. Just design it as if it were live, and don''t
release it until it''s ready.

Not to be cruel - your site makes it look like you''re in middle school and
just started a band. Whether or not that''s the case, you don''t want to
advertise yourself like that.

Dump the frames, use CSS positioning to put the navigation in place, and
please oh please put much much less space between the nav items. I could
go on, but this would be a good start.


哇!这里显然有一些强烈的意见。幸运的是

设计网页不是我的生活。我刚刚决定在一个星期前的闲暇时间为我的乐队放一张

(这不是很多b $ b)。我一定会考虑你的建议。可以

你能指出我学习如何快速使用CSS的好资源吗?

你介意给我一些框架的短版吗?为什么框架坏了?

谢谢,

Jonathan

Neal写道:
Wow! There are obviously some strong opinions here. Fortunately
designing web pages is not my life. I just decided to try to put one
together for my band about a week ago in my spare time (which isn''t
much). I will certainly take your suggestions into consideration. Can
you point me to a good resource for learning how to use css quickly?
Would you mind giving me the short version on frames? Why are frames bad?
Thank you,
Jonathan
Neal wrote:
2004年9月11日星期六16:30:52 - 0400,Jonathan Carmichael
< jo **************** @ cox.net>写道:
On Sat, 11 Sep 2004 16:30:52 -0400, Jonathan Carmichael
<jo****************@cox.net> wrote:
我的网站是
http://members.cox.net/solidgroundba...main_page.html



我已经把你的帖子顺序混在一起我的回复。


I''ve mixed the order of your post up for my reply.

我是第一次建立一个网站。
I am building a website for the first time.



不要使用框架。坏坏。这不是
框架的合适应用。请参阅 http://www.html-faq.com/htmlframes/?framesareevil

顺便说一句 - 这个小挖掘的人是过去十年。这就像在高中时戴着一条领带,你会被戏弄到最后。事实上,不要说
您的网站正在建设中。只是将它设计成现场,并且在它准备好之前不要释放它。

不要太残忍 - 你的网站让它看起来像你在中学
刚开始一个乐队。无论是否是这种情况,你都不希望
像这样做广告。

转储框架,使用CSS定位将导航放置到位,并且<请哦,请在导航项目之间放置更少的空间。我可以继续,但这将是一个良好的开端。


Don''t use frames. Bad bad bad. This is not a suitable application of
frames. See http://www.html-faq.com/htmlframes/?framesareevil

BTW - the little digging man is SO last decade. It''s like wearing a
bowtie to high school, you''ll get teased to no end. In fact, don''t say
your site is under construction. Just design it as if it were live, and
don''t release it until it''s ready.

Not to be cruel - your site makes it look like you''re in middle school
and just started a band. Whether or not that''s the case, you don''t want
to advertise yourself like that.

Dump the frames, use CSS positioning to put the navigation in place, and
please oh please put much much less space between the nav items. I could
go on, but this would be a good start.






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

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