分享

网页代码初学知识

 书童追梦 2011-05-24

常用汉字代码:
宋体 黑体 楷体_GB2312 仿宋_GB2312 新宋体 幼圆 隶书
方正舒体 华文新魏 华文行楷 华文细黑 华文彩云 方正姚体
颜色的代码:
黑色=000000 白色=ffffff 红色=ff0000 绿色=00ff00 
蓝色=0000ff 黄色=fff000 青色=00ffff 紫色=ff00ff
居中代码:
<CENTER> 内容</CENTER>
<P align=LEFT>左对齐</P>
<P align=center>居中</P>
<P align=RIGHT>右对齐</P>
文字设置代码:
<CENTER> <font style=font:20pt face=隶书 color=fff000>
输入内容</font></CENTER>
贴图代码:
<img src="图片地址">
<P align=center><img src="图片地址"></P>
<P align=center><img src="图片地址"width=宽度 height=高度></P>
--------------------------------------------------------------------------------
 
用颜色作背景的空白图框代码:
<CENTER>
<TABLE borderColor=#0000ff cellSpacing=10 cellpadding=20 bgcolor=fff000 width=400 height=300 border=10>
<TBODY>
<TR>
<TD>
<br>
<br>
</CENTER></TD></TR></TBODY></TABLE>

--------------------------------------------------------------------------------

用图片作背景的空白图框代码:
<CENTER>
<TABLE borderColor=#0000ff cellSpacing=10 cellpadding=20 cellpadding=20 background=图片地址 width=400 height=300 border=10>
<TBODY>
<TR>
<TD>
<br>
<br>
</CENTER></TD></TR></TBODY></TABLE>
 
 

--------------------------------------------------------------------------------

立体图框代码:
<CENTER>
<TABLE style="BORDER-LEFT-COLOR: #fbd44c; BORDER-BOTTOM-COLOR: #fbd44c; BORDER-TOP-STYLE: ridge; BORDER-TOP-COLOR: #fbd44c; BORDER-RIGHT-STYLE: ridge; BORDER-LEFT-STYLE: ridge; BORDER-RIGHT-COLOR: #fbd44c; BORDER-BOTTOM-STYLE: ridge" height=380 cellSpacing=5 cellPadding=5 width=470 border=14>
<TBODY>
<TR>
<TD>
<br><br>
</TR></TBODY></TABLE>
 
 
--------------------------------------------------------------------------------

图片可调大小的一组代码.
<P align=center><INPUT src="图片地址"type=image width=宽度></P>
--------------------------------------------------------------------------------
 
羽化图片代码:
<INPUT style="FILTER: alpha(opacity=100,style=2)" type=image height=500 width=450 src="图片地址">
 

贴Flash 图片代码:

<EMBED src=http://yy./swfpath/200462722381564615.swf width=128 height=0 hidden=true type=application/x-shockwave-flash>
 
 
--------------------------------------------------------------------------------

在一张图片上加叠Flash 代码:

<TABLE cellSpacing=3 cellPadding=3 width=460 bordercolor=660000 background=http://img./UploadFile/2005/6/7/5141107.jpg border=18>
<TBODY>
<TR>
<TD><EMBED align=right src=http://imgfree.21cn.com/free/flash/59.swf width=460 height=370 type=application/octet-stream wmode="transparent" quality="high" ;;></TD></TR></TBODY></TABLE>
 
 
--------------------------------------------------------------------------------
 

全屏代码:

<br><br><br><br>
<DIV id=table1 style="LEFT: -220px; WIDTH: 800px; POSITION: relative; TOP: 40px">
贴子
</DIV><br><br><br><br>
 
 
 
--------------------------------------------------------------------------------

播放器代码:

<CENTER>
<embed src="http://bbs./bbs/upfile/music/601.mp3" type="audio/x-pn-realaudio-plugin" controls="controlpanel,statusbar" height=50 width=400 autostart="true" loop="true">
</CENTER>
(高度height=和宽度width=设为0时,隐藏播放器。)
 
--------------------------------------------------------------------------------
 
移动设置代码:

我从右向左走代码:
<br>
<marquee direction=left scrollAmount=3 ><font style=font:25pt face=隶书 color=0000ff>我从右向左走!</marquee>

我从左向右移代码:
<marquee direction=right scrollAmount=3 ><font style=font:25pt face=隶书 color=0000ff>我从左向右移!</marquee>
--------------------------------------------------------------------------------

我来回走耶代码:
<br>
<marquee behavior=alternate scrollAmount=3 ><font style=font:25pt face=隶书 color=0000ff>我来回走耶!</marquee>

我从下向上滚代码:
<br>
<marquee direction=up scrollAmount=3 ><font style=font:25pt face=隶书 color=0000ff>我从下向上滚!</marquee>

--------------------------------------------------------------------------------

我从上向下滚代码:
<br>
<marquee direction=down scrollAmount=3 ><font style=font:25pt face=隶书 color=0000ff>我从上向下滚!</marquee>
 
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约