简体   繁体   English

响应式HTML / CSS在表单下发送文本

[英]Responsive HTML/CSS to Send Text Below Form

I am working on creating a responsive log in page. 我正在创建一个响应式登录页面。 I have section of text in a table to provide some quick information for users prior to them logging in. The problem is that when the screen/window size gets smaller, the log in form overlaps/covers the text. 我在表中的文本部分为用户登录之前提供了一些快速信息。问题是,当屏幕/窗口大小变小时,登录表单会覆盖/覆盖文本。 I would like for the text to move down below the login form when the screen shrinks, but I am not exactly sure how to do that. 当屏幕缩小时,我希望文本在登录表单下方移动,但是我不确定如何执行此操作。 I was able to get the logo image at the top and the links menu to respond to size changes using "max-width" CSS properties, but cannot figure out how to move something to another part of the page. 我可以在顶部获得徽标图像,并可以使用“最大宽度” CSS属性在顶部的链接菜单中响应大小更改,但无法弄清楚如何将某些内容移动到页面的另一部分。 The HTML/CSS that I am working with is pasted below and I have attached a screenshot from my phone showing the overlap issue. 我正在使用的HTML / CSS粘贴在下面,我还附上了手机屏幕截图,显示了重叠问题。 I know the HTML/CSS isn't ideal, but I am having to do this in a very limited editor. 我知道HTML / CSS并不理想,但是我必须在非常有限的编辑器中执行此操作。 Any help is much appreciated. 任何帮助深表感谢。

<p><img src="https://www.westga.edu/uwgonline/assets-uwgonline/pics/CourseDen.png" style="z-index: -1; margin: 0% 1.5%; max-width: 1100px; width: 90%; position: absolute; height: auto;" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table style="z-index: -1; opacity: 0.85; max-width: 100%; width: 50%; left: 35%; top: 380px; position: absolute;">
    <tbody>
        <tr>
            <td style="padding: 20px; background: #FFFFFF;">
                <p>
                    <span style="color: #000000;">
                    <span style="color: #000000;">
                        <em>Please note your password is the same as your <strong>UWG ID</strong> and is case sensitive.</em>
                    </span>
                    </span>
                </p>
                <strong><span style="color: #000000;">UWG Online Help Desk</span></strong>
                <br />
                <span style="color: #000000;">(M-F 8a-5p ET) 678-839-6248 or 1-855-933-8946</span>
                <br /><a href="mailto:online@westga.edu">online@westga.edu</a> &bull; <a rel="noopener noreferrer" href="http://uwgonline.westga.edu/uwgonline/chat-with-us.php" target="_blank">Chat</a>
                <p><strong><span style="color: #000000;">24/7/365 D2L Help Center</span></strong>
                    <br /><span style="color: #000000;">Knowledge Base &amp; Live Support</span>
                    <br /><a rel="noopener noreferrer" href="https://D2Lhelp.view.usg.edu" target="_blank">https://D2Lhelp.view.usg.edu</a></p>
            </td>
        </tr>
    </tbody>
</table>
<hr />
<table style="max-width: 100%; width: 99%; text-align: center; border: none; border-collapse: collapse;">
    <tbody>
        <tr>
            <td style="width: 20%;"><a href="https://uwgonline.westga.edu/uwg-online-contact-us.php" target="blank" style="color: #777777;">Help</a></td>
            <td style="width: 20%; border-left: 1px solid #D3D3D3;"><a href="https://uwgonline.westga.edu/uwg-online-student-help.php" target="blank" style="color: #777777;"> Resources </a></td>
            <td style="width: 20%; border-left: 1px solid #D3D3D3;"><a href="http://uwgonline.westga.edu/" target="blank" style="color: #777777;"> More Info</a></td>
            <td style="width: 20%; border-left: 1px solid #D3D3D3;"><a href="https://westga.view.usg.edu/d2l/systemCheck" target="blank" style="color: #777777;"> System Checker</a></td>
            <td style="width: 20%; border-left: 1px solid #D3D3D3;"><a href="https://go.view.usg.edu/" target="blank" style="color: #777777;"> eCampus, WebMBA, &amp; EU</a></td>
        </tr>
    </tbody>
</table>
<hr />

在此处输入图片说明

The answer to my problem was to take the text that is getting stuck behind the login box and remove it's position: absolute . 我的问题的答案是,将卡在登录框后面的文本移开并删除其position: absolute This put the login box below it. 这会将登录框置于其下方。 What we really wanted was the login box to the left of the text and only moved down below it when a screen/window was under a certain size, but because I cannot edit the login box, this is the solution that we decided was going to be the best for what we had access to edit. 我们真正想要的是文本左侧的登录框,仅当屏幕/窗口小于一定大小时才向下移动至其下方,但是由于我无法编辑登录框,因此我们决定采用这种解决方案成为我们可以编辑的最佳内容。 That you @Sirence for mentioning the position: absolute information in your comment! @Sirence提到的position: absolute您评论中的position: absolute信息!

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

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