English 中文(简体)
简单的超文本封顶问题
原标题:Simplest HTML anchor issue
  • 时间:2011-02-23 14:55:50
  •  标签:
  • html
  • hash

我实际上被推上了超文本。

因此,我有一个由贾瓦文赋予的权力子。

<a href="#" class="subpage"><span>SubPage</span></a>

我已删除了我的联合材料,但情况仍然如此,我显然误解了。

当我装上一页的光慢时,我有时间打下小 men子。 如果在装满该页时,我不把散页放在满页上,而不要改变这个页子,而是用我/dir/#来重整该页。

任何想法为什么?

问题回答

或许该页仍在你的浏览器中。 看看来文方确保联合材料不存在,或Ctrl+F5报。

Most JS coding is made after page has concludingloading to ensure the elements are there.

你所描述的问题的共同解决办法是隐蔽的(CSS风格),或者在《联合材料法典》中显示或促成这种联系。

Basic example:

<a href="#" class="subpage" disabled="disabled">

之后,在《联合材料法典》中添加了这样的内容:

oLink.disabled = false;

Edit: Stupid me! Just change the href to:

href="javascript:void(0);"

在联合调查组之前,用这种方式点击它。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签