1

代码如下所示:

<style type=\"text/css\">
html{background: #000; margin: 0; padding: 0}
body {padding: 30px; background: #000;width: 85;margin:0 auto;color: #000;font-family: Arial, sans-serif;line-height: 1.3em;}
</style>

如果我想替换例如 html.background 怎么办?

通常的 NSString 替换是不合适的,因为可能有很多类似的属性。

4

1 回答 1

0

您应该考虑为此使用 jQuery 框架。

有关 jQuery 的 CSS 的更多信息,请访问:http: //api.jquery.com/css/

于 2013-04-09T09:34:25.490 回答