gpt4 book ai didi

javascript - 我将如何设置通知通知的高度和宽度

转载 作者:行者123 更新时间:2023-11-29 22:03:31 25 4
gpt4 key购买 nike

有没有办法设置通知通知的高度和宽度。这是我目前的代码:

$(document).ready(function () { 
noty({
layout: 'topRight',
type: 'alert',
text: "<a href='C:\\Users\\dah\\Documents\\AlertJqueryNP\\alertjquery.html' target='_blank'>Alerts:"+count+"</a>",
template: '<div class="noty_message"><span class="noty_text"></span></div>',
closeWith: ['button'],
dismissQueue: true,
timeout: false
});

最佳答案

您可以使用 CSS 来完成。无论你想要什么宽度和高度,只要在 CSS 中设置它就可以了。

.noty-message{
width:100px;
height:100px;
}

关于javascript - 我将如何设置通知通知的高度和宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22245887/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com