学习HTML时, 记下的一些很基础的东西
传智博客_html
1. HTML语法基础
< > 空格 " 商标 版权
< > " ® ©
<p></p>段落标记
<br>换行标记
<nobr></nobr>不换行
<blockquote></blockquote>右缩进
<center></center>居中显示
<marquee></marquee>移动显示 behavior=scroll direction=up
<dl>列表
<dt>列表中上层
<dd>列表中下层
<ol>带有数字序号的列表
<ul>标有圆点的列表
<li>用于创建具体的列表象
<pre>对文本域格式化处理
<h1>...<h6>字号.字体标签
<b><i><u>粗体,斜体,下滑线.
<sub><sup>下标 上标
<tt>打印字 <cite>引用 <em>显示需要强调 <strong>加重.
<font>字体 face,size,color3个属性.
<a href="http://www.wwh.com#mark" target="_blank">个人主页</a>
<a href="http://www.wwh.com"><img border=0(边框) src="123.jpg"></a>
<a href="mailto:wangwenhui006@sina.com?subject=咨询">我要留言</a>
<a name="mark"></a>
link是连接的颜色,alink是连接按下时的颜色;vlink是连接按下后的颜色;
../回到上一层目录;
<hr>分隔线:
<hr color = >;<hr width = >;<hr size = >;<hr align = >;<hr noshade = >
<img src = "123.jpg">
alt,align,width,height,border(边框粗细),hspace,vspace属性;
v512_HTML
1. HTML语言是大小写不敏感的;
2. <body></body>标签的主要属性: bgcolor背景颜色,background背景图片,bgproperties,text设置文字的颜色,
bgproperties水印效果,(fixed)
3. <br>单标记: 换行,
<p></p>标记: 段落标记(有一个空行), 属性align
&nbs
相关文档:
Struts -- html:link 标签的使用
<html:link> 标签用于生成HTML <a> 元素。<html:link> 在创建超链接时,有两个优点:
(1) 允许在URL 中以多种方式包含请求参数。
(2) 当用户浏览器关闭Cookie 时,会自动重写URL,把SessionID 作为请求参数包含在URL 中,用于跟踪用户的Session 状态。
< ......
网页预定义颜色编码列表
const unsigned int gl_color_value[] = {
0xF5F5DC,
0x000000,
0xFF0000,
0xD2B48C,
0xFFD700,
0x008080,
0xF0E68C,
0x00FF00,
0x00FFFF,
0x0000FF,
0x00FFFF,
0xFF7F50,
0x008000,
0xFDF5E6 ......
//回车:[\n\r\t]
$reg="|typeid=\"(.*)\" onsel.*[\n\r\t]*<a href="\" mce_href="\""#\">(.*)</a>|";
preg_match_all ($reg,
$html,
$out, PREG_PATTERN_ORDER);
foreach ($out as $value){
foreach ($value as $value2){
if(strlen($value2)<20)
echo ($value2."<br>");
}
} ......
<html:select property='optdwdm' style='width:230' onchange='changedw(this)'>
<html:options collection='dwlist' property='dm' labelProperty='mc' />
</html:select>
在标签的 ONCHANGE 事件里面定义一个 changedw(this)
然后可以通过以下代码获取 html:select 选取的 VALUE ......