html - 向右浮动在媒体查询中不起作用?

标签 html css

使用媒体查询时似乎 float 不起作用..

这里是 HTML:

<div id="mpass">
<span onclick="fpass()"><a href="#" class="fpassword">forgot Password?</a></span>
<p class="change_link">Not a member yet?<a onclick="empty()" href="#toregister" class="to_register">Join us</a></p></div>

忘记密码不正确,

这是CSS:

.fpassword { font-size: 90%; white-space: nowrap; display: inline-table; float: right!important; padding: 0 0 0 0; top: 60%; margin: 10% 0 0 0;}
#mpass { float: right!important; display: inline-table;}

请建议我对齐“忘记密码?”在页面右侧???

最佳答案

# 添加到 mpass { ... }

例子:

#mpass { float: right!important;显示:内联表;

关于html - 向右浮动在媒体查询中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22683129/

相关文章:

html - 如何在我的元素中只导入一次 JS 和 CSS 文件?

javascript - 处理 html 中的文本 : associating attributes to sentences

css - 为什么我的 Twitter Bootstrap 导航栏一直在移动?

html - 图标字体链接图标在 iphone 上无法点击

html - CSS 拉伸(stretch)侧边栏到页面的 100%。当窗口调整大小或内容太大时中断

html - 基于页面的 Bootstrap 输入发光有不同的颜色

html - CSS 溢出 :hidden hiding a list's bullets?

html - IE 9 忽略页面上最后一个元素的底部边距

asp.net - 链接到 aspx 页面的 CSS 未在 Firefox 中加载

jquery - 我需要使用 jQuery 将一个 div 替换为另一个 div