开发者

jqTouch css and a href link

开发者 https://www.devze.com 2023-01-08 07:09 出处:网络
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:

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:

<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

I'm not sure what could be wrong.

Thanks. C.


Depending on which revision of jQTouch that you are using, you will need to add an animation class to your link like slide/flip/disolve in order to actually cause a transition from one psuedo page to the next.

<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. 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消