javascript - 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>
该脚本运行良好,并在屏幕顶部显示相关消息。但我想减小消息栏的宽度。
我可以在我的代码中更改什么来做到这一点。任何人都可以帮忙吗?
解决方案
推荐阅读
- mongoose - 如何根据 mongoose 中嵌套 JSON 文档中数组字段的日志日期获取最新日志记录
- android - 如何从父级及其子级的 Firebase 中获取随机数据
- mysql - 如何每年重置表中的 MySQL 列?
- git - 如何删除未使用“git rebase”显示的提交?
- python - Python:Collatz 序列——找到一个长度大于起始数字的数字
- javascript - 如何在不使用 jQuery 的情况下使用本机 javascript 创建和删除元素
- c++ - X11 DestroyNotify 事件返回错误的窗口参数
- php - PHP HTML表单未将数据上传到数据库
- pine-script - 在 pine-script、TradingView 中可以使用什么函数来计算立方根?
- javascript - 在循环中使用新内容重新加载 iframe 并使用一个打印命令进行打印