在ABBR或ACRONYM备用文本上调整样式 [英] Adjust style on ABBR or ACRONYM alternate text

查看:85
本文介绍了在ABBR或ACRONYM备用文本上调整样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ACRONYM标记在我的

应用程序中提供代码说明。示例:


< p>电路< acronym title ="电路P123T:Picton SS到Telebary

SS 345KV"> P123T< /缩写>今天13:00到15:00之前已经退出

服务< / p> ;.


我更喜欢花哨的气球提示,但这让我感到高兴直接在数据库表中存储和检索

文本,并避免添加任何

附加设置文本来创建任何不可见的气球文本。 (除非有另外一种方式

)。


我想改变出现的替代文字的样式,例如

增加其字体大小和背景颜色。有没有办法用

CSS或用JavaScript?


谢谢,

Jarson(来自sygration的jarson,那个''如果你想发布一个dot com公司,请给我发电子邮件。

I am using the ACRONYM tag to provide an explanation of codes within my
application. Example:

<p>The circuit <acronym title="Circuit P123T: Picton SS to Telebary
SS 345KV">P123T</acronym> is out
of service from 13:00 to 15:00 today</p>.

I would prefer a fancy balloon tip, but this allows me to store and retrieve
the text directly in a database table, and avoid having to add any
additional setup text to create any invisible balloon text. (Unless there is
another way).

I would like to change the style of the alternate text that appears, such as
increasing its font size and background color. Is there a way to do this as
CSS or in JavaScript ?

Thanks,
Jarson (jarson from sygration, that''s a dot com company if you would like to
email me)

推荐答案

Jarson写道:
我正在使用ACRONYM标记来解释我的
应用程序中的代码。示例:

< p>电路< acronym title =" Circuit P123T:Picton SS to Telebary
SS 345KV"> P123T< / acronym>今天13:00到15:00之间的服务时间< / p>。

我更喜欢花哨的气球提示,但这可以让我存储和检索
直接在数据库表中的文本,并避免添加任何其他设置文本来创建任何不可见的气球文本。 (除非有另一种方式)。

我想改变出现的替换文字的样式,例如增加字体大小和背景颜色。有没有办法用CSS或用JavaScript?
I am using the ACRONYM tag to provide an explanation of codes within my
application. Example:

<p>The circuit <acronym title="Circuit P123T: Picton SS to Telebary
SS 345KV">P123T</acronym> is out
of service from 13:00 to 15:00 today</p>.

I would prefer a fancy balloon tip, but this allows me to store and retrieve
the text directly in a database table, and avoid having to add any
additional setup text to create any invisible balloon text. (Unless there is
another way).

I would like to change the style of the alternate text that appears, such as
increasing its font size and background color. Is there a way to do this as
CSS or in JavaScript ?




我很确定在下面链接的工具提示中有

当页面加载并处理标题或alt时附加的一个

您选择将其附加到的任何元素的文本。


没有JavaScript的用户会看到他们的浏览器默认为工具提示,那些带有JavaScript的
会看到增强的样式版本。


< URL: http://www.walterzorn.com/tooltip/tooltip_e.htm>

如果找不到你想要的东西,可以再次发布。

-

Rob



I''m pretty sure that amongst the tooltips at the link below there is
one that is attached when the page loads and works on the title or alt
text of whatever elements you choose to attach it to.

Users without JavaScript see their browsers default ''tooltip'', those
with JavaScript see the enhanced, styled version.

<URL:http://www.walterzorn.com/tooltip/tooltip_e.htm>
Post again if you can''t find what you want.
--
Rob


Jarson写道:
< acronym title =" Circuit P123T:Picton SS to Telebary SS
345KV"> P123T< / acronym>
<acronym title="Circuit P123T: Picton SS to Telebary SS
345KV">P123T</acronym>




以什么方式作为首字母缩略词?使用< dfn>或者语义无意义的

元素,例如< span>相反。


(后续修剪。)



In what way is that an acronym? Use <dfn> or a semantically meaningless
element like <span> instead.

(Followups trimmed.)


这是一个语义论证,争论哪个标签最适合这个目的。是的,

不是首字母缩略词,但它也不是定义或缩写。

但是,如果提供更好的话,我肯定会换到另一个标签。 />
解决方案。他们似乎没有提供一种方法来修改他们的

title属性的样式。


Jarson


Leif K-Brooks < EU ***** @ ecritters.biz>在消息中写道

新闻:嗯******************* @ monger.newsread.com ...
It is a semantic argument debating which tag best fits this purpose. True,
is not an Acronym but it also isn''t a definition or an abbreviation.
However, I would surely switch to another tag if it provided a better
solution. None of them seem to provide a way to modify the style of their
title attribute.

Jarson

"Leif K-Brooks" <eu*****@ecritters.biz> wrote in message
news:Eh*******************@monger.newsread.com...
Jarson写道:
< acronym title =" Circuit P123T:Picton SS to Telebary SS
345KV"> P123T< / acronym>
<acronym title="Circuit P123T: Picton SS to Telebary SS
345KV">P123T</acronym>


这是一个首字母缩写词?使用< dfn>或者像< span>这样的语义无意义的元素相反。

(后续修剪。)



In what way is that an acronym? Use <dfn> or a semantically meaningless
element like <span> instead.

(Followups trimmed.)



这篇关于在ABBR或ACRONYM备用文本上调整样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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