用html画一个企鹅图案的代码,6张思维导图,帮你搞定html、css(css画QQ企鹅)

想要思维导图原图的小伙伴 ,请关注公众账号“码农范er”,输入关键字,“HTML思维导图”,获取文件链接。

先给大家看一张喜欢的图片,缓解下心情,最近敲敲代码累的时候都会看看这几个小活宝,每次都忍不住伸手去摸一下屏幕,可爱到爆,不由自主的就笑了出来。这个是电影《鼠来宝》系列的海报图。不知道有没有人喜欢这几只会唱歌的小活宝。

131232997_1_20180425103613566.jpg

鼠来宝.jpg

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

图片比较大,建议大家看的时候先看下分支,然后点击放大查看具体,如果有Xmind软件的小伙伴也可以私聊我要文件

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

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

131232997_2_20180425103613925.png

基本概括.png

第二张 html常用基本标签

html基本标签

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

131232997_3_20180425103615363.png

HTML标签.png

第三张 CSS的常用属性

主要介绍css的属性

131232997_4_20180425103616613.png

css属性.png

第四张 表格和表单

131232997_5_20180425103618378.png

表格和表单.png

第五张 浮动、定位、overflow

131232997_6_20180425103619113.png

浮动、定位、overflow.png

第六张 补充小知识

131232997_7_20180425103619894.png

小知识.png

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

普通用法不做详细介绍;

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

131232997_8_20180425103620347.jpg

示意图.jpg

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

最后的效果图

131232997_9_20180425103620488.PNG

QQ小企鹅.PNG

html标签部分

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;

}

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

Document

.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;

}

字少,图多,还请想学习的孩子耐心点。

任何时候不要吝啬你的赞美,喜欢就点赞拉~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值