1、在網頁設計中怎麼做到目標顯示與隱藏???
這個是通過 css和js兩種語言互相配合達到的效果
呃,怎麼說呢,你圖片中的效果是典型的tab面板,或叫滑動門效果,或叫做tab選項卡式面板,我手中有效果,但現在不行。請明天找我要吧,Hi聯系。
如果麻煩,你可以在百度中搜一下:網頁滑動門效果,會有很多現成的代碼供你參考。
原理是:通過js對上頁那兩個按鈕進行onmouseover和onmouseout監控,然後調用自定義函數對下面那個區域div的內容進行顯示和隱藏,也就是css中syle.display="hidden";(本句是js代碼,而syle卻是css功能。)
就這么簡單。
2、網頁設計中怎麼隱藏列表?
你設置那麼多border-style 什麼的那麼多幹嘛,直接刪除所有Border的設置屬性,用一句話來代替 border:none; 同時,table屬性還要設置一下 .
3、如何將打開的網頁在瀏覽器中隱藏而不關閉?
將打開的網頁在瀏覽器中隱藏而不關閉的具體步驟如下:
我們需要准備的材料分別是:電腦、百度瀏覽器。
1、首先我們打開百度瀏覽器,點擊打開右上角三條杠中的「設置」。

2、然後我們在彈出來的窗口中點擊打開「快捷鍵」。

3、然後我們在彈出來的窗口中點擊打勾「啟用老闆鍵」和第二個選項,可以看到可以用滑鼠中鍵即可隱藏瀏覽器。

4、網頁設計中用overflow屬性使圖片隱藏,但如何使隱藏的圖片不佔據原有的網頁位置且能正常顯示。(急求,)
你給他的父元素固定的寬和高,在設置父元素的溢出隱藏試一下呢
5、在網頁製作中層的隱藏和顯示怎麼弄啊
function doDisplay(act){ var tips =document.getElementById(act); if( act ==1 ){ //顯示 tips.style.display = "block"; }else{ //隱藏 tips.style.display = "none"; } } 在需要的地方調用doDisplay這個函數,傳遞的參數就是需要顯示很隱藏的層的id
6、網頁製作中,如何實現層或者圖片顯示隱藏效果,高人見內
給段參考的代碼,再給個參考內容頁面,可以看下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<div id="div" style="width:200px;height:200px;background-color:#ddeeff;filter:Alpha(Opacity=0);opacity:0;" onmouseover="starchina()" onmouseout="starchina2()"><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /><img src="newtopic.gif" width="90" height="31" /></div>
<div id="under" ><input name="" type="button" / onclick="starchina()"></div>
</body>
<script type="text/javascript">
var o = document.getElementById("div");
var i=0;
var j=100;
var sobjTimer;
var sobjTimer2;
function change(){
i++;
o.style.filter = "Alpha(Opacity=" + i + ")"; //for IE
o.style.opacity = i/100; //for FF
if(i>100) {window.clearInterval(sobjTimer);}
}
function change2(){
j--;
o.style.filter = "Alpha(Opacity=" + j + ")"; //for IE
o.style.opacity = j/100; //for FF
if(j<0) {window.clearInterval(sobjTimer2);}
}
function starchina(){
sobjTimer =window.setInterval(change,10);
}
function starchina2(){
sobjTimer2 =window.setInterval(change2,10);
}
</script>
</html>
7、製作網頁時 內容的顯示和隱藏的代碼
好好回答一下,以下代碼實現你所說的效果,演示之用:
代碼是在網上轉的,我作了一點注釋,下面代碼保存為.html可以看到效果。
<html>
<head>
<title></title>
<script type="text/javascript">
function show(){
if(document.getElementById("table_foot").style.display=="block")
{//如果id為table_foot的標簽style.diplay屬性為block,則執行:
document.getElementById("table_foot").style.display="none";
}else{
document.getElementById("table_foot").style.display="block";
}
}
</script>
</head>
<body>
<table border="1" width="100%">
<tr id="table_head" onclick="show()" style="cursor:pointer;">
<td align="center">點擊這里顯示內容</td>
</tr>
<tr id="table_foot" style="display:none;"><!--看這里ID值在這兒。 -->
<td height="300" align="center" valign="middle" >你看到我沒啊?哈!聖誕快樂!</td>
</tr>
</table>
</body>
</html>
8、關於網頁設計,哪裡不對?網頁不能實現顯示和隱藏
d1你在布局中沒設置這個id,所以沒起作用!
9、怎樣在網頁中設計一個按鈕,點下後在當前網頁出現隱藏內容.
用js或者jquery控制隱藏顯示就行了,很簡單的,就一段代碼的事情,不會你q我
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head><title>
無標題頁
</title>
<scripttype="text/javascript"src="javascript/jquery-1.7.2.min.js"></script>
<scripttype="text/javascript">
$(function(){
$("#Button1").click(function(){
$("#flash").slideDown(function(){$("#Button1").hide();});
});
});
</script>
</head>
<body>
<inputid="Button1"type="button"value="button" />
<divid="flash"style=" width:100px; height:100px; border:1px solid #ff0000; display:none;"></div>
</body>
</html>
給你附上代碼,jquery庫你去下一個,放到同一個路徑就行了,這個沒Jquery庫不能運行的
10、網頁設計 隱藏-顯示層
這嗰問題ぬ難錒,莪乜吥會!