6張思維導(dǎo)圖,幫你搞定html、css(css畫QQ企鵝)

先給大家看一張喜歡的圖片,緩解下心情,最近敲敲代碼累的時候都會看看這幾個小活寶,每次都忍不住伸手去摸一下屏幕,可愛到爆,不由自主的就笑了出來。這個是電影《鼠來寶》系列的海報圖。不知道有沒有人喜歡這幾只會唱歌的小活寶。

鼠來寶.jpg

這幾天看了 一下之前整理的html和css的知識點,發(fā)現(xiàn)很多東西都有點忘了,趁此機會,復(fù)習了一下,也重新整理了一下,決定放出來,也給剛?cè)腴T的孩紙們一個參考,之前有簡友說圖片看不清,電腦的話可以點擊放大,或者另存為,放大還是挺清楚的,手機app也可以下載圖片或者放大,其實可以下載下來,地鐵上或者等人的時候,拿出手機看一看,感覺還可以。

圖片比較大,建議大家看的時候先看下分支,然后點擊放大查看具體,如果有Xmind軟件的小伙伴也可以私聊我要文件

第一張 HTML基本結(jié)構(gòu)與css選擇器

主要介紹html的基本結(jié)構(gòu)和css選擇器,話不多說,都在圖里。

基本概括.png

第二張 html常用基本標簽

html基本標簽
已分類,需要注意的部分已標注。看完這一張,還有下一張。

HTML標簽.png

第三張 CSS的常用屬性

主要介紹css的屬性

css屬性.png

第四張 表格和表單

表格和表單.png

第五張 浮動、定位、overflow

浮動、定位、overflow.png

第六張 補充小知識

小知識.png

最后給大家給大家詳細說一下border-radius的用法
普通用法不做詳細介紹;
其實我們設(shè)置border-radius參數(shù)的時候,最多可以設(shè)置8個參數(shù),每個參數(shù)的位置和代指圓角方向已經(jīng)在圖上表明;簡單明了。

示意圖.jpg

