小编Mat*_*wen的帖子

Swift 3 WebView

所以我刚刚更新到新的Xcode8,Swift3但现在我的网页视图不起作用.这是我使用的代码:

UIWebView.loadRequest(webView)(NSURLRequest(URL: NSURL(string: "http://hardwirestudios.com")!))
Run Code Online (Sandbox Code Playgroud)

现在给我这两个错误:

'NSURL'不能隐式转换为'URL'; 你的意思是使用'as'来显式转换? - 'NSURLRequest'不能隐式转换为'URLRequest'; 你的意思是使用'as'来明确转换?

ios swift swift3

25
推荐指数
2
解决办法
6万
查看次数

jQuery .slideToggle()重复

因此,当我使用悬停属性来调用将某些文本向下滑动的函数时。它可以正常工作,但是当您将鼠标移到它上面多次时,它会继续重复。上下滑动,直到等于您将鼠标移到其上的次数。

JSFiddle

HTML:

<img src="img/icons/Garry's Mod.png" id="gmod-game" />
                <p id="gmod-info">Garry's Mod is a sandbox game that gives it's players access to props, entities, and other things that they can build with. They can also make their own servers where they can make their own gamemodes and add-ons, The game currently hase 45+ different gamemodes with many more server running that gamemode.</p>
Run Code Online (Sandbox Code Playgroud)

CSS:

#gmod-info {
  position: absolute;
  width: 300px;
  height: 120px;
  color: white;
  margin-left: -300px;
  margin-top: -130px;
  display: none;
}
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery

3
推荐指数
1
解决办法
394
查看次数

标签 统计

css ×1

html ×1

ios ×1

javascript ×1

jquery ×1

swift ×1

swift3 ×1