复制代码代码如下:
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"></span><pre code_snippet_id="75788" snippet_file_name="blog_20131121_2_1289480" name="code" class="html"><pre code_snippet_id="75788" snippet_file_name="blog_20131121_2_1289480" name="code" class="html"><!DOCTYPE>
<html>
<head></head>
<style type="text/css">
.android{
position: absolute;
left: 500px;
top: 200px;
}
/* head */
.head{
width: 336px;
height: 155px;
background: #a5c63b;
border-radius: 200px 200px 0 0;
position: absolute;
top: -170px;
}
.head:before, .head:after{
background: #a5c63b;
content: '';
width: 10px;
height: 53px;
position: absolute;
top: -30px;
border-radius: 20px 20px 0 0;
}
.head:before{
-webkit-transform: translate(255px, 0px) rotate(30deg);
-moz-transform:translate(255px, 0px) rotate(30deg);
-o-transform:translate(255px, 0px) rotate(30deg);
}
.head:after{
-webkit-transform: translate(63px, 0px) rotate(-30deg);
-moz-transform: translate(63px, 0px) rotate(-30deg);
-o-transform: translate(63px, 0px) rotate(-30deg);
}
/* eyes */
.eyes:before, .eyes:after{
background: #fff;
content: '';
width: 27px;
height: 27px;
top: 68px;
position: absolute;
border-radius: 20px;
}
.eyes:before{
left: 78px;
}
.eyes:after{
right: 78px;
}
/* body */
.body{
width: 336px;
height: 285px;
background: #a5c63b;
border-radius: 0px 0px 30px 30px;
position: absolute;
}
.body:before, .body:after{
background: #a5c63b;
content: '';
width: 75px;
height: 122px;
bottom: -122px;
position: absolute;
border-radius: 0 0 50px 50px;

}
.body:before{
left: 68px;
}
.body:after{
right: 68px;
}
/* arms */
.arms:before, .arms:after{
background: #a5c63b;
content: '';
width: 75px;
height: 233px;
top:-8px;
position: absolute;
border-radius: 40px;
}
.arms:before{
left: -90px;
}
.arms:after{
right: -90px;
}

</style>
<body>
<div class="android">
<div class="head">
<div class="eyes"></div>
</div>
<div class="body">
<div class="arms"></div>
</div>
</div>
</body>
</html></pre>


<pre></pre>
<pre></pre>
<p></p>
<pre></pre>
<pre></pre>
<p></p>
<p>

</p>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>

</pre>

标签:
android机器人

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com

评论“用css写个android机器人代码分享”

暂无“用css写个android机器人代码分享”评论...

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。