【发布时间】:2015-11-11 21:32:57
【问题描述】:
我在调整服务条款和隐私权时遇到了问题 我页面的注册按钮下的政策消息。
HTML:
<div class="signupterms"> <p>By clicking the sign up button you agree that you read the site's</p> <span><a href="terms.html">Terms of service</a></span><a href="privacy.html">Privacy Policy</a><p>and</p><a href="cookies.html">Cookie use</a>
</div>
CSS:
.signupterms {text-align:left; float:left; display:inline-block;}
.signupterms a {float:left; text-decoration:none; color:#000; }
.signupterms p {float:left; margin-left:4px;}
我尝试将所有元素向左浮动,display:inline-block,但似乎没有任何东西可以完美地对齐单词,尤其是在调整浏览器窗口大小时。这可能是很明显要解决的问题,但我相信你们可以为我指出正确的方向并帮助我解决这个问题。谢谢!
【问题讨论】:
标签: html css css-float text-alignment