-
与时俱进,网站也改个宽屏吧
当初做这个网站的时候,宽屏,大屏高分辨率的显示器好像还不如今天盛行,所以之前的网站一直都是960px的,其实也算是为了照顾到所有的用户,不过时代在进步,现在看来960px的网站看起来就略显小气,所以花了一个晚上的功夫,把网站宽度改为1180px,应该也还算是保守尺寸。
笔记本小屏幕截图,看起来也还美观。如果是大屏幕台式机,1920分辨率以上的应该还是会感觉有点小。
2020-11-14 23:11:15 工作杂记 次阅读 1条评论
-
网页自动关闭的代码
<script language="javascript"> window.opener=null; window.open('', '_self', '');//模拟自己打开自己 window.close();//再关闭就没有对话框了 </script> --------------------------以下是过多少秒自动关闭网页,弹窗 <html> <head> <title>JS定时关闭当前网页窗口_网页代码站</head> <body> <script LANGUAGE="JavaScript"> setTimeout('window.close();', 5000); </script> <p align="center">5秒后关闭</p> <br /> </body> </html> --------------------------以下是过多少秒自动关闭网页,不弹窗 <body onload='setTimeout("mm()",5000)'> <script> function mm() { window.opener=null; window.close(); } </script> </body>
2019-3-13 10:47:48 工作杂记 次阅读 0条评论
-
ASP简单获取浏览器UA(User Agent 用户代理)方法
ASP简单获取浏览器UA信息,代码如下:
<%=Request.ServerVariables("HTTP_USER_AGENT")%>
效果如下:
2019-1-14 14:40:25 工作杂记 次阅读 0条评论
-
使用javascript点击添加或删除一行
<pre name="code" class="html"> <html> <head> <title>js-sample</title> <script type="text/javascript"> <!-- var count = 1; function add() { var tbl = document.all.ci; var rows = tbl.rows.length; var tr = tbl.insertRow(rows); var name = tr.insertCell(0); name.innerHTML = '<input type="text">'; var tel = tr.insertCell(1); tel.innerHTML = '<input type="text">'; var rdo = tr.insertCell(2); rdo.innerHTML = '<input type="radio" value="0" name="rdo' + count + '">Yes <input type="radio" value="1" name="rdo' + count + '">No'; var chk = tr.insertCell(3); chk.innerHTML = '<input type="checkbox" value="0" name="chk' + count + '">Modify <input type="checkbox" value="1" name="chk' + count + '">Delete'; var del = tr.insertCell(4); del.innerHTML = '<input type="button" onclick="del(this)" value="Delete">'; count++; } function del(btn) { var tr = btn.parentElement.parentElement; var tbl = tr.parentElement; tbl.deleteRow(tr.rowIndex-1); } //--> </script> </head> <body> <input type="button" onClick="add()" value="Add-Customer"> <table border="1" style="width:100%" id="ci" name="ci"> <caption>customer information</caption> <thead> <tr> <th>Name</th> <th>Tel</th> <th>Radio</th> <th>CheckBox</th> <th>?</th> </tr> </thead> <tbody> <tr> <td><input type="text" value="Zhang San"></td> <td><input type="text" value="111"></td> <td> <input type="radio" value="0" name="rdo">Yes <input type="radio" value="1" name="rdo">No </td> <td> <input type="checkbox" value="0" name="chk">Modify <input type="checkbox" value="1" name="chk">Delete </td> <td> <input type="button" onClick="del(this)" value="Delete"> </td> </tr> </tbody> </table> </body> </html>
2018-8-16 16:12:6 工作杂记 次阅读 0条评论
- 控制面板
- 相册列表
- 搜索
- 最新留言
- 网站收藏
-