将链接伪装成按钮 [英] disguising links as buttons

查看:70
本文介绍了将链接伪装成按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


对于我目前正在工作的项目,我必须使用表格按钮

和普通链接(一个href ... )在同一页面中。两者都应该看起来是一样的。没有IE和Opera的问题,但是我无法得到这个

与Mozilla合作。


如果有人想给我一个提示,他可以找到一个例如:

http://www.wiesodenn .de / problem / problem.html

dummy1和dummydummy2是表单按钮,dummy3是href-link。


按钮和链接的文本是用php生成的,而

是我不想使用带有grafic文本的图像作为

按钮的原因。

有没有人知道如何在主浏览器上使用它?


所有三个按钮应该具有相同的大小和小边框一半

方式...


(顺便说一句,我不能在Mac上查看这个,我有人会这么说

不错...,谢谢)


提前感谢您的回答..


Klaus

解决方案

Klaus Schulz写道:


http://www.wiesodenn.de/problem/problem.html

dummy1和dummydummy2是表单按钮,dummy3是href-link 。

所有三个按钮应该具有相同的尺寸和小边框半边
方式...




它们都看起来我的Mozilla 1.3几乎一样,只是

第一个按钮比其他按钮小一点。

Matthias


Klaus Schulz写道:

对于我目前正在工作的项目,我必须使用表格按钮
和普通链接(一个href) ...)在同一页面中。两者都应该看起来一样。 IE和Opera没有问题,但是我无法使用Mozilla工作。




你能否重构页面,使dummy1和dummy2不在

表格?如果是这样,你可以创建只包含

提交按钮的小表格:


< form action =" dummy1" method =" GET">< input type =" submit"

value =" dummy1">< / form>

所有支持表单的浏览器。缺点是

搜索引擎等将无法跟踪链接,并且链接将无法在非可视浏览器中正确呈现为链接。


-

Chris Lambert( http://web.trout-fish.org.uk/

独身不是世袭的。


< blockquote> On Fri,2003年9月26日14:21:29 +0200,

Klaus Schulz< kl **** @ yahoo.de>写道:

对于我目前正在工作的项目,我必须在同一页面中使用表单按钮
和普通链接(a href ...)。两者都应该看起来一样。




故意欺骗不符合用户的利益。


-

我的来自地址完全是假的。回复地址是真实的,但

可能只是暂时的。回复usenet发布在同一个地方

你读到你要回复的消息。


Hello,

for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same. No problem with IE and Opera but I cannot get this to
work with Mozilla.

If anyone would like to give me an hint, he can find an example here:

http://www.wiesodenn.de/problem/problem.html

dummy1 and dummydummy2 are form-buttons, dummy3 is the href-link.

The text for the buttons and the links is generated with php and that
is the reason why Ido not want to use images with grafic text as
buttons.

Does anyone know how to make this work with the main browsers?

All three buttons should have the same size and that small border half
way round...

(by the way, I cannot check this on a Mac, I f anyone would be so
nice..., thank you)

Thank you in advance for any answer..

Klaus

解决方案

Klaus Schulz wrote:


http://www.wiesodenn.de/problem/problem.html

dummy1 and dummydummy2 are form-buttons, dummy3 is the href-link.

All three buttons should have the same size and that small border half
way round...



They all look pretty much the same in my Mozilla 1.3, except that the
first button is a bit smaller than the others.
Matthias


Klaus Schulz wrote:

for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same. No problem with IE and Opera but I cannot get this to
work with Mozilla.



Could you restructure the page such that dummy1 and dummy2 were not within
the form? If so you could then create little forms that just contained the
submit button:

<form action="dummy1" method="GET"><input type="submit"
value="dummy1"></form>
That will work in all browsers that support forms. The downside is that
search engines, etc will not be able to follow the links and the links will
not be rendered correctly as links in a non-visual browser.

--
Chris Lambert (http://web.trout-fish.org.uk/)
Celibacy is not hereditary.


On Fri, 26 Sep 2003 14:21:29 +0200,
Klaus Schulz <kl****@yahoo.de> wrote:

for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same.



Being deliberately deceptive is not in the interests of the user.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you''re replying to.


这篇关于将链接伪装成按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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