내가 내 DIV의 높이가 나는 서브 클래스있는 UITableViewCell 내부에있는 UIWebView를설정 DIV 높이 상대는
될 갖고 싶어 frame.size. 그 UIWebView 안에 하나 div 기본 HTML 있습니다.
_editorHTML = [@"<html>"
"<head>"
"<style>"
".contentContainer { font-family:Arial, Helvetica, sans-serif; font-size:1em; }"
"</style>"
"</head>"
"<body>"
"<div id=\"content\" contenteditable=\"true\" style=\"height:100%;\" class=\"contentContainer\">%@</div>"
"</body>"
"</html>" retain];
[_webView loadHTMLString:[NSString stringWithFormat:_editorHTML, @""] baseURL:[NSURL fileURLWithPath:directory]];
div의 높이를 UIWebView의 높이로 유지하는 방법이 있습니까? height : 100 %를 설정하면 div 만 UIWebView의 높이의 4 분의 1이됩니다.