标签:sans center absolute imp 插入 base orm ott web
1 | < div style = "text-align:center;" >我是文本,我想要居中显示</ div > |
1 | < div style = "width:500px;margin:0 auto;" >我是定宽块状元素,我要水平居中显示</ div > |
1 2 3 4 5 | < div style = "text-align:center;" > < ul style = "list-style:none;margin:0;padding:0;display:inline;" > < li style = "margin-right:8px;display:inline;" >< a href = "#" >1</ a ></ li > </ ul > </ div > |
1 | < div style = "height:100px;line-height:100px;background:#999;" >hi,imooc!</ div > |
1 2 3 4 5 | < table >< tbody >< tr >< td class = "wrap" > < div > < p >看我是否可以居中。</ p > </ div > </ td ></ tr ></ tbody ></ table > |
1 2 3 4 5 6 | < div style = "height:300px;display:table-cell;vartical-align:middle;" > < div > < p >看我是否可以居中</ p > < p >看我是否可以居中</ p > </ div > </ div > |
1 2 3 | < div > < a href = "#" style = "position:absolute;width:200px;background:#ccc;" >进入课程</ a > </ div > |
标签:sans center absolute imp 插入 base orm ott web
原文地址:https://www.cnblogs.com/lhsaq2009/p/9043592.html