- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我无法得到图像来回应媒体询问。我知道查询路径有效,当我使用 display: none
属性时,图像消失了。
我想做的是在较小的屏幕尺寸下“取消 float ”图像,使其位于标题文本下方。
我无法让 float: none
属性在媒体查询中工作。
这是 HTML 中的图片
<header class="headercontainer">
<img src="img/MR.jpg" class="profile-photo">
<p>30 years experience in Metro-Detroit law</p>
<h1>Marcia Ross</h1>
</header>
.headercontainer .profile-photo {
/*display: block; Will allow us to use auto margins to center the element*/
max-width: 150px;
margin: 0 25% 30px -150px;
/* Here is from above, margin auto technique to center the image the img is actually defaulted inline display */
border-radius: 100%;
float: right;
}
.headercontainer .profile-photo {
/*display: block; Will allow us to use auto margins to center the element*/
max-width: 150px;
margin: 0 25% 30px -150px;
/* Here is from above, margin auto technique to center the image the img is actually defaulted inline display */
border-radius: 100%;
float: right;
}
@media screen and (max-width: 943px) {
.bragbanner {
display: none;
}
.headercontainer img {
float: none;
display: inline-block;
text-align: center;
}
}
最佳答案
您的媒体查询选择器正在被上面的选择器覆盖
.headercontainer .profile-photo
您必须在媒体查询选择器中更加具体,例如:
.profile-photo
关于css - float : none in a media inquiry not functioning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33744629/
我很好奇,当一个人继续使用 Instruments 执行泄漏检查代码时,手动点击应用程序的所有部分以确保相应区域发生内存泄漏是否明智?例如,我相信我的应用程序中存在一些内存泄漏,位于 UINaviga
我有一个带有 UIView 的 NIB 文件、几个 UIImageView(包括 Logo )和 UITableView 嵌入在 Logo 下方的 UIView 中,我允许用户输入用户名/密码来登录我
我无法得到图像来回应媒体询问。我知道查询路径有效,当我使用 display: none 属性时,图像消失了。 我想做的是在较小的屏幕尺寸下“取消 float ”图像,使其位于标题文本下方。 我无法让
ANSWERED! I posted an answer with code that I modified from Arbitur. Thanks to Phillip as well for t
我对 cosmos-db 索引策略和隐式全扫描感到困惑。 我的最终目标是: 防止对非索引属性进行意外全面扫描 仅对明确指定的属性建立索引 假设我有一张这样的 table : { "id": "tr
我对 cosmos-db 索引策略和隐式全扫描感到困惑。 我的最终目标是: 防止对非索引属性进行意外全面扫描 仅对明确指定的属性建立索引 假设我有一张这样的 table : { "id": "tr
我在下面的博客链接中给出了矩阵转置的示例,下面的链接显示了如何使用 3 种方法进行转置矩阵,naive、Coalesced 和 Nobankconflict Coalesced https://git
我在理解express.js路线时遇到了一些麻烦 如果我设置开箱即用的 hello world 应用程序,我将获得带有单个路由的基本设置 app.get('/', routes.home); 正如在e
我的任务是通过 BACnet TCP/IP 从 Trane Tracer summitBCU 通信和读取 BACnet 对象及其属性的列表。但是,我不知道哪些 BACnet 服务可以从 BCU 获取
我是一名优秀的程序员,十分优秀!