日期:2014-05-17  浏览次数:20918 次

HTML-2-格式-文本-超连接-URL-图象-地图标签
04 js

格式 和文本 标签

简单的不说了
说点希奇的

比如我的显示器小,
IE把很长的一窜文字自动换行了
而我不喜欢换行,希望显示出来一行效果
哪怕出现左右滚动条也没有关系
那么就用这个
<nobr></nobr>可以弄出一根很长的水平滚动条


2.<blockquote></blockquote>宿进,要宿二次就再套一对

3.<marquee behavior=slide 到边就停
sroll 滚
alter 来回滚

4.<dl></dl><dt></dt><dd></dd>
就像列表吧
我自己瞎猜一下
l:list
t:title
d:data

5.<ol></ol><li></li>
6.<ul></ul><li></li>

-----------------
偶尔也可用用

<h1></h1>...<h6></h6>
<b></b><u></u><i></i>

<sub></sub>
<sup></sup>
<tt>打印机</tt>
<em>strong</em>
<strong>strong黑体 粗体</strong>
<cite>引用方式显示文本</cite>

<font> face[没有字体,IE忽略,用默认] size color

===================================

05 js

hyperlink

<a href="xxx.html" target="_blank">xxx</a>

<a href="xxx.html"><img border=0 src="cc.gif"></a>

<a href="mailto:xxx@sina.com?subject=hi">contact me</a>

there is another good thing is hyperlink

<a name="mark1">[好象没有结束tag]

在同一个PAGE里
可以这样jump
<a href="#mark1">jump to</a>[#代表本页]

在其他页跳进来
<a href="xxx.html#mark1">jump to</a>

==============
<a href="#">self</a> 到自己页
<a href="">blank</a> 到目录去了[本地计算机]
<a href="">blank</a> 到目录的默认网页去了[www]


================================
06 js

URL Uniform Resource Locator

网络资源 [文件,等其他]

URL基本组成:
协议 主机名 断口 资源名
http: www.ai.com 8080 index.html

协议规定IE怎么到SERVER拿资源,怎样拿
当然协议不仅仅是HTTP
还有FTP等

断口不些就表示取协议的默认端口 HTTP 80
FTP:21[好象是]

----------路径问题来了
/开头 表示主机 根 目录
../开头 当前资源所在目录的 父目录
a.html
或者./开头 表示当前目录下的目录或者文件

使用相对URL,集体迁移不需要改变什么!!

★URL还可以传参数
http://www.mike.com/index.html?name=jack&age=12
?键值对&键值对
都是String
特殊情况是 index?name=&age=12
这时 name也传值了 传了 '空串'

★通常,能接受参数的 网络资源 都是可以在server上run的程序!!

HTTP协议规定URL不可以传特殊字符 所以,如果要传中文什么的,
要先进行URL编码!!

mailto URL
mailto:xx@xx.com?subject=Feedback&body=How%20are%20you!

这些完全可以去MSDN里查
记个P啊

顺带说两个小知识 CC BCC
看看MSDN里有多么的详细:
mailto Protocol

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

Opens a client's e-mail system.

Syntax

mailto:sAddress[sHeaders]
Tokens

sAddress
One or more valid e-mail addresses separated by a semicolon. You must use Internet-safe characters. Use %20 for the space character.
sHeaders
Optional. One or more name-value pairs. The first pair should be prefixed by a "?" and any additional pairs should be prefixed by a "&". The name can be one of the following strings.
subject
Text to appear in the subject line of the message.
body
Text to appear in the body of the message.
CC
Addresses to be included in the "cc" (carbon copy) section of the message.
BCC
Addresses to be included in the "bcc" (blind carbon copy) section of the message.


-------URL编码
了解一下就可以了
规则:
1 0-9,A-Z等不变
2 把空格变+
  觉得不雅观 ,所以不变+,直接用 十六进制编码 %20

3,其他字符 要以当前字符集在内存里的十六进制格式表示
每个字节前加%
注意是以当前字符集,字符集不一样,同样的汉字在内存里的表示也是不一样的

当然,如果确定 server肯定认识 中文,那直接传中文也是可以的
但是不推荐的,尽量避免中文
========================

07 js

图象标签

<img src="must need">
alt
align
border