用css3写一个iPhone手机案例
来源:互联网 发布:mac玩lol分辨率 编辑:程序博客网 时间:2024/05/17 03:17
<!DOCTYPE html><html><head> <meta charset="UTF-8" /> <title>Document</title> <style type="text/css"> body{ background:#ccc; } .iphone{ width: 300px; height: 600px; background: #2b2b2b; margin:30px auto; border-radius: 50px; border:10px solid #3b3b3b; box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.5); position: relative; } .iphone::before{ content: ""; position: absolute; top:-18px; right:50px; width: 60px; height: 8px; background: #2b2b2b; border-radius: 3px 3px 0 0; } .iphone::after{ content: ""; position: absolute; top:80px; left:-18px; width: 8px; height: 50px; background: #2b2b2b; border-radius: 3px 0 0 3px; } .light{ width: 5px; height: 5px; border-radius: 50%; background:#1a1a1a; border:3px solid #4a4a4a; margin:30px auto 0; } .tt{ width: 60px; height: 6px; border:3px solid #4a4a4a; border-radius: 6px; margin:10px auto 30px; } .screen{ width: 260px; height: 430px; background: #4a4a4a; margin:0 auto; box-shadow: 0 0 0 5px #1a1a1a inset; } .home{ width: 50px; height: 50px; background: #1a1a1a; border-radius: 50%; margin:15px auto; position: relative; } .home::before{ content:""; position: absolute; top:50%; left:50%; margin-left:-15px; margin-top:-15px; border-radius: 3px; width: 28px; height: 28px; border: 1px solid #fff; } </style></head><body> <div class="iphone"> <div class="light"></div> <div class="tt"></div> <div class="screen"></div> <div class="home"></div> </div></body></html>
0 0
- 用css3写一个iPhone手机案例
- 用css3写的loading效果一个
- CSS3写的一个按钮
- 纯CSS3制作逼真的iphone 6手机模型
- HTML5+CSS3+JS学习笔记-9-制作iphone手机模型
- 用css3 transtion写动画
- 用CSS3写动态导航
- java-写一个死锁的案例
- 案例三 、自己写一个轮播图
- 案例五 、利用jQuery写一个弹幕
- unity iPhone和android手机 可读写目录
- 用CSS3写的一个简单分页样式(兼容ie9及以上)
- 最近写一个手机3D游戏
- 用JavaScript写iPhone计算器
- 用91手机助手,两步把自己在xcode里面写的程序安装到iphone上。
- CSS3 animation--写一个简单的loading动画
- 如何用Html+css3写一个简单的网页
- 用DatePicker和TimePicker写的一个日历时间选择案例
- 101. Symmetric Tree
- 日期函数的使用(swift)
- IOS链接报错问题- Duplicate Symbol链接错的原因总结和解决方法
- 正则表达式
- Matika版OpenStack伪生产环境部署-Neutron
- 用css3写一个iPhone手机案例
- xml解析之GData
- LeetCode 038 Count and Say
- MySql使用命令行登录
- HDU 4067 Random Maze (最小费用最大流)
- hard link vs soft link
- Android selector item 属性大全
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- C/C++ const 用法