小编And*_*ken的帖子

如何在CSS媒体查询中说"height <width"?

这是我尝试过的代码:

@media screen and (max-height:450px) and (height<width){
    .hero-text-box{
        margin-top:25px !important;
    }
}
Run Code Online (Sandbox Code Playgroud)

html css css3

7
推荐指数
3
解决办法
4474
查看次数

为什么我的最后一个内联块元素被压低了?

这是我的标记:

#siteMap {
  text-align: center;
  background-color: #26AAE1;
  color: white;
}

.mapSection {
  text-align: center;
  width: 32%;
  display: inline-block;
  padding: 0px !important;
  margin: 0 !important;
}

.sectionElem {
  display: block;
  color: white;
}
Run Code Online (Sandbox Code Playgroud)
<div id="siteMap">
  <div class="mapSection">
    <span style="font-size:20px;font-weight:bold;color:#F15A2A !important;">POWER ON</span>
    <a class="sectionElem">Join Now</a>
    <a class="sectionElem">Free Trial</a>
    <a class="sectionElem">Membership</a>
  </div>
  <div class="mapSection">
    <span style="font-size:20px;font-weight:bold;color:#F15A2A !important;">SERVICES</span>
    <a class="sectionElem">Download Our App</a>
    <a class="sectionElem">Refer a Friend</a>
    <a class="sectionElem">Member Login</a>
  </div>
  <div class="mapSection" style="top:0">
    <span style="font-size:20px;font-weight:bold;color:#F15A2A !important;">SUPPORT</span>
    <a class="sectionElem">Map &amp; Directions</a>
    <a class="sectionElem">Contact Us</a>
  </div> …
Run Code Online (Sandbox Code Playgroud)

html css

0
推荐指数
1
解决办法
720
查看次数

标签 统计

css ×2

html ×2

css3 ×1