【问题标题】:Add Font Family And Gravity Right To Html将字体系列和重力权添加到 Html
【发布时间】:2017-10-27 19:37:15
【问题描述】:

你好,我有这个来自 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);

【问题讨论】:

    标签: android html


    【解决方案1】:

    我有点猜测,但我认为将 &lt;p&gt; 更改为 &lt;p align="right"&gt; 就可以了。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-11-14
    • 2020-02-18
    • 1970-01-01
    • 2011-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多