怎么標簽里字的居中??!
ol>li:nth-child(2n+1){
background:#896;
width:60px;
height:60px;
font:italic 20px "songti";
text-shadow:1px 2px 0 green;
text-align:center;
border-radius:4px;
margin:0 auto;
}
ol>li:nth-child(2n+1){
background:#896;
width:60px;
height:60px;
font:italic 20px "songti";
text-shadow:1px 2px 0 green;
text-align:center;
border-radius:4px;
margin:0 auto;
}
2016-08-23
但是還是沒有達到預期的效果---上下左右都居中。
text-align:center字體居中
舉報
2016-10-27
添加一行:l