1、網頁設計與製作設計一個頁面,實現一個四則計算器
這個代碼其實網上有很多現成的,而且做有CSS布局各種形式的都有,自己多花點時間搜索下就可以找到 。
2、如何用運用html和css相關技術,設計一個網頁在線計算器的界面
html+css只是靜態樣式。而涉及到計算方面,得再加js就能實現了。
3、簡單的網頁計算器製作,是不是我代碼寫錯了,怎麼顯示的是不完整的呢?
添加點樣式,或者表格來調整位置。
4、網頁計算器設計
我寫了個簡單的```你要的那些都有````附件
5、網頁製作,,,公式計算器
我做了個簡單的 你先拿去用吧。
把代碼粘貼到html文件裡面就好了。
純手打的 望採納。
——————————————————代碼—————————————————
<html>
<head>
<title>Caculator</title>
</head>
<body>
<table>
<tr>
<td>單價:</td><td><input type="text" id="sPrice" value="" /></td>
</tr>
<tr>
<td>數量:</td><td><input type="text" id="Num" value=""/></td>
</tr>
<tr>
<td>總價:</td><td><input type="text" id="TPrice" value=""/></td>
</tr>
<tr>
<td><input type="button" id="cacul" value="計算" onclick="cal();"/></td>
</tr>
</table>
</body>
<script type="text/javascript">
function cal(){
var sPrice = document.getElementById('sPrice').value;
var Num = document.getElementById('Num').value;
var TPrice= document.getElementById('TPrice').value;
if(sPrice!=''&&Num!=''){
TPrice = sPrice*Num;
document.getElementById('TPrice').value = TPrice;
}
if(Num==0&&TPrice!=''){
alert('除數不能為零!');
}
if(TPrice!=''&&Num!=''&&Num!=0){
sPrice = TPrice/Num;
document.getElementById('sPrice').value = sPrice;
}
}
</script>
</html>
6、網頁製作--如何製作計數器?
Microsoft Frontpage有現成的.將它插入到你所希望的位置即可.
7、在自己電腦上設計的網頁計算器,如何操作可以讓別人通過手機打開?急,求大神指教。
將網頁上傳到網站,然後將這個網頁的地址發給對方,對方就可以用手機打開了
8、asp網站運行:設計一個簡單的計算器,輸入兩個數後可以求兩個數的和、差等。界面如下:完整代碼
保存為test.asp
---------------------------
<%
a=cint(request("a"))
b=cint(request("b"))
c=request("c")
if c=1 then
d="+"
else
d="-"
end if
if a="" or b="" or c="" then
label1="沒有輸入內容內"
else
label1=a&d&b
end if
%>
<form name="form1" action="test.asp" method="post">
<input type="text" name="a" />
<input type="radio" name="c" value="1" checked="checked" />+ <input type="radio" name="c" value="0" />-
<input type="text" name="b" />
<input type="submit" name="操作容" />
</form>
<%
if c=1 then
e=a+b
else
e=a-b
end if
response.Write(label1&"="&e)
%>