日记首页
|
列表
|
添加日记
|
管理登陆
标题:ASP网页中文字居中
<p style="list-style: none; padding: 0px; margin: 0px 0px 13px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;">文字外层,放个div,div加个样式。</p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;">例如1:</p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;"><div class="text">这里是想要居中的文字</div></p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;">样式表里这样写:</p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;">.text{text-align:center;}</p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;">例如2:</p><p style="list-style: none; padding: 0px; margin: 13px 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;"><div class="text" style=" text-align:center;">这里是想要居中的文字</div>。</p><div><br></div><div class="excellent-qb-divider" style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 18px;"></div>