jQuery 添加元素

                // make the container smaller and add a second container for the master chart
                var $container = $('#container')
            .css('position', 'relative');

                var $detailContainer = $('<div id="detail-container">')
            .appendTo($container);

                var $masterContainer = $('<div id="master-container">')
            .css({ position: 'absolute', top: 300, height: 80, width: '100%' })
            .appendTo($container);

你可能感兴趣的:(jQuery 添加元素)