- 獲取 <div>內(nèi)容
NSString *tempString = [NSString stringWithFormat:@"document.getElementsByClassName('header-middle')[0].innerHTML"];
- 獲取 webview header高度
document.getElementsByClassName('selected')[0].clientHeight - webview 給header高度賦值
document.getElementsByClassName('selected')[0].style.height = 50 +'px';