In this 开发者_StackOverflowbit of jQuery, you can click and drag in the white area to create boxes.
How can I add the boxes programatically? Thanks for reading.
Simply create a new with the correct class and css styles and append to the appropriate parent element on the page...
$('<div></div>').addClass('ui-boxer')
                .css({ border: '1px solid white', 
                       background: 'orange', 
                       padding: '0.5em', 
                       position: 'absolute', 
                       'z-index': 100,
                       left: 150, top: 150, 
                       width: 50, height: 50})
                .appendTo('body');
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论