现在的位置: 首页 > 综合 > 正文

html笔记

2013年08月07日 ⁄ 综合 ⁄ 共 669字 ⁄ 字号 评论关闭

1、粗体: <b>与<strong>

效果一样,b是实体标签,而strong是逻辑标签。但在实际使用时多用b或css (font-weight:bold;)

2、块引用:<blockquote>

会在上下加入空行,并在两端出现缩进。可用css格式化或代替。

3、预定义:<pre>

原样输出文本,但字体有所改变,需用css格式化。

注意,当行的长度超过页面的宽度时会出现滚动条,IE可用css的word-wrap : break-word 来格式化,而FF则不能,不过可以用div+滚动条处理。

例子:

<pre>Switch panel manual operation with indicator light
No interruption locking function prevents strangers performing remote One-button operation to switch off all lamps before before sleeping or leaving One-button operation to
</pre>

4、标题:<h1>...<h6>

<h1>会在上下加入空行。</h1>

h1最大、h6最小

5、段落:

<p>会在上下加入空行。</p>

6、块元素:

<div>与<span>

7、超链接 锚

命名锚:

<a id="anchor1">anchor1 here</a>

使用锚:

<a href="a.htm#anchor1">Jump to anchor1</a>

 

常用字体:

中文:宋体

英文:Arial、Verdana、Times New Roman

常用字体大小:10-12pt

 

 

 

抱歉!评论已关闭.