将字体系列和重力权限添加到 html



你好,我有这个来自网络服务的html,我把它加载到网络视图中,它工作得很好,,现在我需要将我的字体添加到这个,并使其重力正确!

 BodyNot = "<html> <head> <style> body { background-color: clear !important; } p,div,span,li { color:black; font-size:17px !important;background-color: clear !important;} embed, iframe, object, video {height: 160px; width: 355.0px;} img { height: 160px; width: 355.0px; } </style> </head> <body><p>" +
                            BodyNot +
                            "</p>" +
                            "</div></p></body> </html>";

                    serviceWebView.loadData(BodyNot, "text/html; charset=utf-8", "UTF-8");
                    serviceWebView.getSettings().setBuiltInZoomControls(true);
                    serviceWebView.getSettings().setDisplayZoomControls(false);

我有点猜测,但我认为将<p>更改为<p align="right">就可以完成这项工作。

最新更新