<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
一段时间以来,我一直在做一件非常简单的事情,当我在本地查看文件时,一切看起来都很好。我使用了 Dreamweaver,Dreamweavers 预览在 Firefox、IE 和 Chrome 中的效果都一样。
我的 home0.png 应该在鼠标悬停时更改为 home1.png 并且在本地查看时会发生这种情况。
我将所有文件上传到一个临时主机,除了鼠标悬停功能外,一切正常。在鼠标悬停时显示错误图像。
我将上面的图片分成了三部分; 上面的部分是在主持时正在做的事情
中间部分是应该做什么以及在 DW 预览中和在我的电脑上本地查看时正在做什么。
第三部分是我使用的代码。
谁能找出错误?
最佳答案
如果你的文件结构是这样的:
-views
-index.html
-file2.html
....
-IMG
-HOME0.png
-HOME1.png
您必须将/添加到您的 img 路径:
/IMG/HOMEx.png
TIP: Set better the name of files and folders to lowercase.
关于html - 鼠标悬停不能实时工作,在预览中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32185975/