html - 在 iOS 中使 UIWebview 的字体加粗
<p><p>如何将字体设置为粗体</p>
<pre><code> baseURL:nil];
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>Rafay 回答你的问题</p>
<pre><code>- (void)webViewDidFinishLoad:(UIWebView *)webView
{
//Font size
int fontSize = 80;
NSString *jsString = [ initWithFormat:@"document.getElementsByTagName('body').style.webkitTextSizeAdjust= '%d%%'", fontSize];
;
//Font Family Style - Bold
NSString *jsWebViewFontFamilyString = [ initWithFormat:@"document.getElementsByTagName('body').style.fontFamily = 'HelveticaNeue-Bold'"];
;
//Font Color or web view text color
.style.color = 'Green'"];
}
</code></pre></p>
<p style="font-size: 20px;">关于html - 在 iOS 中使 UIWebview 的字体加粗,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/33417158/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/33417158/
</a>
</p>
页:
[1]