html纵向文本,html – 垂直对齐css圈中多行的文本 -尊龙游戏旗舰厅官网
尊龙游戏旗舰厅官网
收集整理的这篇文章主要介绍了
html纵向文本,html – 垂直对齐css圈中多行的文本
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
我创建了一个包含文本的圆圈,文本需要始终居中.很简单,我已经找到了很多例子,例如使用line-height在一行中使用单词.
我的问题是文本有时会包含一行,有时是两行,有时是三行,我无法让它工作.
有任何想法吗?
i’ve created a fiddle here with three examples.
html:
loremlorem ipsumlorem ipsum dolorcss:
.container{
position: relative;
width: 70px;
display: inline-block;
}
.splash {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
height: 70px;
width: 70px;
background: green;
color: white;
position: absolute;
overflow: hidden;
display: table-cell;
text-align: center;
vertical-align: middle;
transform: rotate(15deg);
-ms-transform: rotate(15deg);
-webkit-transform: rotate(15deg);
}
总结
以上是尊龙游戏旗舰厅官网为你收集整理的html纵向文本,html – 垂直对齐css圈中多行的文本的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
- 下一篇: