今日开发个MIS需要usb key硬件配合,发现个问题。项目里面chrome和firefox浏览器始终无法获得插件,但是那示例在同样的浏览器里就可以,那显然不是usb key的问题了。插件标记如下:
<embed id="s_simnew61" type="application/npsyunew6-plugin" hidden="true"> </embed><!--创建firefox,chrome等插件-->
然后用排除大法,逐条删去html里面的语句,终于发现把bootstrap-theme的css文件引用删掉就正常了。而它前面一行是对bootstrap的css的引用。看来问题就出在这里了。经查bootstrap.css里面有对标记<embed>的hidden属性设定为 {display: none;}。
解决方案:把hidden属性换成class="invisible"。
<embed id="s_simnew61" type="application/npsyunew6-plugin" class="invisible"> </embed><!--创建firefox,chrome等插件-->