H5前期知识点总结 9月12日
知識點補充:
屬性繼承例子,color、font(font-size/style/family/weight)
1、瀏覽器的默認字體大小是16px,谷歌瀏覽器的最小字體是10px,其他瀏覽器的最小字體是12px。
2、通配符選擇器 “*”,即選中body里所有的標簽。
3、background 背景
A:背景顏色(background-color:red;)簡寫(background:red;)
B:背景圖片(background-img:url("路徑"))
C:背景圖片平鋪(background-repeat:no-repeat;)
(1)瀏覽器默認平鋪
(2)不平鋪 ?no-repeat
(3)平鋪X軸,平鋪Y軸 (background-repeat:repeat-x;)
D:背景大小(background-size:100% 100%)
背景大小的屬性值的寫法:可以設置具體的大小 200px 200px;(auto 自適應 一般做屬性值)
E:背景位置(background-position:100px 100px;)
整個背景簡寫
4、border 邊框
{border:color ?1px ?dashed ;}
邊框圓角 border radius:200px;后邊的值可以是具體的數字和百分比。
轉載于:https://www.cnblogs.com/diwangkaige/p/9636765.html
總結
以上是生活随笔為你收集整理的H5前期知识点总结 9月12日的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQLAlchemy 操作数据库
- 下一篇: 【目录】《剑指Offer》Java实现