<html> <head> <title>Draw Hive</title> </head> <style type="text/css"> .hexagon { display: inline; float: left; } #second { margin-left: 4px; } #third { clear: left; margin-left: 54px; margin-top: -28px; } .hiveTop{ width: 0; border: 30px solid #6C6; border-top: none; border-bottom: 30px solid #6C6; border-left: 52px solid transparent; border-right: 52px solid transparent; } .hiveCenter { width: 104px; height: 60px; background-color: #6C6; } .hiveBottom { width: 0; border: 30px solid #6C6; border-bottom: none; border-top: 30px solid #6C6; border-left: 52px solid transparent; border-right: 52px solid transparent; } </style> <body> <div class="hexagon" id="first"> <div class="hiveTop"> </div> <div class="hiveCenter"> </div> <div class="hiveBottom"> </div> </div> <div class="hexagon" id="second"> <div class="hiveTop"> </div> <div class="hiveCenter"> </div> <div class="hiveBottom"> </div> </div> <div class="hexagon" id="third"> <div class="hiveTop"> </div> <div class="hiveCenter"> </div> <div class="hiveBottom"> </div> </div> </body> </html>
XHTMT|
HTML5|
CSS|
HTML DOM|
jQuery|
JSON|
AJAX|
LESS|
HTML|
Bootstrap|
Foundation|
AngularJS|
Ember.js|
TypeScript|
AngularJS2|
React|
jQuery UI|
jQuery EasyUI|
Node.js|
Highcharts|
Echarts|
Vue.js|
CoffeeScript|
Ext.js|
Meteor|
SASS|
Omi|
Markdown|
前端开发规范|
浏览器|
webpack|
JavaScript|
CSS3|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....