img标题核心属性 [英] img title core attribute

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

问题描述

Group,


此列表的新功能。我刚刚发现FireFox没有像IE那样显示img

alt属性。我使用两种浏览器来验证我的

页面是否可读。因为没有阅读所有的参考文件而使我感到沮丧。

有了这个想法,我需要一种方法来在title属性中显示文本,动态地显示
。我不喜欢每次加载新图像时想要经历100多页并且每次更改

。是否可以在title属性中使用变量

,该变量将在单独的

文件中显示列表中的文本?事实上,我想用alt属性来做这件事 - 如果其中任何一个是

。这样我就不得不改变核心页面一次,然后在事情发生变化时编辑

文本文件。我想我的想法有点像CSS页面。

我也想保持我的图像页面严格的XHTML与尽可能少的Java。

。 PHP不能在我的服务器上工作,我的XML知识是零。

提前感谢您提供给我的任何帮助。


Del Ferguson

Group,

New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does. I use both browsers to verify that my
pages are readable. Dumb me for not reading all of the reference document.
With this is mind, I need a way to display text in a title attribute,
dynamically. I don''t like the idea of going through 100+ pages and making
the changes every time a load new images. Is it possible to have a variable
in the title attribute that will display text from a list in a separate
file? In fact, I''d like to do this with the alt attribute--if either is
possible. That way I''d have to change the core pages once and then edit the
text file as things changed. I guess my idea is somewhat like a CSS page.
I''d also like to keep my image pages strict XHTML with as little Java as
possible. PHP doesn''t work on my server and my knowledge of XML is nil.
Thanks in advance for any help you might be able to give me.

Del Ferguson

推荐答案

" Del Ferguson" < RA ******** @ charter.net>写道:
"Del Ferguson" <ra********@charter.net> wrote:
我刚刚发现FireFox没有像IE那样显示
img alt属性。


这是正确的。我的意思是Firefox的行为是正确的。这已经多次讨论过了,但你可以看一下它上面的论文
http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip


简单地说,如果这个改变导致你的页面出现问题,那么你b / b
误解了alt属性的含义,以及你的很多alt
对于那些真正需要alt

属性的人来说,
属性可能更糟糕。

因为没有阅读所有
参考文档而愚蠢。有了这个想法,我需要一种方法来动态地在标题属性中显示文本。


你呢?虽然标题属性_is_或多或少意味着用作工具提示

,但是你真的_need_它,你是否__在它上面?此外,

你的alt属性可能是错误的,这需要注意。

是否可以在title属性中有一个变量显示
单独文件列表中的文字?
I just found out that FireFox does not display the
img alt attribute the same way IE does.
That is correct. I mean the Firefox behavior is correct. This has been
discussed several times, but you might take a look at a treatise on it at
http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip

To put it briefly, if this change causes problem to your page, then you
have misunderstood the meaning of the alt attribute, and many of your alt
attributes might be worse than useless to them who really need alt
attributes.
Dumb me for not reading all of the
reference document. With this is mind, I need a way to display text in
a title attribute, dynamically.
Do you? Although the title attribute _is_ more or less meant to be used as
a tooltip, do you really _need_ it, and are you _relying_ on it? Besides,
your alt attributes are probably wrong, and this requires attention.
Is it
possible to have a variable in the title attribute that will display
text from a list in a separate file?




编号HTML中没有变量。


-

Yucca, http://www.cs。 tut.fi/~jkorpela/

有关网页制作的网页: http://www.cs.tut.fi/~jkorpela/www.html



No. There are no variables in HTML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


2005年1月13日星期四,Del Ferguson写道:
On Thu, 13 Jan 2005, Del Ferguson wrote:
此列表的新内容。我刚刚发现FireFox不像IE那样显示img
alt属性。


当图像显示不是
时,这两种显示替代文本。那是什么替代主要是指

all。如果文本大于

图像的区域,IE有点螃蟹 - 但用户有能力坚持(通过一个相当模糊的

选项配置菜单)在显示的整个文本上

而不是图像。

我使用两种浏览器来验证我的页面是否可读。


这有点狭窄 - 只有一个符合WWW标准的图形浏览器,以及

IE,没有别的。没有人希望你在数十个操作系统上保留数百个浏览器的动物,就像一些

专家那样,但是你不能把你的网络扔掉/更广泛?

至少包括一个文本模式浏览器(Lynx或链接或w3m)。

考虑到这一点,我需要一种方法来显示文本标题
属性,动态。


我认为你正在以错误的心态接近这个。你的工作

作为作者应该提供诚实的内容。如何在每次浏览情况下显示

内容对读者来说真的很高。


标题 ;属性应该可以提供

合理的短文本信息about

应用的资源。


实际上,大多数图形浏览器都会使用标题。属性

提供包含属性文本的弹出窗口。这是什么

你暗示你想要的?

我不喜欢翻阅100多页并做出改变的想法每次加载新图像。


Eh?

是否可以在title属性中设置一个变量,以便在单独的文件中显示列表中的文本?


不在WWW界面,没有。但您可以使用任何

许多服务器端处理设施 - 您使用的

服务器上提供的任何服务。

事实上,我想用alt属性来做这件事 - 如果有可能的话。


技术上相同。但请将这些属性用于

