나는 아래의 페이지와 같은 페이지를 작성하고, 똑같은 CSS 스타일 코드를 복사하지만, 텍스트 정렬은 무언가 일어난다. http://mp.weixin.qq.com/s?__biz=MjM5ODQwMjA4MA==&mid=2649293603&idx=1&sn=57f38200555dcba76d6358594416c089&scene=1&srcid=0922hwo0hW1YFpZ5km00qu8f#rdcss text-align about :
빨간색 줄이있는 텍스트는 중앙이어야합니다. 나는이 코드를 작성하지 않았다. 내가 쓰는 html 파일의 소스 코드입니다. 여기에 텍스트의
스타일의 코드는 다음과 같습니다
<section style="box-sizing: border-box; background-color: rgb(255, 255, 255);"><section style=" box-sizing: border-box; "><section style=" margin-top: 10px; margin-bottom: 10px; box-sizing: border-box; "><section style="box-sizing: border-box; text-align: center;"><section style="display: inline-block;vertical-align: top;padding: 8px 5px 5px 3px;width: 50%;box-sizing: border-box;border-right: 1px solid #66CCC5;"><section style="box-sizing: border-box;"><section style="margin-top: 0.5em; margin-bottom: 0.5em; box-sizing: border-box;"><section style="box-sizing: border-box;width: 4em;height: 4em;display: inline-block;vertical-align: bottom;border-radius: 100%;background-image: url("http://mmbiz.qpic.cn/mmbiz/xpE6LLZTjLjZbC3icL0gxysDXhDQB9iaUPkFkZTfWxshdqfjuibeO84QQRovVcvYY4yhRLQPHusytjcicic7iav0GNvg/0?wx_fmt=jpeg");background-size: cover;background-position: 50% 50%;background-repeat: no-repeat;" class=""><br></section><p><span style="font-size: 14px;color: rgb(102, 204, 197);line-height: 1.6;">阿禅 Jason Ng</span></p></section></section></section><section style="display: inline-block;vertical-align: top;padding: 6px;width: 50%;box-sizing: border-box;"><section style="box-sizing: border-box; border: 1px solid rgb(102, 204, 197); padding: 8px 5px; width: 120px; color: rgb(102, 204, 197); border-radius: 2px; margin: auto; line-height: 20px; font-size: 14px;"><p>读完本文<br>大约需要</p><section style="font-size: 30px;color:#666;line-height: 38px;">6</section>分钟</section></section></section></section></section></section><
소스 코드 :보기 소스 : http://7rf31y.com1.z0.glb.clouddn.com/index.html 로컬 HTML 파일을 복사하여 붙여 넣을 수를 연 다음, 그것 크롬.
코드 도움말을 찾는 데 도움이되는 질문은 ** [** Stack Snippet **] (https://blog.stackoverflow.com/2014/09/)에서 ** 해당 질문을 ** 재현하는 데 필요한 가장 짧은 코드를 포함해야합니다. introduction-runnable-javascript-css-and-html-code-snippets /)를 사용하십시오. [** 최소, 완전하고 검증 가능한 예제를 만드는 방법 **] 참조 (http://stackoverflow.com/help/mcve) –
@Paulie_D가 일부 코드를 추가했습니다. –