先上图,看看是否是你需要的……
html
<div class="name">木鹿大王</div>
css
.name{
position: absolute;
top:0;
right:0;
height:100%;
width:16px;
background-color: #7092be;
color:#fff;
font-size: 12px;
line-height: 12px;
text-align: center;
writing-mode: vertical-lr;
box-sizing: border-box;
padding:0 0 0 2px;
letter-spacing:0.3em;
}