HTML&CSS Learning Notes 4
2015-09-16 19:26
369 查看
CSS
Basic IThe stylesheet.css tab (which we’ll teach you how to use in this course) contains all the CSS styling information: where HTML elements should go, what color they should be, how big they should be, and more.
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
Like img tags, the link tags also is the single-tag label. The basic using method is like that, there are
type
rel
href, three attributes for referring the stylesheet.css file. There is no any punctuation between them.
Three styling methods
Inline styling method:
for example:
<p style="color:white; background-color:aquamarine"></p>
<style></style>
for example:
<style> p { color:white; background-color:aquamarine; } </style>
Separate in different files, “.html” and “.css”.
Pattern:
selector { property: value; }
<!--I'm a comment!-->in html file
/*I'm a comment!*/in css file
emas the unit of font-size
In general, 1em is equal to the default font size, then you can use this unit to sizing your font. Like 0.5em or 1.5em or 2 em, etc.
Backup values
Different browsers supported different values, if the value you used cannot be supported by the using browser, you should set backup values after your first choice, separately by using “,”.
text-decoration
There are four parameters for this attribute,
overlain,
underline,
line-through,
blink, and
none. The meaning of this attribute is to place the line of text.
相关文章推荐
- 13年总结js,css,java xml
- Qt绘图之QGraphicsScene QGraphicsView QGraphicsItem详解
- css3阴影设置发光边框效果
- css3--background属性
- css通配符
- CSS选择器的优先级
- 不错的VS2010扩展——JSEnhancements,让js和css也折叠(转)
- CSS3Ps -Photoshop图层特效转CSS3代码
- vagrant中css,img不生效的问题
- css+html菜单适应性学习的宽度
- css3--border属性
- css解决文字垂直居中
- CSS display:table属性用法解析
- CSS selector选择符 进行CSS网页布局的基础
- My97DatePicker 与 某个CSS冲突 ,导致无法显示
- SpannableString 给TextView添加不同的显示样式
- SpannableString 给TextView添加不同的显示样式
- SpannableString 给TextView添加不同的显示样式
- 使用 CSS3 实现超炫的 Loading(加载)动画效果
- CSS中!improtant的使用