Android机器人

这个小项目是为了熟悉border-radius 圆角边框

参考文档

border-radius

源代码

<style>.robot{width: 500px;height: 550px;border: 1px solid red;margin: 30px auto;position: relative;}.robot .head{width: 250px;height: 125px;border-top-left-radius: 125px;border-top-right-radius: 125px;background-color: #4cae4c;margin: 10px auto;position: relative;}.robot .eyes{width: 25px;height: 25px;border-radius: 25px;position: absolute;background-color: white;}.robot .eyes-left{top: 70px;left: 55px;}.robot .eyes-right{top: 70px;left: 155px;}.robot .body{width: 250px;height: 270px;background-color: #4cae4c;margin: 0 auto;border-bottom-left-radius: 30px;border-bottom-right-radius: 30px;position: relative;}.robot .leg{width: 20px;height: 120px;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;position: absolute;background-color: #4cae4c;}.robot .leg-left{top: 238px;left: 55px;}.robot .leg-right{top: 238px;left: 175px;}.robot .hand{width: 20px;height: 150px;border-radius: 5px;position: absolute;background-color: #4cae4c;}.robot .hand-left{top: 173px;left: 80px;}.robot .hand-right{top: 173px;left: 395px;}
</style>
<body>
<div class="robot"><div class="hand hand-left"></div><div class="hand hand-right"></div><div class="head"><div class="eyes eyes-left"></div><div class="eyes eyes-right"></div></div><div class="body"><div class="leg leg-left"></div><div class="leg leg-right"></div></div></div>
</body>

Web 利用纯html和css画出一个android机器人相关推荐

  1. 用HTML+CSS画出一个同心圆

    参加web前端校招的同学们经常会遇到这样的面试题:用HTML+CSS画出一个同心圆. 例如: 这道题主要考验的是基础盒模型布局能力和倒圆角属性的巧用. 1.html代码 [html] view pla ...

  2. [css] 用CSS画出一个任意角度的扇形,可以写多种实现的方法

    [css] 用CSS画出一个任意角度的扇形,可以写多种实现的方法 先画一个圆,外加两个绝对定位的半圆 扇形可以通过两个半圆作为遮罩旋转来露出相应的角度实现 这只能切出180°以内的扇形 超过180°的 ...

  3. [css] 使用css画出一个五角星

    [css] 使用css画出一个五角星 #star-five {margin: 50px 0;position: absolute;display: block;color: red;width: 0; ...

  4. [css] 用css画出一个圆圈,里面有个对号

    [css] 用css画出一个圆圈,里面有个对号 #right {width: 150px;height: 150px;margin: 100px auto;border-radius: 50%;bor ...

  5. 用css画出一个圆圈,里面有个叉号(不能用英文字母x)

    用css画出一个圆圈,里面有个叉号(不能用英文字母x) #cyc {width: 150px;height: 150px;margin: 100px auto;border-radius: 50%;b ...

  6. C语言小程序:如何用代码“画”出一个爱心

    利用ASCII编码第三个字符,作为基础,然后利用三个多重循环画出一个爱心出来.要使用控制台改变运行框大小和文字的颜色,黑白的爱心不免有些诡异. #define _CRT_SECURE_NO_WARNI ...

  7. php绘制一个三角形,如何利用css或html5画出一个三角形?两种不同的制作三角形方法(代码实例)...

    我们在平时的前端开发的时候,有时候是需要一些小图形来丰富一下页面效果,比如:下拉列表的倒三角图形.那么这样的一个三角形是如何制作出来的,本章给大家介绍如何利用css或html画出一个三角形?两种不同的 ...

  8. h5画三角形_如何利用css或html5画出一个三角形?两种不同的制作三角形方法(代码实例)...

    我们在平时的前端开发的时候,有时候是需要一些小图形来丰富一下页面效果,比如:下拉列表的倒三角图形.那么这样的一个三角形是如何制作出来的,本章给大家介绍如何利用css或html画出一个三角形?两种不同的 ...

  9. 运用html画一个三角形,利用css或html5画出一个三角形的方法

    利用css或html5画出一个三角形的方法 发布时间:2020-09-14 14:49:22 来源:亿速云 阅读:83 作者:小新 这篇文章主要介绍利用css或html5画出一个三角形的方法,文中介绍 ...

最新文章

  1. proxmox 之 与openstack的比较
  2. WDK开发环境构建驱动程序入门、Windows驱动程序的Check Build和Free Build
  3. Gin加载静态html img文件
  4. python的心得体会200字_python_学习心得
  5. 创建自己的Vagrant box
  6. 程序员利用测试账户套现千万美元,或面临20年监禁
  7. 华为全球注册“hongmeng”商标;库克回应“封杀苹果”;Android Studio 3.5 Beta 4发布 | 极客头条...
  8. python弹出窗口的代码_Python+selenium(7)-弹出窗口的代码封装,PythonSelenium,七,弹窗...
  9. WIN10工具栏里的Ludashi mini 怎么删除 把鲁大师卸载后 发现还有这个,怎么去掉
  10. 耗时两天,Html实现小米官网
  11. 基于Matlab模拟哈特曼波前探测器
  12. 华为软开云2--玩转代码托管
  13. 图解---电脑连接wifi,显示无法连接到这个网络
  14. 粗粒度和细粒度的区别
  15. linux自带视频播放VLC,如何将VLC媒体播放器设置为默认视频播放器?
  16. 阿里云备案流程和操作步骤详解(图文教程)
  17. 【读书笔记】之《月亮与六便士》
  18. 如何从零开始搭建一个网站
  19. UGUI内核大探究(十三)Dropdown
  20. phpenv:PHP多版本安装和管理工具

热门文章

  1. 这又是啥?[babel-plugin-component] If you are using bothon-demand and importing all, make sure to invoke
  2. 计算机考研专硕好考还是学硕好考,考研是学硕难考还是专硕难考?很多人都猜错了...
  3. 建议71:区分异步和多线程应用场景
  4. chirp和tone burst信号激励
  5. termios程序范例
  6. IMU数据仿真公式推导及代码实现
  7. STM32F446新建工程模板遇到的5个问题总结
  8. 【Promise】自定义 - 手写Promise - Promise.all - Promise(executor)
  9. pytorch_lesson13.2 模型拟合度概念介绍+模型欠拟合实例+单隐藏层激活函数性能比较+相同激活函数不同隐藏层数结果对比+神经网络结构选择策略
  10. 梯度下降和正规方程的区别