jquery UI dialog: how to initialize without a title bar?

前端 未结 23 1767
春和景丽
春和景丽 2020-11-29 15:03

Is it possible to open a jQuery UI Dialog without a title bar?

23条回答
  •  孤独总比滥情好
    2020-11-29 15:41

    This next form fixed me the problem.

    $('#btnShow').click(function() {
      $("#basicModal").dialog({
        modal: true,
        height: 300,
        width: 400,
        create: function() {
          $(".ui-dialog").find(".ui-dialog-titlebar").css({
            'background-image': 'none',
            'background-color': 'white',
            'border': 'none'
          });
        }
      });
    });
    #basicModal {
      display: none;
    }
    
    
    
    
    Here your HTML content

提交回复
热议问题