简体   繁体   English

jqTouch CSS和href链接

[英]jqTouch css and a href link

I am trying to call a link from a page which points to another part of the page. 我正在尝试从页面指向指向页面另一部分的链接。

This is the code I am using to do this: 这是我用来执行此操作的代码:

<a href="#product"><img src="Dress1.jpg" alt="Pic1"></img></a>

The problem is that when I remove the css stylesheet links from the page, in other words: 问题是,当我从页面中删除css样式表链接时,换句话说:

<link type="text/css" rel="stylesheet" media="screen" href="jqtouch/jqtouch.css">
<link type="text/css" rel="stylesheet" media="screen" href="themes/jqt/theme.css">

It actually works but with the above links, it doesn't work. 它实际上有效,但是使用上面的链接,它不起作用。 Instead all it does is change the address (by adding #product) and doesn't display the image requested in 相反,它所做的只是更改地址(通过添加#product),并且不显示请求中的图片

I'm not sure what could be wrong. 我不知道有什么问题。

Thanks. 谢谢。 C. C。

根据所使用的jQTouch的修订版,您需要向链接(如slide / flip / disolve)中添加一个动画类,以实际引起从一个伪页面到下一个伪页面的过渡。

<a href="#product" class="slide"><img src="Dress1.jpg" alt="Pic1"/></a>

not sure what you are trying to do. 不确定您要做什么。 in your example, the image is in the link, not the target div. 在您的示例中,图片位于链接中,而不是目标div中。 from your description it sounds like you might want something like 从您的描述中听起来您可能想要以下内容

<a href="#product">See my image</a>

<div id="product"><img src="Dress1.jpg" alt="Pic1"/></div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM