height:calc(100%-100px)如何相容ie8
做公司後臺管理系統時,右邊content-main內容塊高度出現了相容問題。是content-main包裹了iframe。如何相容ie8,貼出以下程式碼部分(css,js)原來css供參考
另一個參考地址:https://stackoverflow.com/questions/11117216/css-width-calc100-100px-alternative-using-jquery
js部分程式碼如下:
<script>
var isIE = function(ver) {
var b = document.createElement('b')
b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif]-->'
return b.getElementsByTagName('i').length === 1
}
var ie = isIE();
if(ie) {
$('#content-main').css('height', '100%').css('height', '+=570px');
}
</script>
相關推薦
height:calc(100%-100px)如何相容ie8
做公司後臺管理系統時,右邊content-main內容塊高度出現了相容問題。是content-main包裹了iframe。如何相容ie8,貼出以下程式碼部分(css,js)原來css供參考另一個參考地址:https://stackoverflow.com/questions/
Cocos2d-x 源代碼分析 : Scheduler(定時器) 源代碼分析
tel 技術分享 name list sch lam 源碼 hat array 源代碼版本號 3.1r,轉載請註明 我也最終不out了,開始看3.x的源代碼了。此時此刻的心情僅僅能是wtf!!!!!!!!!。只是也最終告別CC時代了。
HDU 3001 Travelling:TSP(旅行商)
sta init using 多少 b- upd eof == als 題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=3001 題意: 有n個城市,m條雙向道路,每條道路走一次需要花費路費v。你可以將任意一個城市作為起點出
性能提速:debounce(防抖)、throttle(節流/限頻)
mat 控制臺 nim 分享圖片 ons 布局 settime why 交互 debounce與throttle是用戶交互處理中常用到的性能提速方案,debounce用來實現防抖動,throttle用來實現節流(限頻)。那麽這兩個方法到底是什麽(what)?為何要用(why
Python3.x:pdf2htmlEX(解析pdf)安裝和使用
targe drm oom height pbo gin mage output javascrip Python3.x:pdf2htmlEX(解析pdf)安裝和使用 簡介 pdf2htmlEX是一款優秀的pdf轉換成html的工具; 下載 windows下載地址:http
Java面試題收集以及參考答案(100道)
str 單元 特殊的表 常見 文件的 邏輯判斷 浮點 類與對象 integer 不積跬步無以至千裏,這裏會不斷收集和更新Java基礎相關的面試題,目前已收集100題。 1.什麽是B/S架構?什麽是C/S架構 B/S(Browser/Server),瀏覽器/服務器程序
JS中對象的特征:封裝(函數)
函數 property 對象 調用 一個 .proto .get 定義 col 面向對象的特征 1、第一個特征:封裝 1.1概念:隱藏實現細節的過程 1.2優點:重用和隱藏細節 Java裏面有權限修飾符,但是JS裏面沒有,JS所有的屬性都是公共的,為了讓屬性私有化,就有相
HDU - 3949 :XOR(線性基)
表示 所有 integer ++ name ins several man const XOR is a kind of bit operator, we define that as follow: for two binary base number A and B,
小遊戲:五子棋(帶AI)
鏈接 ihs href 至少 jci heap 水平 密碼 更新 這個代碼,是本蒟蒻寫過幾乎最長的代碼了…… 此程序可能會有非常多的bug,但是這個代碼太長了(至少對於一個沒見識過fib heap什麽的人來說),而且寫得比較亂,所以可能以後不會更新了。 此AI算法是我自己腦
【校理】愛因斯坦:自述(1946年)
博主導言 這是《愛因斯坦文集》(商務印書館2009年版,譯者為許良英,李寶恆,趙中立)中的第一卷第一篇文章。其發表時間可見第一個註腳。除開文集之外,其他一些出版社也曾在名為《愛因斯坦自述》之類的書籍中編選過這篇文章,但都刪去了其中與物理學有關的內容,僅將能夠體現愛因斯坦對一般生活或科學整體看法的部分保留下來
FairyGUI筆記:Controller(十一)
控制器是FairyGUI核心功能之一,它為UI製作中以下類似需求提供了支援: 分頁 一個元件可以由多個頁面組成。 按鈕狀態 按鈕通常有按下、滑鼠懸浮等多個狀態,我們可以利用控制器為每個狀態安排不同的顯示內容。 其它狀態的變化 利用控制器,我們可以使元件具有多個不同的形
FairyGUI筆記:關聯(十二)
Relation 除了在編輯器設定關聯外,有時候我們也需要動態新增關聯。例如在一款頁遊中,一個動態新增到舞臺的元件,希望舞臺寬度改變時(比如瀏覽器視窗被玩家拖大拖小),元件依然保持在右側位置,那麼可以這樣呼叫: aObject.AddRelation(GRoot.inst, R
FairyGUI筆記:列表(十九)
GList 列表對應的是GList.在FairyGUI中,列表的本質就是一個元件,GList也是從GComponent派生來的,所以你可以用GComponent的API直接訪問列表能容,例如可以用GetChild或者GetChildAt訪問列表內的專案;也可以用AddChild新增
poj刷題debug日記:poj1276(多重揹包)
Cash Machine Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 39032
C/C++ 演算法分析與設計:貪心(整數配對)
題目描述 江鳥想到一個有趣的問題:給你N個正整數,你可以將這N個整數按兩個一組的方式成對劃分,當然其中的元素也可以不和其他元素配對劃分。現在的問題是,讓劃分為一對的元素的乘積與未配對的元素相加求和,並且讓和最大。比如:考慮這個集合{0,1,2,4,5,3},如果我們讓{0,3}、{2,5}分別成
打造軟硬體結合的機器人:WuKonChatBot(悟空)聊天機器人
打造軟硬體結合的第一機器人:WuKonChatBot(悟空)聊天機器人 請不要嘲笑我的夢想 開發總體計劃——已經完成 未來開發計劃 歡迎評論,留下你寶貴的建議 請不要嘲笑我的夢想 每個人都有夢想
執行緒(三):Lock(互斥鎖)、RLock( 遞迴鎖)、Semaphore(訊號量)、Event(事件)、Condition(條件)、Timer(定時器)、queue(佇列)
目錄 一、鎖 1)同步鎖 2)死鎖與遞迴鎖 二、訊號量 三、事件 四、條件 五、定時器 六、執行緒佇列 一、鎖 1)同步鎖 #同步鎖的引用 from threading import Thread,Lock import os,time def wor
福大軟工1816:Alpha(4/10)
Alpha 衝刺 (4/10) 隊名:Jarvis For Chat 組長部落格連結 本次作業連結 團隊部分 工作情況彙報 張揚(組長) 過去兩天完成了哪些任務: 文字/口頭描述: 1、將中文分詞、詞頻統計視覺化部分整合進專案中 2、參與現場程式設計
python 學習彙總30:lambda(全 tcy)
Lambda函式 2018/11/15 ------------------------------------------------------------------------- """ 1.1.語法: lambda parameters: express#返回新函式能用小括號
福大軟工1816:Alpha(6/10)
Alpha 衝刺 (6/10) 隊名:第三視角 組長部落格連結 本次作業連結 團隊部分 團隊燃盡圖 工作情況彙報 張揚(組長) 過去兩天完成了哪些任務: 文字/口頭描述: 1、組織會議 2、幫助隊員解決問題 展示GitHub當日程式碼