阿杰的博客
技術,工作,學習,生活
BlogJava
首頁
新隨筆
聯系
聚合
管理
隨筆 - 59 文章 - 70 trackbacks - 0
<
2009年5月
>
日
一
二
三
四
五
六
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
常用鏈接
我的隨筆
我的文章
我的評論
我的參與
最新評論
留言簿
(5)
給我留言
查看公開留言
查看私人留言
隨筆分類
database(10)
html(11)
IDE(1)
j2ee(14)
j2se(7)
other(12)
server&os(3)
Tec.other(4)
隨筆檔案
2010年6月 (2)
2010年5月 (1)
2009年12月 (1)
2009年8月 (1)
2009年7月 (2)
2009年6月 (2)
2009年5月 (4)
2009年4月 (1)
2009年3月 (8)
2009年2月 (4)
2009年1月 (8)
2008年12月 (5)
2008年10月 (6)
2008年9月 (3)
2008年8月 (6)
2008年7月 (2)
2008年4月 (3)
2008年3月 (1)
搜索
積分與排名
積分 - 173678
排名 - 340
最新評論
1.?re: Hibernate多對多more-to-more實例
同是要求返回兩張表的字段,該如何查詢,如何確定返回類型
--苗
2.?re: mysql中data too long for column問題的解決方法
謝謝
--12
3.?re: Found class com.sun.image.codec.jpeg.JPEGImageEncoder, but interface was expected
多謝 幸虧看到了你的文章了 否則還在調查別的方向呢。
--0o0元素0o0
4.?re: mysql中data too long for column問題的解決方法
感覺樓主,我的問題解決了。
--leither
5.?re: HQL多表聯合查詢的問題
非常感謝
--hgm
閱讀排行榜
1.?mysql中data too long for column問題的解決方法(36104)
2.?HQL多表聯合查詢的問題(22576)
3.?排列組合公式 排列組合計算公式(16377)
4.?apache的Forbidden You don't have permission to access / on this server. 提示(13467)
5.?oracle contains(6655)
評論排行榜
1.?mysql中data too long for column問題的解決方法(24)
2.?HQL多表聯合查詢的問題(7)
3.?可以將別處的文章導入到blogjava嗎?(7)
4.?Hibernate多對多more-to-more實例(5)
5.?iframe自適應高度問題(4)
iframe自適應高度問題
之前寫的iframe的自適應高度語句都是這樣寫的:
onload
=
"
this.height=ifr.document.body.scrollHeight
"
結果發現不能兼容firfox,于是改成下面的代碼:
<
script
>
function?SetCwinHeight()
{?
var?ifr
=
document.getElementById(
"
ifr
"
);?
//
iframe?id?
if
?(document.getElementById)
{?
if
?(ifr
&&
?
!
window.opera)
{?
if
?(ifr.contentDocument?
&&
?ifr.contentDocument.ifr.offsetHeight)
{?
ifr.height?
=
?ifr.contentDocument.body.offsetHeight;?
}
else
?
if
(ifr.Document?
&&
?ifr.Document.body.scrollHeight)
{?
ifr.height?
=
?ifr.Document.body.scrollHeight;?
}
?
}
?
}
?
}
</
script
>
<
iframe?id
=
"
ifr
"
?src
=
"
/login.jsp
"
?frameborder
=
"
0
"
?width
=
"
715
"
?scrolling
=
"
No
"
?onload
=
"
Javascript:SetCwinHeight()
"
></
iframe
>
成功!
posted on 2009-05-11 18:53
JasonChou
閱讀(567)
評論(4)
編輯
收藏
所屬分類:
html
FeedBack:
#
re: iframe自適應高度問題 2009-05-18 11:52
宋雪
您好!我是《中國科技博覽》編輯部的宋雪,國家級刊物現對外征稿。歡迎您咨詢投稿工作Q 237692305電話010-83753033轉分機304 13671307412 統一投稿信箱zgkjbls@163.com 宋雪期待與您合作!
回復
更多評論
#
re: iframe自適應高度問題 2009-07-10 14:32
ff
ccccccccccccccccc
回復
更多評論
#
re: iframe自適應高度問題 2009-07-10 14:32
ff
www.admin173.com
回復
更多評論
#
re: iframe自適應高度問題
2010-11-01 15:45
lele
我試了一下,在FF下還是不能自適應~
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
JS對聯廣告代碼
td里面連續的英文換行問題
setTimeout和setInterval的使用
iframe自適應高度問題
鼠標移動到小圖顯示大圖實例
div下拉框被falsh覆蓋的解決方法
javascript學習筆記(三)
javascript學習筆記(二)
javascript學習筆記(一)
獲取服務器的時間
Copyright ©2025 JasonChou Powered by:
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
邵阳市
|
海口市
|
玉门市
|
彭州市
|
土默特左旗
|
秦安县
|
长海县
|
清水河县
|
洮南市
|
朝阳市
|
井研县
|
无棣县
|
南涧
|
遵义县
|
宁城县
|
志丹县
|
如皋市
|
高尔夫
|
恩平市
|
高碑店市
|
灵川县
|
瑞丽市
|
辽宁省
|
九江市
|
会理县
|
府谷县
|
文水县
|
桐庐县
|
瓦房店市
|
汝南县
|
道孚县
|
化州市
|
沙坪坝区
|
龙山县
|
九江县
|
敦化市
|
台北市
|
扶风县
|
宁化县
|
洛南县
|
六安市
|