I am trying to reproduce html and js code in webview. the code contains a% sign, and web browsing returns an error ERROR_BAD_URL.
<style type='text/css'> test{ width: 100%; height: 100%; } </style>
any idea?
-Z
use webview.loadDataWithBaseUrlif .loadDatacausing problems.
webview.loadDataWithBaseUrl
.loadData
I came across this myself this weekend. Use "% 25" to make the% character. Your new code should look like ...
<style type='text/css'> test{ width: 100%25; height: 100%25; } </style>
try it
mWebView.loadDataWithBaseURL(null, html,"text/html", "UTF-8", null);
Source: https://habr.com/ru/post/1794260/More articles:QApplication: no such file or directory - qt'base' as the name of a function parameter in C # - c #asp.net html.listboxfor - asp.netHow does JAXB map a class name to an XML element name? - javaWPF Validation Credentials - Only show if the control held focus until - .netMVC ModelBind ListBox with many options - model-view-controllerThe image size in the browser is X number of pixels. CSS only! - cssSQL Query to find all possible paths - sqlbest way to have separate stylesheets for different actions in Rails - ruby-on-railsIs there a way for aliases in WPF? - wpfAll Articles