选中样式
what the ..... 这不是我们要的效果~
最近公司要命的催进度,大家决定后面采用web,其实我内心是不愿意的,志愿于美方共建Native美好家园
这些让人看起来渣到爆的网页效果.. 一定要搞掉 对于苹果爸爸的新WKWebview来说UiWebview的解决方案并不完全受用, 在WKWebview头文件翻来翻去 没有找到 可以关闭。不过我在配置信息 WKWebViewConfiguration 的头文件里找到了这个我们可以添加些自己的脚本
/*! @abstract Adds a user script.
@param userScript The user script to add.
*/
- (void)addUserScript:(WKUserScript *)userScript;
我们可以添加些脚本到这个用户配置中,这启发了我
- (WKWebView *)webView{
if (!_webView) {
//创建WKWebview配置对象
WKWebViewConfiguration*config = [[WKWebViewConfiguration alloc] init];
config.preferences = [[WKPreferences alloc] init];
config.preferences.minimumFontSize =10;
config.preferences.javaScriptEnabled =YES;
config