Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
UIWebView。使用javascript替换css属性_Javascript_Css_Uiwebview_Replace - Fatal编程技术网

UIWebView。使用javascript替换css属性

UIWebView。使用javascript替换css属性,javascript,css,uiwebview,replace,Javascript,Css,Uiwebview,Replace,代码如下所示: <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:#000;

代码如下所示:

<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:#000;边距:0;填充:0}
正文{填充:30px;背景:#000;宽度:85;边距:0自动;颜色:#000;字体系列:Arial,无衬线;线条高度:1.3em;}
如果我想替换例如html.background,该怎么办


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

您应该考虑使用jQuery框架来实现这一点

有关CSS for jQuery的更多信息,请访问: