dispatch_async(dispatch_get_main_queue(), ^{ swself.htmlView.layout = htmlLayout; [LWActiveIncator hideInViwe:swself]; NSLog(@"%f======%f",self.htmlView.contentSize.height,self.htmlView.contentSize.width); }); 在这里获取contentsize与实际的contentsize不同