1、我在設計一個網頁,網頁中有兩個界面,當我按下按鈕是,怎樣才能這兩個界面同時連接到不同的網頁
得用程序控制
2、當一個頁面出現兩個button 怎麼分別應用?
你說的是什麼語言,是不是css,如果是css,你可以使用不同的命名。
3、html網頁製作,javascript,一個按鈕如何有兩種功能?為什麼按鈕點擊兩次才行?
當你點擊按鈕的時候,document.getElementById('text').style.display這個值是空,不是'block',所以會進入else條件里,所以第一次隱藏不了
1. 你可以在div的style里加入display:block;讓div的初始值為block,這樣就能進入if里了
style="position:fixed; z-index:1;display:block;"
2. 或者不加display:block;,把js那段改成下面也可以:
if (document.getElementById('text').style.display==''){兩種方法都可以,希望可以幫到你
4、HTML製作網頁的時候,怎麼快速的讓兩個按鈕邊緣對齊居中?
1.創建一個大盒子,寬度等於上方創建用戶的寬度。
2.把現有的四個盒子移動到剛才的大盒子中,樣式有問題可以調一下。
3.給要居中的盒子加上margin: 0px auto 0px;的樣式,兩個0px分別代表盒子上下的外邊距,不固定可以是任意值。可以調整到理想的距離。
以上。
5、非常簡單的html問題。。一個頁面上兩個輸入框,兩個按鈕,如何提交各自的內容到不同的地方?
兩個表單都沒有使用</form>關閉,只要將表單關閉就可以了,改後代碼如下:
<strong><h1>To make a reservation:</h1>
</strong>
<form action="doReservation" method="POST">
Enter the book Id
<input name="resID" type="text" id="resID" value="">
<span class="gray_text">
<input type=submit value=" reserve " />
</span>
</form> <!-- 在這里關閉 -->
<p>
<h1>To cancel a reservation:</h1>
<form action="doCancel" method="POST">
<p>Enter the reservation Id
<input name="cancelID" type="text" id="cancelID" value="">
<span class="gray_text">
<input type=submit value=" cancel " />
</span> </p>
</form> <!-- 在這里關閉 -->
只要兩個表單的action指向不同的處理頁面,就可以實現各自提交到不同的地方,這個你已經做對了.所以,只要修正上面的小錯誤就OK了.
6、網頁設計:怎麼設計出點一下按鈕把兩個文本框的文字互換
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<script type="text/javascript">
function changeStr(){
var ctrName=document.getElementById('name');
var ctrPass=document.getElementById('pass');
var strName=ctrName.value;
var strPass=ctrPass.value;
ctrName.value=strPass;
ctrPass.value=strName;
}
</script>
</head>
<body>
<input id="name" type="text" value="name">
<input id="pass" type="text" value="pass">
<input id="change" type="button" value="互換" onclick="javascript:changeStr();">
</body>
</html>
7、網頁 如何點擊一個按鈕打開兩個窗口
當然可以,一般用JS代碼即可實現。示例:
<script language="javascript">
function open2()
{
window.open("A頁面");
window.location.href="B頁面";
}
</script>
<input name="" type="button" onclick="open2()" value="打開"/>
8、HTML怎麼把這兩個按鈕一個左邊,一個右邊啊?
<div>這位網友你好,設置兩個div長度分別為50%,再浮動即可。
9、為什麼網頁設計時提交按鈕顯示兩個,怎樣保留一個
應該是你寫代碼的時候寫了兩個提交按鈕,你刪除代碼中的一個提交按鈕即可。
10、菜鳥求助:網頁設計 如何實現一個button點擊時 多個單選項被選中
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div class="from">
<label for="time1"><p>語音:</p><input type="radio" value="60" name="time" id="sj0"/> 60分鍾</label>
<label for="time2"> <input type="radio" value="120" name="time" id="sj1"/> 120分鍾 </label>
<label for="anxin1"> <p>簡訊:</p><input type="radio" value="60" name="anxin" id="dx0"/> 100條</label>
<label for="anxin2"> <input type="radio" value="120" name="anxin" id="dx1"/> 200條</label><br><br>
<button onclick="button0()">套餐一:60分鍾+100條</button>
<button onclick="button1()">套餐二:120分鍾+200條</button>
</div>
<script>
function button0(){
$("input[name='time']").get(0).checked=true;
$("input[name='anxin']").get(0).checked=true;
}
function button1(){
$("input[name='anxin']").get(1).checked=true;
$("input[name='time']").get(1).checked=true;
}
</script>
</body>
</html>
我就大概寫了個功能,希望能幫助到你。