6张思维导图,帮你搞定html、css

姓名 连嘉玮 学号 16040120089

转自:http://www.jianshu.com/p/19cd9400a917?utm_campaign=hugo&utm_medium=reader_share&utm_content=note&utm_source=qq

有删节

【嵌牛导读】:html、css

【嵌牛鼻子】:基本结构、选择器

【嵌牛提问】:有什么需要学习的?

【嵌牛正文】:

这几天看了 一下之前整理的html和css的知识点,发现很多东西都有点忘了,趁此机会,复习了一下,也重新整理了一下,决定放出来,也给刚入门的孩纸们一个参考,之前有简友说图片看不清,电脑的话可以点击放大,或者另存为,放大还是挺清楚的,手机app也可以下载图片或者放大,其实可以下载下来,地铁上或者等人的时候,拿出手机看一看,感觉还可以。

第一张 HTML基本结构与css选择器

主要介绍html的基本结构和css选择器,话不多说,都在图里。

第二张 html常用基本标签

已分类,需要注意的部分已标注。看完这一张,还有下一张。

第三张 CSS的常用属性

主要介绍css的属性

第四张 表格和表单

第五张 浮动、定位、overflow

浮动、定位、overflow.png

第六张 补充小知识

最后给大家给大家详细说一下border-radius的用法

普通用法不做详细介绍;

其实我们设置border-radius参数的时候,最多可以设置8个参数,每个参数的位置和代指圆角方向已经在图上表明;简单明了。

下面放一张我主要用 border-radius 画的一个小企鹅(命名比较low,可以忽略 。)

最后的效果图

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>

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 200,667评论 5 472
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,361评论 2 377
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 147,700评论 0 333
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,027评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,988评论 5 361
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,230评论 1 277
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,705评论 3 393
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,366评论 0 255
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,496评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,405评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,453评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,126评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,725评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,803评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,015评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,514评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,111评论 2 341

推荐阅读更多精彩内容

  • 各种纯css图标 CSS3可以实现很多漂亮的图形,我收集了32种图形,在下面列出。直接用CSS3画出这些图形,要比...
    剑残阅读 9,419评论 0 8
  • 1、垂直对齐 如果你用CSS,则你会有困惑:我该怎么垂直对齐容器中的元素?现在,利用CSS3的Transform,...
    kiddings阅读 3,147评论 0 11
  • 1. tab列表折叠效果 html: 能源系统事业部 岗位名称: 工作地点 岗位名...
    lilyping阅读 1,817评论 0 1
  • 星辰渐显,呼声已消, 数时数日已然不于心, 过往如昨夜那扑腾的小腿, 慢慢, 只印那帘。 不恨不怪不唏嘘, 无常也...
    生而摆渡却为死阅读 144评论 0 1
  • 我在行这条路,必将孤独的行向终点。 却留恋半路的风景。紧紧不想松手。 风景是你,我也是你的风景。 本该在阳光灿烂里...
    云游大师阅读 144评论 0 1