javascript
  • jquery-plugins
  • noty
  • 2014-03-07 2 views 2 likes 
    2

    알림 알림의 높이와 너비를 설정하는 방법이 있습니까? 현재 내 코드는 다음과 같습니다.알림 알림의 높이와 너비를 설정하는 방법

    $(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 
         }); 
    
    +0

    당신이 .noty_message의 폭과 높이를 설정하는 CSS를 사용하여 시도 적이 있습니까? – krowe

    답변

    2

    CSS로 할 수 있습니다. 원하는 너비와 높이에 관계없이 CSS에서 설정하면 작동합니다.

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

    나를 위해 작동하지 않았다, 나는이 상단과 하단에 넣어, 왜 작동하지 않는, notypackaged.js를 사용하고, 내가 사용! 또한 CSS와 함께 중요 –

    +0

    @ EdathadanChiefakaArun 내 대답을 참조하십시오. – synaptik

    0

    이것은 100 픽셀이어야 강제해야한다 :

    #noty_topRight_layout_container, 
    #noty_topRight_layout_container > li, 
    #noty_bar, #noty_type_alert   { 
        width: 100px !important; 
    } 
    
    +0

    나는 그것을 시험 할 것이다. –

    관련 문제