.footer p:nth-child(2) {
background-color:blue;
text-align: right;
}
<!--Calling of footer class here-->
<div class="footer">
<p>Copyright © 2015 Jon Chretien. All rights reserved.</p>
<p>Feel free to reach out through <a href="www.dummy.com"> email</a>,<a href="www.dummy.com">Twitter</a>, <a href="#">Github</a>, and <a href="#">LinkedIn</a></p>
</div>
你好,我是网页设计的初学者,目前我正在尝试复制网络进行练习..我有两段,我希望第二段在页脚的右侧对齐我使用n-这个目的的孩子,但是它不起作用...当我将background-color: blue;
应用于该段落然后应用{但是当我申请text-align:right;
时它不起作用时它很奇怪在它上面有什么错误,请帮助我谢谢
答案 0 :(得分:1)
您还可以尝试:nth-child
,这比[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 2.4.1', expected version is '2.5.0' -> [Help 1]