【问题标题】:How to Align the text of my webview from html javascript iphone sdk?如何从 html javascript iphone sdk 对齐我的 webview 的文本?
【发布时间】:2012-01-30 23:11:08
【问题描述】:

谁能帮帮我。。

[NSString stringWithFormat:@"document.getElementsByTagName('body')[0].style.textAlign = 'right';"]; 

【问题讨论】:

  • 欢迎来到 StackOverflow。这个问题很模糊。请阅读tinyurl.com/so-hints 并编辑您的问题以便更容易回答。
  • 你能补充一些关于你的问题的更多细节吗?

标签: javascript iphone html text alignment


【解决方案1】:

要在 uiwebview 中对齐中心,你可以使用这个:

style="margin-left:auto;margin-right:auto;width:70%;"

【讨论】:

    猜你喜欢
    • 2014-10-31
    • 1970-01-01
    • 2013-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-15
    • 1970-01-01
    相关资源
    最近更新 更多