这几天在引用jquery-confirm时,引入后发现弹出框都和页面一样宽,后来发现少引入了demo中的bundled.css,打开后发现bundled.css就是normalize.css,这个css有兴趣可以看一下
下面是我代码中的引用
<script src="../js/jquery.js"></script>
<script src="../js/jquery-confirm.js"></script>
<link rel="stylesheet" href="../css/jquery-confirm.css">
<link rel="stylesheet" href="../css/bundled.css">

jquery-confirm下载地址:http://craftpip.github.io/jquery-confirm/
这个里面含有事例可以参考
本文介绍了在使用jquery-confirm插件时遇到的样式问题及解决方法。作者发现缺少bundled.css文件导致弹窗样式异常,补充该文件后样式恢复正常。文中提供了必要的引用代码及插件下载链接。
1万+





