jqTouch css 和 href 链接

发布于 2024-09-11 01:59:48 字数 514 浏览 4 评论 0原文

我试图从页面调用指向页面另一部分的链接。

这是我用来执行此操作的代码:

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

问题是,当我从页面中删除 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">

它实际上可以工作,但对于上面的链接,它不起作用。 相反,它所做的只是更改地址(通过添加#product),并且不显示

我不确定可能出了什么问题中请求的图像。

谢谢。 C.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不醒的梦 2024-09-18 01:59:48

根据您使用的 jQTouch 版本,您需要向链接添加动画类(例如滑动/翻转/溶解),以便真正实现从一个伪页面到下一个页面的转换。

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

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>
没有你我更好 2024-09-18 01:59:48

不确定你想做什么。在您的示例中,图像位于链接中,而不是目标 div 中。从你的描述看来你可能想要类似的东西

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

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

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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文