css
- cascading style sheets 层叠样式表
- 用来辅助html编程语言使之更美化更易操作,不能单独使用
先插入<style> 后键入想要修改的部分,进行编辑
例如 body background-color ; hr border-style 等
符号{ }
优先级从高到低:
inline css
internal css
Eexternal css
css syntax: selector(who) {property(what) : vaule(how); }
- 在styles.css中添加div时,需要注意在who前加上"." 不要漏了!
css display property:
inside elements: span image anchors link ...
we could use display: inline/block/inline-block/none to change the elements
Ways to change the position of a target:
- change the div position into relative - .position: relative;
- chage the img position into absolute