css 将第二行列表项与第一行对齐

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 将第二行列表项与第一行对齐相关的知识,希望对你有一定的参考价值。

ul.disc-aligned {
	display: table;
	padding-left:20px;
}

ul.disc-aligned > li {
  margin-bottom: 5px;
}

ul.disc-aligned > li::before {
	display: table-cell;
	text-align: right;
}

以上是关于css 将第二行列表项与第一行对齐的主要内容,如果未能解决你的问题,请参考以下文章