質問編集履歴

1

間違い

2019/07/26 06:29

投稿

okama
okama

スコア22

test CHANGED
File without changes
test CHANGED
@@ -14,13 +14,11 @@
14
14
 
15
15
  if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {
16
16
 
17
- document.write('<link rel="stylesheet" type="text/css" href="./css/sp.css">');
17
+ location.href = 'spのURL';
18
18
 
19
19
  }else {
20
20
 
21
- document.write('<link rel="stylesheet" type="text/css" href="./css/pc.css">');
21
+ location.href = 'pcのURL';
22
-
23
- }
24
22
 
25
23
 
26
24