`

常用代码

阅读更多
1.IFRAM自动高度调用
//加入当前页
<iframe name="ifr" frameborder="0" width="600" scrolling="no" src="t2.htm"></iframe>
//加入引用页T2


2.<%@ codepage="936"%>作用很大的
他可以保证你的代码可以在非中文系统下正常解释运行。
因为asp文件里一般都会有中文的,如果没有这句,在外文系统下会报错的。

3.(flash)当进入动画页面时,鼠标变成某一物体
在场景第一帧输入如下AS:
startDrag("mc",true) //mc即你要替换的火柴棒之类的影片剪辑。
mouse.hide() //隐藏鼠标

4.在DWMX里作一个1像素大小的直线有多种方法能实现
1.<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#000000" height="1"></td></tr>
</table>
2.
<hr size=1>
<div style="height:100%;width:1;border:1 solid red;overflow:hidden"></div>

5.去掉横向滚动条
<body style="overflow-x: hidden;">

6.代码表格背景渐变:
<TABLE width=400 height=40>
<TR><TD style="width:100%; height:100%;background:gold;filter:alpha(opacity=0,finishopacity=100,style=1,startx=100,starty=100,finishx=0,finishy=0)"></TD>
</TR>
</TABLE>

7.网页背景渐变
<style>
body{ filter:alpha(Opacity=30,style=1); background:red}
</style>

8.一个像素表格边框
style="BORDER: #ffff00 1px solid; BORDER-COLLAPSE: collapse"

9.FLASH背景透明代码
<PARAM NAME=wmode VALUE=transparent>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics