Web 利用纯html和css画出一个android机器人

该博客通过一个实例项目展示了如何利用纯HTML和CSS3技术来创建一个Android机器人的图形效果,旨在帮助读者更好地理解和掌握border-radius属性在实现圆角边框方面的应用。

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-lef
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值