首页 分享 html学习笔记

html学习笔记

来源:萌宠菠菠乐园 时间:2026-04-26 15:05

最新推荐文章于 2026-04-22 10:42:04 发布

原创 于 2022-05-14 21:52:19 发布 · 1.4k 阅读

· 0

· 1 ·

CC 4.0 BY-SA版权

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

效果图

练习 代码

.face { width: 600px; height: 320px; background: #FEE443; position: relative; } .eye { width: 60px; height: 60px; border-radius: 100%; background: #222; position: absolute; } .eye-l? { left: 105px; top: 100px; } .eye-r? { right: 105px; top: 100px; } .eye?.bright { width: 30px; height: 30px; position: absolute; background: #fff; border-radius: 50%; } .norse? { width: 0px; height: 0px; border: 18 px?solid #000; border-radius: 50%; transform: translateX(-50%); left: 50%; top: 52%; border-color: #000? #a9505000?transparent; position: absolute; } .lip-l? { width: 50px; height: 50px; border: 4 px?solid #000; position: absolute; background: red; border-radius: 50%; top: 66%; left: 10%; } .lip-r? { width: 50px; height: 50px; border: 4 px?solid #000; position: absolute; background: red; border-radius: 50%; top: 66%; right: 10%; } .mouth { overflow: hidden; width: 150px; height: 60px; background: transparent; position: absolute; left: 50%; bottom: 10%; margin-left: -68px; } .mouth?.a? { top: -30px; position: absolute; width: 60px; height: 60px; border: 6 px?solid #222; border-radius: 50%; } .mouth?.b? { top: -30px; position: absolute; left: 65px; width: 60px; height: 60px; border: 6 px?solid #222; border-radius: 50%; }

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596

html:

主要还是绝对定位还有圆角属性,比较基础,不喜勿喷。

相关知识

javascript学习笔记——如何修改url name
【html网页设计】
【简单html静态网页代码】 制作一个简单HTML宠物网页(HTML CSS)
机器学习笔记
html初学者入门教程
HTML做一个简单漂亮的宠物网页(纯html代码)
【HTML期末学生大作业】 制作一个简单HTML宠物网页(HTML+CSS)
制作一个简单HTML宠物猫网页(HTML+CSS)
【简单html静态网页代码】 制作一个简单HTML宠物网页(HTML+CSS)
#学习笔记# 最有...

网址: html学习笔记 https://www.mcbbbk.com/newsview1368133.html

所属分类:萌宠日常
上一篇: 宠物皮卡丘APP下载安装
下一篇: 口袋妖怪漆黑的魅影皮卡丘技能搭配

推荐分享