jqTouch css 和 href 链接
我试图从页面调用指向页面另一部分的链接。
这是我用来执行此操作的代码:
<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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您使用的 jQTouch 版本,您需要向链接添加动画类(例如滑动/翻转/溶解),以便真正实现从一个伪页面到下一个页面的转换。
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.
不确定你想做什么。在您的示例中,图像位于链接中,而不是目标 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