Solving the Last Item Problem for a Circular Distribution with Partially Overlapping Items
2017-06-15 14:19
537 查看
原文地址:https://css-tricks.com/solving-last-item-problem-circular-distribution-partially-overlapping-items/
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .item { position: absolute; margin: calc(50vh - 1em) 0 0 calc(50vw - 1em); width: 2em; height: 2em; transform: rotate(var(--a, 0deg)) translate(3em); box-shadow: inset 0 0 0 4px; background: gainsboro; font: 900 2em/ 2em trebuchet ms, tahoma, verdana, sans-serif; text-align: center; } .item:nth-child(2) { --a: 30deg; } .item:nth-child(3) { --a: 60deg; } .item:nth-child(4) { --a: 90deg; } .item:nth-child(5) { --a: 120deg; } .item:nth-child(6) { --a: 150deg; } .item:nth-child(7) { --a: 180deg; } .item:nth-child(8) { --a: 210deg; } .item:nth-child(9) { --a: 240deg; } .item:nth-child(10) { --a: 270deg; } .item:nth-child(11) { --a: 300deg; } .item:nth-child(12) { --a: 330deg; } </style> </head> <body> <div class='item'>0</div> <div class='item'>1</div> <div class='item'>2</div> <div class='item'>3</div> <div class='item'>4</div> <div class='item'>5</div> <div class='item'>6</div> <div class='item'>7</div> <div class='item'>8</div> <div class='item'>9</div> <div class='item'>10</div> <div class='item'>11</div> </body> </html>
相关文章推荐
- Break the list items Inheritance permission and custom the permission with ItemAdded Event
- Post-quantum key exchange for the TLS protocol from the ring learning with errors problem
- Solving the No interfaces problem with Wireshark in Ubuntu
- Fixing "There was a problem with the editor 'vi'" for Git on Mac OS X
- A multiplier of 0 or a nil second item together with a location for the first attribute creates an i
- 44.Your database is functional with a peak load for the last one hour. You want to preserve the perf
- To set the div position(used for DataGrid Imeplate Column with DropDownList item)
- Specified ID:supplyItemLocalDS collides with the ID for an existing SmartGWT component or object.
- 【Stanford机器学习笔记】4-Regularization for Solving the Problem of Overfitting
- There was a problem with the editor 'vi' for Git on Mac OS X
- #400 – 使用ItemsPanel 属性将WrapPanel 作为ListBox的显示面板(Using a WrapPanel as the Items Panel for a ListBox)
- Solving the Problem with Events: Weak Event Handlers
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID(转)
- Visual tool for developers working with the Open XML Formats
- A Problem is Preventing Windows from Accurately Checking the License for this Computer
- 使用ActiveReport for .net 进行报表开发(一)(转自Cure The Last Day Of Summer)
- the DataFormatString not work for the GridView BoundField problem
- It is time for me to continue the contract with company
- the problem with installing ntop on freebsd