它们的正确用途。 IE只是从现在过时的Netscape浏览器系列中发现旧的过时范例

。现代基于Mozilla的

浏览器已经拒绝使用这种不恰当的用法,并且

正确如此[1]。但是如果你提供alt =和title =属性

那么IE将表现得恰当(在HTML和WAI

规范的意义上)。它只有在没有title =属性的情况下才会回归到Netscape< = 4

版本的旧的和不恰当的行为。

这样我就不得不一次更改核心页面,然后在更改内容时编辑
文本文件。


是的,但要注意通过让你的页面在服务器上动态,你

不要破坏可缓存性。请参阅Mark Nottingham的教程。

我想我的想法有点像CSS页面。


我不这么认为。 CSS用于presentation / proposals /,在

最终分析中,它应该是可选的。 HTML用于提供

真实*内容*,根据他们的
,浏览器(以及其他类型的客户端)应该呈现或以其他方式处理。
目的。

我也想用尽可能少的Java来保持我的图像页面严格的XHTML。
New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does.
Those both sort-of display the alternative text when images are not
being displayed. That''s what "alternative" primarily means, after
all. IE is a bit crabby if the text is larger than the area of the
image - but the user has the ability to insist (via a fairly obscure
option on the configuration menu) on the whole text being displayed
instead of the image.
I use both browsers to verify that my pages are readable.
That''s a bit narrow - only one WWW-conforming graphical browser, and
IE, and nothing else. Nobody expects you to keep a menagerie of
hundreds of browsers on dozens of operating systems, as some
specialists do, but can''t you throw your net a /bit/ more widely?
At least include one text-mode browser (Lynx or links or w3m).
With this is mind, I need a way to display text in a title
attribute, dynamically.
I think you''re approaching this in the wrong frame of mind. Your job
as an author is supposed to be providing honest content. How that
content is displayed in each and every browsing situation is really up
to the reader.

The "title" attribute is supposed to be available for providing
reasonably short textual information "about" the resource to which
it''s applied.

In practice, most graphical browsers will use the "title" attribute
to provide a popup containing the text of the attribute. Is this what
you''re hinting that you want?
I don''t like the idea of going through 100+ pages and making
the changes every time a load new images.
Eh?
Is it possible to have a variable in the title attribute that will
display text from a list in a separate file?
Not at the WWW interface, no. But you could do it with any of the
many server-side processing facilities - whatever is available on the
server that you use.
In fact, I''d like to do this with the alt attribute--if either is
possible.
Same difference, technically. But please use these attributes for
their proper purposes. IE is only ape-ing an old outdated paradigm
from the now-obsolete Netscape browser series. Modern Mozilla-based
browsers have turned their back on that inappropriate usage, and
rightly so[1]. But if you provide both alt= and title= attributes
then IE will behave appropriately (in the sense of the HTML and WAI
specifications). It''s only if there is no title= attribute that it
falls back to the old and inappropriate behaviour of Netscape <= 4
versions.
That way I''d have to change the core pages once and then edit the
text file as things changed.
Yes, but take care that by making your page dynamic on the server, you
don''t destroy cacheability. See Mark Nottingham''s tutorial.
I guess my idea is somewhat like a CSS page.
I don''t think so. CSS is for presentation /proposals/, which, in the
final analysis, are supposed to be optional. HTML is for providing
real *content*, which browsers (and other kinds of client) are
supposed to render - or otherwise process - according to their
purpose.
I''d also like to keep my image pages strict XHTML with as little
Java as possible.




Java?谁说了一些关于Java的事情?


我想我们需要了解更多关于你使用的

swerver上有*的信息。但是,如果推动推动,为什么不使用一些

类预处理器并生成静态页面?至少那样的方式

不会有损坏你网站可缓存性的风险。


祝你好运


[1]我认为简化的演示文稿就足够了。

客户端有详细的考虑因素,但是它们不应该是主要关注的问题。作者。



Java? Who said anything about Java?

I suppose we need to know more about what *is* available on the
swerver that you use. But if push comes to shove, why not use some
kind of pre-processor and generate static pages? At least that way
there will be no risk of damaging the cacheability of your site.

good luck

[1] I think that simplified presentation will suffice for here.
There are detailed considerations on the client side, but they
shouldn''t be of primary concern to authors.


Del Ferguson写道:
Del Ferguson wrote:
Group,

此列表的新功能。我刚刚发现FireFox不像IE那样显示img
alt属性。我使用两种浏览器来验证我的
页面是否可读。因为没有阅读所有的参考文件而使我感到沮丧。
考虑到这一点,我需要一种在标题属性中动态显示文本的方法。我不喜欢每次加载新图像时想要翻阅100多页并进行更改。
Group,

New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does. I use both browsers to verify that my
pages are readable. Dumb me for not reading all of the reference document.
With this is mind, I need a way to display text in a title attribute,
dynamically. I don''t like the idea of going through 100+ pages and making
the changes every time a load new images.




我很困惑 - 你认识到工具提示应该是什么?使用TITLE属性而不是ALT属性实现的
与你需要动态确定这些工具提示应该如何<

br />
读了吗?



I''m confused--what does your realization that tooltips should be
implemented using the TITLE attribute rather than the ALT attribute have
to do with your need to determine dynamically how those tooltips should
read?


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

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