質問編集履歴

1

失礼いたしました。試したコードを記載いたします!

2022/09/07 02:39

投稿

oribooo
oribooo

スコア0

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,16 @@
7
7
  詳しい方がいらっしゃいましたら、教えていただけますと幸いです。
8
8
 
9
9
  よろしくお願いいたします。
10
+
11
+ ```javascript
12
+
13
+ if ((navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0 || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) && ! navigator.userAgent.indexOf('プラットフォーム名') === 0) {
14
+ document.getElementById("id").style.display = "block";
15
+ }
16
+
17
+ ```
18
+ ```css
19
+ #id{
20
+ display: none;
21
+ }
22
+ ```