减少 jqDock 中展开的图像大小
我在我的网站上使用 jqDock。据我了解,图像的“扩展”尺寸应该是图像的最大尺寸,即如果它是 64x64px 图像,那么当鼠标滑过它时,它应该扩展到 64px 高。
它似乎不是这样工作的,因为无论我使用什么尺寸的图像,它总是扩展到 128x128px - 对于我来说太大了。
谁能告诉我如何获得更小的展开图像?
编辑:经过进一步测试,似乎只有 IE 才这样做。 jqDock 在 Firefox 和 Safari 中按预期工作。我需要它在 IE 中工作,所以仍然需要解决方案。
I'm using jqDock on my web site. From what I understand the 'expanded' size of the image should be the maximum size of the image i.e. if it's a 64x64px image then when the mouse rolls over it, it should expand to 64px high.
It doesn't appear to work this way because no matter what size image I use, it always expands to 128x128px - too large for my liking.
Can anyone tell me how to have a smaller expanded image?
Edit: After further testing, it seems that it is just IE that does this. jqDock works as expected in Firefox and Safari. I need it to work in IE though so solutions are still required.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,问题不是 IE 造成的,而是该页面托管在 SharePoint 中的事实。
尽管我已将图像的新版本上传到包含列表,但图像的大小仍以某种方式由 SharePoint 缓存。删除图像并上传新副本没有任何作用。重命名相同的图像,效果很好。
因此,为了解决我的问题,我只需在每个图像的名称和现在的尺寸中添加一个 1 即可。
Turns out the problem wasn't due to IE, rather the fact that the page is hosted within SharePoint.
Even though I had uploaded new versions of the images to the containing list, the SIZE of the images is somehow cached by SharePoint. Deleting the image and uploading a new copy does nothing. Renaming the same image and it works fine.
So to fix my problem, I simply added a 1 to the name of each image and the now size correctly.