添加字体系列和重力权到Html

时间:2017-10-27 11:32:01

标签: android html

您好我有来自webservices的这个html并且我将它加载到Web视图中,它的工作正常,现在我需要将我的字体添加到此,并使其重力正确!

 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);

1 个答案:

答案 0 :(得分:0)

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