【发布时间】:2015-07-11 10:51:03
【问题描述】:
如何将包装内的形状连续居中。到目前为止,我已经让它们进入了行中,但我无法让它们水平居中。
这是处理该部分的 html 代码:
.wrapper {
overflow: hidden;
/*make sure the wrapper has no dimension*/
margin-bottom: 10px;
margin-left: 25%;
margin-right: 25%;
}
.pMan {
width: 0px;
height: 0px;
border-right: 60px solid transparent;
border-top: 60px solid red;
border-left: 60px solid red;
border-bottom: 60px solid red;
border-top-left-radius: 60px;
border-top-right-radius: 60px;
border-bottom-left-radius: 60px;
border-bottom-right-radius: 60px;
float: left;
}
<div class="wrapper">
<div class="pMan"></div>
<div class="pMan"></div>
<div class="pMan"></div>
</div>
<div id="todoapp" ng-controller="ToDoCtrl">
谢谢:-)
【问题讨论】:
标签: html alignment center css-shapes