1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
val web_wd = findViewById<WebView>(R.id.web_wd)
var web_set = web_wd.settings
web_set.javaScriptEnabled=true
web_wd.webViewClient=object:WebViewClient(){
override fun onPageFinished(view: WebView?, url: String?) { super.onPageFinished(view, url)
web_wd.loadUrl("javascript:document.querySelecto·······;" ) web_wd.loadUrl("javascript: iframe_box.contentWindow.document.querySelector('body form table tr td table tbody tr td:nth-of-type(2) select').setAttribute('style','width:80%');" + " iframe_box.contentWindow.document.querySelector('body form table tr td table tbody tr td:nth-of-type(1)').setAttribute('style','width:20%');")}
}
web_wd.loadUrl("http://xxxxxx/")
}
|