给大家看一张喜欢的图片,缓解下心情,最近敲敲代码累的时候都会看看这几个小活宝,每次都忍不住伸手去摸一下屏幕,可爱到爆,不由自主的就笑了出来。这个是电影《鼠来宝》系列的海报图。不知道有没有人喜欢这几只会唱歌的小活宝。
这几天看了 一下之前整理的html和css的知识点,发现很多东西都有点忘了,趁此机会,复习了一下,也重新整理了一下,决定放出来,也给刚入门的孩纸们一个参考,之前有简友说图片看不清,电脑的话可以点击放大,或者另存为,放大还是挺清楚的,手机app也可以下载图片或者放大,其实可以下载下来,地铁上或者等人的时候,拿出手机看一看,感觉还可以。
第一张 HTML基本结构与css选择器
主要介绍html的基本结构和css选择器,话不多说,都在图里。
基本概括.png
第二张 html常用基本标签
html基本标签
已分类,需要注意的部分已标注。看完这一张,还有下一张。
HTML标签.png
第三张 CSS的常用属性
主要介绍css的属性
css属性.png
第四张 表格和表单
表格和表单.png
第五张 浮动、定位、overflow
浮动、定位、overflow.png
第六张 补充小知识
小知识.png
最后给大家给大家详细说一下border-radius的用法
普通用法不做详细介绍;
其实我们设置border-radius参数的时候,最多可以设置8个参数,每个参数的位置和代指圆角方向已经在图上表明;简单明了。
示意图.jp
下面放一张我主要用 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>
字少,图多,还请想学习的朋友们耐心点。
虽然我不是什么大神,但是我还是想把我知道的都分享出来让大家学习
有喜欢的可以点个关注支持我一下哦,想一起学习的可以看一下我的微头条里面有一个技术群
近用CSS设计LOGO上瘾了,前两天分享了《教你使用纯CSS设计HTML5新LOGO》和《教你使用CSS3设计Opera浏览器LOGO》,今天在微博上看到有新浪的朋友用CSS3实现的新浪微博LOGO(如下图所示),一时手痒,就顺手也用CSS3实现了一个QQ的LOGO。
?
目前只支持Chrome观看,效果如下图所示:
主要用到的CSS3属性如下所示:
1、border-radius
CSS3中应用最普遍的属性,用于设置边框圆角,可以采用border-top-left-radius的方式单独设置每个圆角,并可以设置。
1)例如要实现1个圆,可以使用如下代码:
width: 240px;
height: 240px;
-webkit-border-radius: 120px;
效果如下图所示:
2)要实现1/4个圆,可以用如下代码:
width: 240px;
height: 240px;
-webkit-border-bottom-left-radius: 240px 240px;
效果如下图所示:
3)要实现1/8个圆,可以用如下代码:
border-top: 240px solid #2ec8e9;
-webkit-border-top-left-radius: 240px;
width: 240px;
2、-webkit-transform
主要使用了rotate旋转属性,可以控制元素向左向右旋转。下图里的箭头就是用-webkit-transform:rotate属性实现的。顺便提一句scale缩放属性里如果值为-1,也是有旋转效果的。
3、-webkit-box-shadow
盒阴影,可以设置元素的阴影。如上图所示。
4、RGBA
RGBA也是CSS3中非常实用和强大的一个功能,以前所有使用RGB HTML的地方都可以使用RGBA的格式来设置透明度。例如QQ浏览器的九宫格可以做成如下显示方式:
这就是采用RGBA的透明效果实现的,具体实现方式可以参考《浏览器九宫格的简单实现》一文。
用CSS打造QQ标志设计教程分享完成,那么,你会了吗?不会也没关系,用logofree商标在线制作器也可以直接生成类似LOGO,如果生成的标志还不满意,那LOGO高端定制是您的最佳选择。
转载:http://www.logofree.cn/news/shejizhishixuexi/css3qqlogo.html
虎Q绑查询工具是一款QQ账号信息查询工具,用户能够通过输入QQ账号或者手机号码进行查询,可查找到其绑定的账号。软件有着简便的操作界面,只需几个简单的步骤即可完成号码的查询,并且软件为绿色版本,无需用户进行安装,解压之后便可立即使用。
来源:http://www.3h3.com/soft/271811.html
1.提供最新查询接口可供选择。
2.支持通过手机号来查询绑定的QQ号码。
3.支持通过QQ号码来查询绑定的手机号。
输入查询的手机号或者是QQ号码,然后选择查询接口,在点击查询功能就可以进行查询了。
查询出来的结果可以支持复制。
*请认真填写需求信息,我们会在24小时内与您取得联系。