答案 0 :(得分:1)
你可以这样做:
HTML:
<div class="box">
Text Here
</div>
CSS:
.box {
background: orange;
border-radius: 5px 5px 0px 0px;
text-align: center;
color: white;
padding: 10px;
}
只需调整宽度,目前它的宽度为100%。
Simples。 https://jsfiddle.net/7ank4ueu/