ios - removing padding/gap from displaying ppt on UIWebView -
in example, between slides of ppt file, there gray padding/gap don't want. want upcoming slide reside directly below current slide without in between. prefer solution swift.
in webviewdidfinishload()
do this
webview.stringbyevaluatingjavascriptfromstring("var slides = document.getelementsbyclassname('slide');var count = slides.length;for (var = 1; < count; i++) {var oldtop = slides[i].style.top;var newtop = parseint(oldtop) - 5 * + 'px';slides[i].style.top = newtop;}")
Comments
Post a Comment