成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

frameset在GoogleChrome中無(wú)法隱藏左邊欄怎么辦-創(chuàng)新互聯(lián)

frameset在Google Chrome中無(wú)法隱藏左邊欄怎么辦?這個(gè)問(wèn)題可能是我們?nèi)粘W(xué)習(xí)或工作經(jīng)常見(jiàn)到的。希望通過(guò)這個(gè)問(wèn)題能讓你收獲頗深。下面是小編給大家?guī)?lái)的參考內(nèi)容,讓我們一起來(lái)看看吧!

蠡縣網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)建站,蠡縣網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為蠡縣成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè)要多少錢(qián),請(qǐng)找那個(gè)售后服務(wù)好的蠡縣做網(wǎng)站的公司定做!

使用Frameset 框架,發(fā)現(xiàn)在IE下,

<frameset name="mainDefine" cols="200,10,*" frameborder="NO"  border="0" framespacing="0" rows="*">
      <frame name="LeftFrame" noresize scrolling="auto" src="<%= PageTitle %>" >
      <frame name="middleFrame" scrolling="NO" noresize src="switchBar.html">
      <frame name="mainFrame" id ="mainFrame" scrolling="auto" noresize src="AddTabs.aspx">
</frameset>
switchBar.html 頁(yè)面中,可以使用js 控制左邊欄的顯示、隱藏
function oa_tool() {
            if (window.parent.mainDefine.cols == "0,10,*") {
                frameshow.src = "p_1.gif";
                oa_tree.title = "隱藏工具欄"
                window.parent.mainDefine.cols = "200,10,*";
            }
            else {
                frameshow.src = "p_2.gif";
                oa_tree.title = "顯示工具欄"
                window.parent.mainDefine.cols = "0,10,*";
            }
        }
<p id="oa_tree" onclick="oa_tool();" title="隱藏工具欄"><br>
         <img id="frameshow" src="p_1.gif">
</p>

但是在 Google Chrome 中,會(huì)報(bào)錯(cuò)情況 :

frameset在Google Chrome中無(wú)法隱藏左邊欄怎么辦

無(wú)法讀取cols屬性。

解決方案:

<frameset id="mainDefine" name="mainDefine" cols="200,10,*" frameborder="NO"  border="0" framespacing="0" rows="*">
      <frame name="LeftFrame" noresize scrolling="auto" src="<%= PageTitle %>" >
      <frame name="middleFrame" scrolling="NO" noresize src="switchBar.html">
      <frame name="mainFrame" id ="mainFrame" scrolling="auto" noresize src="AddTabs.aspx">
</frameset>

Frameset 添加ID,在JS中 使用 document.getElementById 來(lái)獲取ID 的 cols

if (parent.document.getElementById('mainDefine').cols == "0,10,*") {
       frameshow.src = "p_1.gif";
       oa_tree.title = "隱藏工具欄"
       parent.document.getElementById('mainDefine').cols = "200,10,*";
}
else {
     frameshow.src = "p_2.gif";
     oa_tree.title = "顯示工具欄"
     parent.document.getElementById('mainDefine').cols = "0,10,*";
}

感謝各位的閱讀!看完上述內(nèi)容,你們對(duì)frameset在Google Chrome中無(wú)法隱藏左邊欄怎么辦大概了解了嗎?希望文章內(nèi)容對(duì)大家有所幫助。如果想了解更多相關(guān)文章內(nèi)容,歡迎關(guān)注創(chuàng)新互聯(lián)網(wǎng)站制作公司行業(yè)資訊頻道。

本文題目:frameset在GoogleChrome中無(wú)法隱藏左邊欄怎么辦-創(chuàng)新互聯(lián)
當(dāng)前URL:http://jinyejixie.com/article12/dsiodc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站外貿(mào)建站、移動(dòng)網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航虛擬主機(jī)、網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁(yè)設(shè)計(jì)
阿瓦提县| 策勒县| 湖南省| 商水县| 广水市| 新乡市| 南昌县| 长春市| 广平县| 和政县| 金川县| 湖口县| 桦南县| 双桥区| 吴江市| 金川县| 四平市| 怀宁县| 清水县| 道真| 长丰县| 石渠县| 华池县| 阿拉善左旗| 西宁市| 家居| 永清县| 新巴尔虎右旗| 昌宁县| 江孜县| 西吉县| 镇雄县| 临颍县| 赣榆县| 丰镇市| 镇宁| 马尔康县| 格尔木市| 会宁县| 长武县| 沅江市|