我设置了一张桌子来展示今天的活动,时钟显示在up按钮附近。但是,当我单击搜索按钮时,搜索显示落后于时钟显示。让我给你看一张图片。

我的代码在下面找到...HTML文件
<div class="toolbar-left2 noselect" style="position:fixed; left: 1085px;top:5px;">-->
<table>
<tr>
<td style="color:white;"><font size="3">Events Today : </font></td>
<td id="totalattack" style="color:white;"><font size="3"> 0</font></td>
</tr>
<tr>
<td style="color:white;"><font size="3">Current Time </font></td>
<td id="todaylocaltime"style="color:white;"></td>
</tr>
</table>
</div> 那么如何将时钟和今天的事件放在搜索显示的后面呢?请帮帮我。我应该修改cesium.js代码吗?或者执行z-index来完成此操作。我应该修改地理编码器吗?如果是这样,怎么做??谢谢
发布于 2017-09-13 10:45:04
您可以使用样式position: fixed(表的包装器)和搜索包装器dom来设置dom的z索引,然后z索引具有较小值的dom将位于较大值的后面。
https://stackoverflow.com/questions/46187719
复制相似问题