图像替换 - 可以点击吗? [英] Image replacement - Can it be clickable?

查看:61
本文介绍了图像替换 - 可以点击吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照Dan Cederholm的图像替换教程,用徽标替换标题

标签。如果没有应用CSS,h1是可点击的,但我用徽标替换了它的b $ b,当我通过鼠标时,该区域不再可点击

over the logo 。有没有办法用图像替换链接

仍然可以点击?

谢谢,


-


Kerberos。

http:/ /www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org

解决方案

Kerberos< me@privacy.net>写道:

我按照Dan Cederholm的图像替换教程,用徽标替换标题
标记。


有没有理由不在那里有图像?

这样更简单,更方便。

如果没有应用CSS,则h1是可点击的但是我用徽标替换了它,当我将鼠标移到徽标上时,该区域不再可点击。有没有办法用可以点击的图像替换链接?




是的。确保< a>元素仍然存在,它填充标题的

整个区域。显示:块;照顾第二个

部分。第一部分取决于你究竟是如何隐藏真实的

标题。


史蒂夫




Steve Pugh写道:

有没有理由不在那里放一张图片?
它''更简单,更容易访问。




如果做得好,实际上使用图像替换是非常容易的。

" logic_earth" <钍**** @ gd-studio.com>写道:

Steve Pugh写道:

有没有理由不在那里放一张图片?
它更简单,更多如果做得好,可以非常方便地使用图像替换。




推广它的人声称但实际情况有点不同。


查看使用CSS并关闭图像的页面。一些变种

尝试解决这个问题,但似乎最终会引入其他问题。


Steve


I followed Dan Cederholm''s image replacement tutorial, to replace a header
tag by a logo. The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn''t clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?
Thanks,

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org

解决方案

Kerberos <me@privacy.net> wrote:

I followed Dan Cederholm''s image replacement tutorial, to replace a header
tag by a logo.
Is there a reason not to just have an image in there?
It''s simpler and more accessible.
The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn''t clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?



Yes. Make sure that the <a> element still exists and that it fills the
full area of the heading. display: block; takes care of the second
part. The first part depends on exactly how you''re hiding the real
heading.

Steve



Steve Pugh wrote:

Is there a reason not to just have an image in there?
It''s simpler and more accessible.



Actully using the image replace ment is very accessible if done right.


"logic_earth" <Th****@gd-studio.com> wrote:

Steve Pugh wrote:

Is there a reason not to just have an image in there?
It''s simpler and more accessible.



Actully using the image replace ment is very accessible if done right.



The people who promote it claim that it is but the reality is somewhat
different.

Look at a page that uses it with CSS on and Images Off. Some variants
try to solve that issue but seem to end up introducing other problems.

Steve


这篇关于图像替换 - 可以点击吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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