网页设计当中的常用标签

1、如内容超出单元格,则隐藏:

style="TABLE-LAYOUT: fixed"

2、让弹出窗口总是在最上面:

<body οnblur="this.focus();">

3、不要滚动条,让竖条没有:

<body style='overflow:scroll;overflow-y:hidden'>

    让横条没有:

 <body style='overflow:scroll;overflow-x:hidden'> 
    两个都去掉:

 <body scroll="no">

4、去掉图片链接点击后,图片周围的虚线 :

<a href="#" onFocus="this.blur()"><img src="logo.jpg" border=0>

5、电子邮件处理提交表单:

<form name="form1" method="post" action="mailto:****@***.com" enctype="text/plain"> <input type=submit> </form>

6、在打开的子窗口刷新父窗口:

 window.opener.locat ion.reload()

7、设定打开页面的大小:

 <body οnlοad="top.resizeTo(300,200);">

8、在页面中加入不是满铺的背景图片,拉动页面时背景图不动:

 <html><head> <STYLE> body {background-image:url(logo.gif); background-repeat:no-repeat; background-position:center } </STYLE> </head> <body bgproperties="fixed" > </body> </html>

9、各种样式的光标:

   auto :标准光标

   default :标准箭头

   hand :手形光标

   wait :等待光标

   text :I形光标

   vertical-text :水平I形光标

   no-drop :不可拖动光标

   not-allowed :无效光标

   help :?帮助光标

   all-scroll :三角方向标

   move :移动标

   crosshair :十字标 e-resize n-resize nw-resize w-resize s-resize se-resize sw-resize

   定义全局鼠标:body{cursor: url(cur.ani或cur);}

   示例:

<span style="cursor:auto">Auto</span>

10、

本机ip<%=request.servervariables("remote_addr")%>

服务器名<%=Request.ServerVariables("SERVER_NAME")%>

服务器IP<%=Request.ServerVariables("LOCAL_ADDR")%>

服务器端口<%=Request.ServerVariables("SERVER_PORT")%>

服务器时间<%=now%> IIS

版本<%=Request.ServerVariables"SERVER_SOFTWARE")%>

脚本超时时间<%=Server.ScriptTimeout%>

本文件路径<%=server.mappath(Request.ServerVaria  bles("SCRIPT_NAME"))%>

服务器CPU数量<%=Request.ServerVariables("NUMBER_OF_PROCESSOR S")%>

服务器解译引擎<%=ScriptEngine & "/"& ScriptEngineMajorVe  rsion &"."&ScriptEngineMinorVe  rsion&"."& ScriptEngineBuildVe  rsion %>

服务器操作系统<%=Request.ServerVariables("OS")%>


11、文本竖排方式
<style type="text/css">
.shupai {Writing-mode:tb-rl}
</style>

12、超链接去虚线边框

在链接中加上οnfοcus="this.blur()"

13、网页搜索关键字 头里插入
<META NAME="keywords" CONTENT="xxxx,xxxx,xxx,xxxxx,xxxx,">
14、收藏夹图标
<link rel = "Shortcut Icon" href="favicon.ico">
15、鼠标控制图片隐现效果:
<SCRIPT language="javascript">
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.o pacity=100
else
cur.filters.alpha.o pacity=20
}
</SCRIPT>
<img src="2.gif" style="filter:alpha(opacity=20)"
onMouseOver="makevisible(this,0)"
onMouseOut="makevisible(this,1)">
16、禁止图片下载
<A HREF="javascript:void(0)" onMouseover="alert('对不起,此图片不能下载!')">
<IMG SRC="2.gif" Align="center" Border="0" width="99" height="50">[/url]
17、页嵌页
<iframe width=291 height=247 src="main.files/news.htm" frameBorder=0></iframe>


18、CSS文字阴影(定义在<TD>中)
.abc{
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值