我尝试在小程序上制作一个 div,并在 MAC 上的 firefox、chrome 和 safari 中正常工作。但不是在 Windows 上
我究竟做错了什么?我搜索了“div over applet”并找到了 iframe 的解决方案,但它不起作用。
这是我的代码:
<div class="humans">
<div class="humans-box">
<!-- here is my applet -->
<applet allowtransparency="true" id="applet" code="main.AvatarClient.class" archive="AvatarClient_411.jar"
name="Chat" width="760" height="582" scriptable="true" MAYSCRIPT="true" style="background:transparent;position:absolute">
<param name="cache_option" value="NO">
<param name="wmode" value="transparent">
<param name="localization" value="locDK/"></param>
<param name='userName' value='<?=$user?>' />
<param name='password' value='<?=$pass?>' />
</applet>
</div>
</div>
<div style="width:760px;">
<!-- make the hack!-->
<iframe class="top" id="DivShim"src="javascript:false;"scrolling="no"frameborder="0"style="position:absolute;top:0px;z-index:45455;left:0px;display:none"></iframe>
<!--div to place over applet -->
<div class="top" style="z-index:45456;position:absolute">
<ul class="menu">
<li><a href="javascript:nagoom.view('onlineusers')"><?=Language::___get('ONLINE_USERS', $_SESSION['lang'])?></a>
</li>
<li><a href="#"><?=Language::___get('TOP_USERS', $_SESSION['lang'])?></a>
</li>
<li><a href="#"><?=Language::___get('SEARCH_USERS', $_SESSION['lang'])?></a>
</li>
</ul>
<div class="user-menu"> <a href="#" class="btn-restart"><span><?=Language::___get('GENSTART', $_SESSION['lang'])?></span></a> <a href="#" class="btn"><?=Language::___get('BEGYNDER_GUIDE', $_SESSION['lang'])?></a>
<a
href="#" class="f-btn"><span> </span>Connect og få 100 mønter</a>
</div>
</div>