For the reason of old API, I change webview to WKWebview in my app, but textsize is smaller in WKWebview than webview.
I search the forums and find:https://stackoverflow.com/questions...tent-to-render-at-same-magnification-as-uiweb.
In my app,I use HtmlCSS in DBUtils:
how to add <meta name="viewport" content="initial-scale=1.0" /> to HtmlCSS above code. I can't do it successfully
I search the forums and find:https://stackoverflow.com/questions...tent-to-render-at-same-magnification-as-uiweb.
In my app,I use HtmlCSS in DBUtils:
B4X:
HtmlCSS = "table {meta name:viewport; content-initial-scale:1.0;width: 100%;border: 1px solid #cef;text-align: left;word-wrap: break-word;word-break: break-all; }" _
& " th {font-weight: bold;font-size:1.1em; background-color: #acf; border-bottom: 1px solid #cef;text-align: center;}" _
& "th:first-child a{text-decoration:none;text-align: top;}" _
& "td:first-child {width:" & Text_Format(0) & ";}" _
& "td{font-size:" & Text_Format(1) & ";}" _
& "td,th {padding: 1px 1px; }" _
& ".odd {background-color: #def; } .odd td {border-bottom: 1px solid #cef; }" _
& "td:first-child a{text-decoration:none;}" _
& "td:first-child {text-align: Left;}" _
& "td:first-child {vertical-align:top;}"
how to add <meta name="viewport" content="initial-scale=1.0" /> to HtmlCSS above code. I can't do it successfully