Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带css滚动的HTML映射?_Css - Fatal编程技术网

带css滚动的HTML映射?

带css滚动的HTML映射?,css,Css,我必须创建一个用于CD的html页面。导航是一个设置了坐标的HTML地图。当用户翻滚坐标时,我希望在坐标旁边出现一个图像弹出窗口。有8个地图链接和8个相应的图像弹出窗口 我可以通过jQuery轻松做到这一点,但CD主要用于IE。IE不允许javascript在本地运行(没有用户交互,这是不可接受的) 通过jQuery,我绝对定位了滚动图像,但我无法通过CSS将它们设置为可见的。实现这一点的最佳方法是什么?您可以尝试一些基于伪类:hover的严重样式效果 在不知道您的标记的情况下,我将按照以下方式

我必须创建一个用于CD的html页面。导航是一个设置了坐标的HTML地图。当用户翻滚坐标时,我希望在坐标旁边出现一个图像弹出窗口。有8个地图链接和8个相应的图像弹出窗口

我可以通过jQuery轻松做到这一点,但CD主要用于IE。IE不允许javascript在本地运行(没有用户交互,这是不可接受的)


通过jQuery,我绝对定位了滚动图像,但我无法通过CSS将它们设置为可见的。实现这一点的最佳方法是什么?

您可以尝试一些基于伪类:hover的严重样式效果

在不知道您的标记的情况下,我将按照以下方式处理

HTML标记 希望这能帮到你,我已经在网上制作了一张类似的地图(没有CD),但我想不用JS,这是最简单的方法

注意:如果您需要提供IE6支持,最好将悬停改为基于ahref。
例如:映射文本附加弹出文本

<div id="mapWrapper">
<ul id="map">
 <li id="location-01"><span>Map Text</span> <div class="item">Additional Pop Up Text</div></li>
 <li id="location-02"><span>Map Text</span> <div class="item">Additional Pop Up Text</div></li>
 <li id="location-03"><span>Map Text</span> <div class="item">Additional Pop Up Text</div></li>
 ....
</ul>
</div>
#mapWrapper {position:relative;} /* include width, height and any bg imagery */
ul#map, #map li {margin:0;padding:0;list-style-type:none} /* just to reset the list to be standard in different browsers */
#location-01 {position:absolute;} /* include with, height and position top-left items as required */
#location-02 {position:absolute;} /* include with, height and position top-left items as required */
etc...
#map li .item {display:none; } /* hide the pop up text, include defaults for position based on the location of the li */
#map li:hover .item {display:block;} /* show the pop up text on hover of the LI*/

/* Note: If you need to position each pop item uniquely you could use something like... If you do, remember to move the :hover effect to be the last item in your style sheet */
#map li#location-01 .item {display:none; }