【问题标题】:Appcelerator Webview doesnt show my site on AndroidAppcelerator Webview 不在 Android 上显示我的网站
【发布时间】:2020-12-09 02:11:16
【问题描述】:

我有一个只显示网站的项目。我的代码是:

function pencere() {
    var self = Ti.UI.createView({ width:"100%", height:"100%" });
    
    var webPencere = Ti.UI.createWebView({ left:1, right:1,  top:1, bottom:1, url:"http://www.radyobasaksehir.com" });

    self.add(webPencere);

    return self;
}

我的朋友告诉我,Android 浏览器不支持新的 CSS 和 HTML 代码。我不知道这些的确切含义,但我认为我需要修改我的代码,但我无法弄清楚。

【问题讨论】:

    标签: android css webview appcelerator appcelerator-mobile


    【解决方案1】:

    问题与使用 Android 4.4 的 chromium WebView 有关。

    开发了一个模块来解决这个问题。但是,我找到了建议here in another topic

    只需添加具有最小值的 borderRadius 属性。示例代码:

    var webview = Ti.UI.createWebView({url: '..', borderRadius: 1});
    

    【讨论】:

      猜你喜欢
      • 2016-12-19
      • 2021-10-21
      • 1970-01-01
      • 1970-01-01
      • 2019-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多