首页 > 解决方案 > JQuery Noty 消息栏宽度

问题描述

我的 Codeigniter 项目中有以下脚本来提醒消息。

<script type="text/javascript">
$(document).ready(function() {
noty({
                layout: 'top',
                type: 'warning',                
                text: '<?php echo $increments; ?>',
                dismissQueue: true,                 
                animation: {
                    open: {height: 'toggle'},
                    close: {height: 'toggle'},
                    easing: 'swing',
                    speed: 500 
                    },

                timeout: 0
                });
     });

</script>

该脚本运行良好,并在屏幕顶​​部显示相关消息。但我想减小消息栏的宽度。

我可以在我的代码中更改什么来做到这一点。任何人都可以帮忙吗?

标签: javascriptcodeigniter

解决方案


推荐阅读