简体   繁体   English

排号 <p> 标签使用CSS

[英]Arranging <p> tag using css

I am using Wordpress and ran into an issue where the captcha is being positioned below the login button and kind of out of sight. 我正在使用Wordpress并遇到一个问题,其中验证码位于登录按钮下方并且看不见。

This is my code I want to move the bottom p tag to the top using css. 这是我的代码我想使用css将底部p标签移动到顶部。

<div>
    <p>login button</p>
    <p>forget password link</p>
    <p>register link</p>
    <p>captcha button<p>
</div>

We probably need a lot more information about the layout to help out, but assuming you can't change the HTML at all, what you can do is make the container <div> position: relative and use position: absolute; bottom: 100% 我们可能需要更多有关布局的信息来帮助,但假设您根本无法更改HTML,您可以做的是使容器<div> position: relative和use position: absolute; bottom: 100% position: absolute; bottom: 100% on the captcha element to have it appear at the top. position: absolute; bottom: 100%码元素上position: absolute; bottom: 100%使其显示在顶部。

http://jsfiddle.net/L5vER/ http://jsfiddle.net/L5vER/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM