可以制作一个“虚拟”的锚标签**没有**跳回来??? [英] aPossible to Make A "Dummy" Anchor Tag **without** Jumping Back Up???

查看:57
本文介绍了可以制作一个“虚拟”的锚标签**没有**跳回来???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们,


是否有可能有一个空的或假 < a href ***没有***

浏览器跳回页面?


我有一个超链接并不重要到另一个文件,但是使用

来调用一个模态窗口onClick(或者有另一种方式,没有

文本或图像链接,在用户活动上调用JavaScript ??)。

我想给我的访客带来不便和视觉上的影响

刺激回到页面顶部的效果! =(

Hi, People,

Is it possible to have an "empty" or "dummy" <a href***without***
the browser jumping back up the page??

I have a hyperlink that doesn''t point to another document, but is used
to call forth a modal window onClick (or is there another way, without
text or image links, of calling forth JavaScript on user activity??).
I would like to spare my visitors the inconvenience and visually
jarring effect of getting thrown back up to the top of the page! =(

推荐答案



啊,好吧,使用javascript :;诀窍就是诀窍!浏览器

不再让观众重新回到页面顶部。


不幸的是,那个模态窗口没有垂直居中,所以*它*是

仍位于页面顶部!


如何将元素*垂直居中*,请?


实际上它只是一个盒子,而且我知道用CSSauto将它水平放置在
水平 - 但垂直怎么样??

Ah, well, using "javascript:;" for a value did the trick! The browser
no longer throws the viewer back up to the top of the page.

Unfortunately, that modal window doesn''t center vertically, so *it* is
still up at the top of the page!

How can I center an element *vertically*, please?

It''s just a box, actually, and I know that with CSS "auto" centers it
horizontally -- but what about vertically??


在05/01/08 04:16 pm,Prisoner at War写道:
On 05/01/08 04:16 pm, Prisoner at War wrote:

> ;

是否有可能有一个空或虚拟< a href ***没有***

浏览器跳回页面??


我有一个超链接,不指向另一个文件,但用于

来呼叫我odal窗口onClick(或者有另一种方式,没有

文本或图像链接,在用户活动上调用JavaScript?)。
>
Is it possible to have an "empty" or "dummy" <a href***without***
the browser jumping back up the page??

I have a hyperlink that doesn''t point to another document, but is used
to call forth a modal window onClick (or is there another way, without
text or image links, of calling forth JavaScript on user activity??).



您可以将onClick属性与任何元素一起使用。它不需要作为锚点。


-

jmm(连字符)列表(at)sohnen-moe (点)com

(删除电子邮件的.AXSPAMGN)

You can use the onClick attribute with just about any element. It soes
not have to be an anchor.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


文章

< 19 *** ******** @ m45g2000hsb。 googlegroups.com>,

战争中的囚徒< pr ************* @ yahoo.comwrote:
In article
<19**********************************@m45g2000hsb. googlegroups.com>,
Prisoner at War <pr*************@yahoo.comwrote:

啊,好吧,使用javascript :;一个价值的伎俩!浏览器

不再将查看器重新抛到页面顶部。


不幸的是,那个模态窗口没有垂直居中,所以*它*是

仍然在页面顶部!


如何垂直居中* *,请?


实际上它只是一个盒子,我知道用CSSauto以水平为中心

- 但垂直呢?
Ah, well, using "javascript:;" for a value did the trick! The browser
no longer throws the viewer back up to the top of the page.

Unfortunately, that modal window doesn''t center vertically, so *it* is
still up at the top of the page!

How can I center an element *vertically*, please?

It''s just a box, actually, and I know that with CSS "auto" centers it
horizontally -- but what about vertically??



看着


< http://www.jakpsatweb.cz/css/css-vertical-center- solution.html>





-

dorayme

Looked at

<http://www.jakpsatweb.cz/css/css-vertical-center-solution.html>

?

--
dorayme


这篇关于可以制作一个“虚拟”的锚标签**没有**跳回来???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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