質問編集履歴

1

内容をより詳細にしました。

2020/05/03 15:49

投稿

jake0814
jake0814

スコア0

test CHANGED
File without changes
test CHANGED
@@ -10,22 +10,32 @@
10
10
 
11
11
  -----------------------------------------------------------------------------
12
12
 
13
+ <iframe id="test" src="URL"></iframe>
14
+
13
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
15
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
14
16
 
15
17
  <script>
16
18
 
17
19
  $(function(){
18
20
 
19
- $('#test').on('load', function(){
21
+ $('#test').on('load', function(){
20
22
 
21
- $('#test').contents().find('p').css('font-size','150%');
23
+ $('#test').contents().find('head').css('display','none');
22
24
 
23
- });
25
+ });
24
26
 
25
27
  });
26
28
 
27
29
  </script>
28
30
 
31
+ ----------------------------------------------------------------------------
32
+
33
+ 以上のようにしているのですが、iframeないのヘッダーは抜けない状態です。。
34
+
35
+ headの指定がよくないのでしょうか?初心者で申し訳ありません。。
29
36
 
30
37
 
38
+
31
- -------------------------------------------------------------------------------
39
+ 可能であればご教授いただきたいです。
40
+
41
+ よろしくお願いいたします!