下面放一張我主要用 border-radius 畫的一個小企鵝(命名比較low,可以忽略 。
最后的效果圖

QQ小企鵝.PNG

html標簽部分

<div class="qie">
    <!-- 頭部 -->
        <div class="tou">
            <div class="eye_1">
                <div class="eye_1_1"></div>
            </div>
            <div class="eye_2">
                <div class="eye_2_1"></div>
                <div class="eye_2_2"></div>
            </div>
            <div class="zui"></div>
            <div class="tou_2"></div>
        </div>
        <!-- 圍巾 -->
        <div class="weijin">
            <div class="weijin_left"></div>
            <div class="weijin_content"></div>
            <div class="weijin_right"></div>
            <div class="weijin_bottom"></div>
            <div class="weijin_1"></div>
        </div>
        <!-- 身體 -->
        <div class="body">
            <div class="duzi"></div>
            <div class="hand"></div>
            <div class="hand_2"></div>       
        </div>
        <!-- 腳 -->
        <div class="footer"></div>
    </div>

css樣式部分

       .qie{
           margin-left: auto;
           margin-right: auto;
           width: 200px;
       }
       .tou{
           height: 80px;
           width: 120px;
           background-color: #000;
           border-radius: 60px 60px 0px 0px;
           position: relative;
       }
       .eye_1,.eye_2{
           width: 20px;
           height: 30px;
           background-color: #fff;
           border-radius: 10px 10px 10px 10px/15px 15px 15px 15px;

       }
       .eye_1{
           position: absolute;
           left: 35px;
           top: 25px            
       }
       .eye_2{
           position: absolute;
           right:35px;
           top: 25px;               
       }
       .eye_1_1{
           height: 13px;
           width: 10px;
           background-color: #000;
           border-radius: 5px 5px 5px 5px/6px 6px 6px 6px;
           position: absolute;
           left: 9px;
           top:10px;
       }
       .eye_2_1{
           height: 6px;
           width: 15px;
           background-color: #000;
           border-radius: 7px 7px 0px 0px/6px 6px 0px 0px;
           position: absolute;
           left: 2px;
           top: 12px;
       }
       .eye_2_2{
           width: 13px;
           height: 6px;
           background-color: #fff;
           border-radius: 6px 6px 0px 0px/6px 6px 0px 0px;
           position: absolute;
           left: 3px;
           top: 14px;
       }
       .zui{
           height: 20px;
           width: 72px;
           background-color: #ffad00;
           border-radius: 36px 36px 36px 36px/8px 8px 12px 12px;
           position: absolute;
           left: 23px;
           top: 58px;
       }
       .tou_2{
           height: 10px;
           width: 120px;
           background-color: #000;
           position: absolute;
           top: 80px;
           border-radius: 0 0 62px 62px/ 0 0 10px 10px;
           z-index: 3;
       }
       .weijin{
           position: relative;
           z-index: 2;
       }
       .weijin_left{
           height: 0px;
           width: 0px;
           border-style: solid;
           border-width: 10px 5px;
           border-color:  transparent #e91f1f #e91f1f transparent ;
           position: absolute;
           left: -9px;
       }
       .weijin_content{
           height: 20px;
           width: 120px;
           background-color: #e91f1f;
       }
       .weijin_right{
           height: 0px;
           width: 0px;
           border-style: solid;
           border-width: 10px 5px;
           border-color: transparent transparent  #e91f1f #e91f1f ;
           position: absolute;
           left: 120px;
           bottom:0px;
       }
       .weijin_bottom{
           height: 10px;
           width: 140px;
           background-color: #e91f1f;
           border-radius: 0 0 70px 70px/0 0 10px 10px;
           position: absolute;
           left: -10px
       }
       .weijin_1{
           height: 30px;
           width: 24px;
           background-color: #e91f1f;
           position: absolute;
           left: 20px;

       }
       .body{
           height: 85px;
           width: 120px;
           background-color: #000;
           border-radius: 0 0 60px 60px/0 0 50px 50px;
           position: relative;
           z-index: 1
       }
       .duzi{
           height: 78px;
           width: 90px;
           background-color: #fff;
           border-radius: 0 0 45px 45px/0 0 45px 45px;
           position: absolute;
           left: 15px;
       }
       .hand{
           height: 54px;
           width: 20px;
           background-color:#000;
           z-index: 4px;
           position: absolute;
           left: -18px;
           top: -4px;
           border-radius: 18px 0px 18px 2px/52px 0px 28px 2px ;
       }
       .hand_2{
           height: 54px;
           width: 20px;
           background-color:#000;
           z-index: 4px;
           position: absolute;
           right: -18px;
           top: -4px;
           border-radius:0px 18px 2px 18px / 0px 52px 2px 28px            
       }   
       .footer{
           height: 16px;
           width: 120px;
           background-color: #fcb117;
           border-radius: 40px 40px 3px 3px/13px 13px 2px 2px;
           position: relative;
           bottom: 16px;
       }

如果看的不舒服,合在一起給你看

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        .qie{
            margin-left: auto;
            margin-right: auto;
            width: 200px;
        }
        .tou{
            height: 80px;
            width: 120px;
            background-color: #000;
            border-radius: 60px 60px 0px 0px;
            position: relative;
        }
        .eye_1,.eye_2{
            width: 20px;
            height: 30px;
            background-color: #fff;
            border-radius: 10px 10px 10px 10px/15px 15px 15px 15px;

        }
        .eye_1{
            position: absolute;
            left: 35px;
            top: 25px            
        }
        .eye_2{
            position: absolute;
            right:35px;
            top: 25px;               
        }
        .eye_1_1{
            height: 13px;
            width: 10px;
            background-color: #000;
            border-radius: 5px 5px 5px 5px/6px 6px 6px 6px;
            position: absolute;
            left: 9px;
            top:10px;
        }
        .eye_2_1{
            height: 6px;
            width: 15px;
            background-color: #000;
            border-radius: 7px 7px 0px 0px/6px 6px 0px 0px;
            position: absolute;
            left: 2px;
            top: 12px;
        }
        .eye_2_2{
            width: 13px;
            height: 6px;
            background-color: #fff;
            border-radius: 6px 6px 0px 0px/6px 6px 0px 0px;
            position: absolute;
            left: 3px;
            top: 14px;
        }
        .zui{
            height: 20px;
            width: 72px;
            background-color: #ffad00;
            border-radius: 36px 36px 36px 36px/8px 8px 12px 12px;
            position: absolute;
            left: 23px;
            top: 58px;
        }
        .tou_2{
            height: 10px;
            width: 120px;
            background-color: #000;
            position: absolute;
            top: 80px;
            border-radius: 0 0 62px 62px/ 0 0 10px 10px;
            z-index: 3;
        }
        .weijin{
            position: relative;
            z-index: 2;
        }
        .weijin_left{
            height: 0px;
            width: 0px;
            border-style: solid;
            border-width: 10px 5px;
            border-color:  transparent #e91f1f #e91f1f transparent ;
            position: absolute;
            left: -9px;
        }
        .weijin_content{
            height: 20px;
            width: 120px;
            background-color: #e91f1f;
        }
        .weijin_right{
            height: 0px;
            width: 0px;
            border-style: solid;
            border-width: 10px 5px;
            border-color: transparent transparent  #e91f1f #e91f1f ;
            position: absolute;
            left: 120px;
            bottom:0px;
        }
        .weijin_bottom{
            height: 10px;
            width: 140px;
            background-color: #e91f1f;
            border-radius: 0 0 70px 70px/0 0 10px 10px;
            position: absolute;
            left: -10px
        }
        .weijin_1{
            height: 30px;
            width: 24px;
            background-color: #e91f1f;
            position: absolute;
            left: 20px;

        }
        .body{
            height: 85px;
            width: 120px;
            background-color: #000;
            border-radius: 0 0 60px 60px/0 0 50px 50px;
            position: relative;
            z-index: 1
        }
        .duzi{
            height: 78px;
            width: 90px;
            background-color: #fff;
            border-radius: 0 0 45px 45px/0 0 45px 45px;
            position: absolute;
            left: 15px;
        }
        .hand{
            height: 54px;
            width: 20px;
            background-color:#000;
            z-index: 4px;
            position: absolute;
            left: -18px;
            top: -4px;
            border-radius: 18px 0px 18px 2px/52px 0px 28px 2px ;
        }
        .hand_2{
            height: 54px;
            width: 20px;
            background-color:#000;
            z-index: 4px;
            position: absolute;
            right: -18px;
            top: -4px;
            border-radius:0px 18px 2px 18px / 0px 52px 2px 28px            
        }   
        .footer{
            height: 16px;
            width: 120px;
            background-color: #fcb117;
            border-radius: 40px 40px 3px 3px/13px 13px 2px 2px;
            position: relative;
            bottom: 16px;

        }
    </style>
</head>
<body>
    <div class="qie">
    <!-- 頭部 -->
        <div class="tou">
            <div class="eye_1">
                <div class="eye_1_1"></div>
            </div>
            <div class="eye_2">
                <div class="eye_2_1"></div>
                <div class="eye_2_2"></div>
            </div>
            <div class="zui"></div>
            <div class="tou_2"></div>
        </div>
        <!-- 圍巾 -->
        <div class="weijin">
            <div class="weijin_left"></div>
            <div class="weijin_content"></div>
            <div class="weijin_right"></div>
            <div class="weijin_bottom"></div>
            <div class="weijin_1"></div>
        </div>
        <!-- 身體 -->
        <div class="body">
            <div class="duzi"></div>
            <div class="hand"></div>
            <div class="hand_2"></div>       
        </div>
        <!-- 腳 -->
        <div class="footer"></div>
    </div>
</body>
</html>

字少,圖多,還請想學(xué)習的孩子耐心點。

任何時候不要吝嗇你的贊美,喜歡就點贊拉~

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 問答題47 /72 常見瀏覽器兼容性問題與解決方案? 參考答案 (1)瀏覽器兼容問題一:不同瀏覽器的標簽?zāi)J的外補...
    _Yfling閱讀 14,189評論 1 92
  • 轉(zhuǎn)載請聲明 原文鏈接地址 關(guān)注公眾號獲取更多資訊 第一部分 HTML 第一章 職業(yè)規(guī)劃和前景 職業(yè)方向規(guī)劃定位...
    前端進階之旅閱讀 16,913評論 32 459
  • 今天又畫了青椒 比原來有了很大的進步。 只是投影畫得太死板, 下次加油!
    橙兮兮閱讀 672評論 3 2
  • 畢竟不是超人,允許自己慫一慫 今天狀態(tài)down下來了。下午去到圖書館嫌太熱就跑到了一間課室里,看著圖像處理的書敲了...
    阿錚OnMyWay閱讀 586評論 0 0
  • 作者:雪漠 任何事物都會經(jīng)過成、住、壞、空四個階段,也就是說,事物生成以后,會先安住一段時間,然后開始腐化、壞滅、...
    陽焱焱閱讀 1,217評論 4 2

友情鏈接更多精彩內(nèi)容