iframe區域性重新整理的兩種實現方法

2021-07-24 20:23:19 字數 921 閱讀 2848

一、iframe實現區域性重新整理方法一

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

1

2

當點a1時在iframe裡顯示a1.html的內容,點a2時在iframe裡顯示a2.html的內容

二、iframe實現區域性重新整理的方法二

1

2

3

<ahref="a1.html" id="a1" name="a1.html" target="i">1

<ahref="a2.html" id="a2" name="a2.html" target="i">2

<iframesrc="" id="iframe" name="i">

備註: 同樣也有target屬性,作用和一樣 這個方式如果或提交到某個action中再跳轉到a1.html中效果一樣,如果在action中有req.set或session.set,最後在iframe中同樣可以顯示出來。

iframe區域性重新整理的二種實現方法

一 iframe實現區域性重新整理方法一 1 2 當點a1時在iframe裡顯示a1.html的內容,點a2時在iframe裡顯示a2.html的內容 二 iframe實現區域性重新整理的方法二 1 2 3 ahref a1.html id a1 name a1.html target i 1 ah...

iframe頁面實現區域性重新整理的效果

後台管理頁面左側和頭部固定,中間內容區域是iframe寫的頁面跳轉,實現f5重新整理和ctrl r強制重新整理不回首頁,還是在當前頁面。在你想重新整理的頁面加入下 監聽重新整理事件然後設定localstorage.setitem iframe src url window.addeventliste...

棧的兩種實現

順序表實現棧 include include 順序表實現棧 define test head printf n s n function define default sz 5 typedef char datatype typedef struct seqstack seqstack 棧的初始化 ...