ios - removing padding/gap from displaying ppt on UIWebView -


example

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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -