html - webView hiding content in swift -


i've created html template i've said 100% width, still seem hide content @ right side of screen. template suppose embedded ios application using webview. below can see how looks:

enter image description here

<!doctype html> <html lang="en"> <head>     <meta charset="utf-8" />     <style type="text/css">         body{             font-family: 'pt sans';             margin-left:0;             margin-right:0;             margin-top: 0;             width   100%;         }         .title_div{             padding-left:5px;             padding-right:5px;             font-size:16px;             width: 100%;             word-wrap: break-word;          }      .title_div p {          display: block;     }     h3{         font-size: 26px;         padding-left:5px;         word-wrap: break-word;           margin-top: 5px;     }     .main_image {         width: 100%;         height: 200px;         background-size: cover;     }     .main_image img{         width: auto;         height: auto;      }     </style> </head> <body>     <div class="main_image" style="background-image:url([[[main_image]]])" title="[[[alt_desc]]]"></div>    <h3>[[[title]]]</h3>    <div class="title_div">         <p>[[[full_text]]]</p>    </div> </body> </html> 

try set webviews scalespagetofit property yes!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -