This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.html 结构 | |
2.标签 | |
块标签: 特征 | |
div p h1-h6 ul li ol li dl dt dd table form | |
行标签:特征 | |
span em i strong b img a input select option textarea | |
3.a标签 1)超链接 2)锚链接 | |
属性 href 链接地址 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
 # | |
空白折叠现象:** | |
无论多少个空格、换行、tab,都会折叠为一个空格。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CSS中的绝对定位与相对定位 # | |
**层级关系为:** | |
div ——————————— position:relative; 不是最近的祖先定位元素,不是参照物 | |
div—————————-没有设置为定位元素,不是参照物 | |
div———————- position:relative 参照物 | |
div box1 | |
div box2 ——–position:absolute; top:50px; left:120px; | |
div box3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 水平格式化 # | |
非替换元素的水平格式化 | |
水平格式化的7大属性是:margin-left,border-left,padding-left,width,padding-right,border-right,margin-right。这7个属性值加起来往往是父级元素的width值。 | |
其中margin-left,width,margin-right可以设置为auto。 | |
主要有下面几种情况: | |
一个属性设置成auto | |
如果三个属性中某个属性设置了auto,其余两个为特定的值,那么设置auto的属性为确定所需的元素,从而使得元素框的宽度等于父级元素的width。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 详解CSS盒模型 # | |
本文主要是学习CSS盒模型的笔记,总结了一些基本概念,知识点和细节。 | |
**一些基本概念** | |
HTML的大多数元素都是块级(block)元素或行内(inline)元素 | |
**块级元素** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**text-decoration** | |
**语法:** | |
text-decoration: none | underline | overline | line-though | |
none: 无文本修饰(浏览器默认初始值) | |
underline : 表示有下划线 | |
overline : 表示有上划线 |
NewerOlder