HTML&CSS Learning Notes 4
来源:互联网 发布:相宜本草专卖店淘宝 编辑:程序博客网 时间:2024/06/07 15:40
CSS
Basic I
The 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
em
as 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.
- HTML&CSS Learning Notes 4
- HTML&CSS Learning Notes 1
- HTML&CSS Learning Notes 2
- HTML&CSS Learning Notes 3
- HTML&CSS Learning Notes 5
- HTML&CSS Learning Notes 6
- HTML&CSS Learning Notes 2 (Additional)
- HTML Learning Notes
- HTML learning notes
- JSP Learning Notes 4
- Learning HTML+CSS
- Python chapter 4 learning notes
- Learning Notes
- CS229 Lecture Notes(4): Generative Learning Algorithm
- Css Notes
- CSS notes
- HTML notes
- Html Notes
- 基于条件变量和互斥量同步的三线程顺序打印abc(10次)实现
- was 自启脚本
- 贝塞尔曲线扫盲
- Crashlytics——iOS crash log 解析利器
- 美国威布森碳纤维电地暖 电能转换为热能采暖节能更舒适
- HTML&CSS Learning Notes 4
- WIFI基本知识整理
- Netty源码学习(一)----概述
- android获取指定路径下目录文件
- 8888
- 新唐N32926调试--动态库的建立
- suse linux 下Tomcat 开机自启动配置
- 国网山东电力拓展电能替代领域
- Android - 判断SIM卡状态