RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题 / 1071738
Accepted
Скалетта
Скалетта
Asked:2020-01-19 21:55:56 +0000 UTC2020-01-19 21:55:56 +0000 UTC 2020-01-19 21:55:56 +0000 UTC

@媒体不工作

  • 772

大家好!这可以说是我在改编网站过程中的耙子的延续:)总的来说,我改编了一页,一切都很痛苦。我翻到第二页。规定 @media all and (max-width: 1920px) and (min-width: 1601px){}在第一页上效果很好。我在里面写样式。他们不适用。检查器中没有@media。而且我不知道该怎么办。@media 在文件的末尾。我在互联网上找不到任何东西:(

@media all and (max-width: 1536px) and (min-width: 1501px) {
  .block__three-block-bank-text-grey-two{
    left: 14%;
  }
}

在此处输入图像描述

在元素的屏幕上,您可以看到没有@media。网站链接:https ://websitetestingfreelance.000webhostapp.com/banks.html

    @font-face {
font-family: 'Proxima Nova Light';
src: url('../fonts/ProximaNova-Light.eot');
src: url('../fonts/ProximaNova-Light.eot?#iefix') format('embedded-opentype'),
url('../fonts/ProximaNova-Light.woff') format('woff'),
url('../fonts/ProximaNova-Light.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Proxima Nova Bold';
src: url('../fonts/ProximaNova-Bold.eot');
src: url('../fonts/ProximaNova-Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/ProximaNova-Bold.woff') format('woff'),
url('../fonts/ProximaNova-Bold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Proxima Nova Extra Bold';
src: url('../fonts/ProximaNova-Extrabld.eot');
src: url('../fonts/ProximaNova-Extrabld.eot?#iefix') format('embedded-opentype'),
url('../fonts/ProximaNova-Extrabld.woff') format('woff'),
url('../fonts/ProximaNova-Extrabld.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Proxima Nova Thin';
src: url('../fonts/ProximaNovaT-Thin.eot');
src: url('../fonts/ProximaNovaT-Thin.eot?#iefix') format('embedded-opentype'),
url('../fonts/ProximaNovaT-Thin.woff') format('woff'),
url('../fonts/ProximaNovaT-Thin.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
*{
  padding: 0;
  margin: 0;
}
body{
  overflow-x: hidden;
}
.header{
  width: 100%;
  height: 3vw;
  background: #FFFFFF;
  box-shadow: 0px 25px 250px rgba(0, 0, 0, 0.1);
}
.header-logo{
  position: absolute;
  top: 1%;
  left: 15%;
}
.header-menu-nav-button{
  height: 5%;
  width: 2.5%;
  top: 0.5%;
  right: 15%;
  position: absolute;
  cursor: pointer;
}
.header-lines{
  width: 80%;
  height: 7%;
  margin-left: auto;
  margin-right: auto;
  background: #5cd648;
  margin-top: 21%;
}
.second-menu-line{
  width: 40%;
  margin-right: 0;
  margin-left: 49%;
}
.third-menu-line{
  width: 65%;
  margin-right: 0;
  margin-left: 26%;
}
.block__one{
  width: 100%;
  height: 30vw;
  position: relative;
  background: linear-gradient(180deg, #FFB522 0%, #FFBC2F 27.08%, #FEBB2B 53.65%, #FFB410 79.17%, #FDA400 89.06%, #EF9501 100%);
}
.block__one-img{
  position: absolute;
  right: -10%;
  bottom: 0;
}
.block__one-credit{
  color: white;
  font-size: 64px;
  width: 65%;
  top: 25%;
  font-family: 'Proxima Nova Light';
  letter-spacing: 5px;
  position: absolute;
  left: 15%;
  line-height: 90px;
}
span{
  font-family: 'Proxima Nova Extra Bold';
  letter-spacing: 1px;
}

.buttom-arrow{
  position: absolute;
  left: 5%;
  top: 25%;
  transform: rotate(180deg);
}
.block__one-input{
  background: #FFFFFF;
  box-shadow: 5px 0px 25px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  width: 18%;
  top: 70%;
  left: 15%;
  height: 4vw;
  position: absolute;
}
.block__one-buttom{
  background: #5CD648;
  border-radius: 0px 5px 5px 0px;
  width: 18%;
  top: 70%;
  left: 32.8%;
  height: 4vw;
  position: absolute;
  cursor: pointer;
}
.block__one-buttom-text{
  position: relative;
  text-align: center;
  top: 36%;
  text-transform: uppercase;
  color: white;
  font-family: 'Proxima Nova Bold';
  font-size: 16px;
}
.bottom-text{
  position: relative;
  text-align: center;
  top: 36%;
  text-transform: uppercase;
  color: white;
  font-family: 'Proxima Nova Bold';
  font-size: 16px;
}
.block__one-input-text__grey{
  position: relative;
  float: left;
  color: #7A7C80;
  font-size: 15px;
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  margin-left: 30%;
  left: -20%;
  top: 15%;
  text-transform: uppercase;
}
.block__one-input-text__bold{
  font-family: 'Proxima Nova Bold';
  font-size: 24px;
  float: left;
  top: 15%;
  margin-left:15%;
  left: -5.5%;
  position: relative;
}
.input-text{
  font-size: 13px;
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  text-transform: uppercase;
}
.block__two{
  width: 100%;
  height: 25vw;
  position: relative;
  top: 30%;
}
.block__two-text__main{
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  font-size: 42px;
  left: 14%;
  top:10%;
  position: absolute;
}
.text-main{
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  font-size: 42px;
  left: 14%;
  top:10%;
  position: absolute;
}
.block__two-text-sub-grey{
  color: #989898;
  font-size: 16px;
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  position: relative;
  left: 14%;
  top: 23%;
}
.block__two-block-bank{
  background: #FFFFFF;
  box-shadow: 5px 0px 25px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  position: relative;
  left: 14%;
  width: 75%;
  top: 40%;
  height: 7vw;
}
.block__two-bank__logo{
  top: 23%;
  left: 2%;
  position: absolute;
}
.block__two-recomendation-text{
  color: #FFB522;
  font-family: 'Proxima Nova Light';
  position: absolute;
  top: 65%;
  left: 3.1%;
}
.block__two-block-bank-line{
  position: absolute;
  height: 100%;
  border: 2px solid #F7F7F7;
  left: 15%;
}
.block__two-block-bank-text-grey{
  font-family: 'Proxima Nova Light';
  text-transform: uppercase;
  font-weight: lighter;
  color: #7A7C80;
  font-size: 13px;
  position: relative;
  float: left;
  margin-left: 5%;
  left: 13%;
  top: 30%;
}
.text-grey{
  font-family: 'Proxima Nova Light';
  text-transform: uppercase;
  font-weight: lighter;
  color: #7A7C80;
  font-size: 13px;
  position: relative;
  float: left;
  margin-left: 5%;
  left: 13%;
  top: 30%;
}
.block__two-bank-block-text__black{
  float: left;
  position: relative;
  font-family: 'Proxima Nova Light';
  text-transform: uppercase;
  left: -47%;
  top: 50%;
}
.block__two-bank-block-text__black-one{
  color: #5cd648;
}
.block__two-bank-block-text__black-two{
  left: -40.5%;
}
.block__two-bank-block-text__black-three{
  left: -34.8%;
}
.block__two-bank-block-text__black-fore{
  left: -30.6%;
}
.block__two-bank-block-text__black-five{
  left: -24.4%;
}
.block__two-bank-block-text__black-six{
  left: -20.8%;
}
.block__two-block-bank-buttom{
  position: absolute;
  width: 15%;
  left: 81.5%;
  top: 28%;
  height: 40%;
  background: #5CD648;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0px 4px 10px rgba(92, 214, 72, 0.15);
  border-radius: 100px;
}
.block__two-buttom-text{
  font-size: 13px;
}
.block__three{
  position: relative;
  width: 100%;
  height: 70vw;
  top: 0vw;
}
.block__three-clock-img{
  position: absolute;
  top: 3.4%;
  right: 40%;
}
.block__three-update{
  position: absolute;
  font-family: 'Proxima Nova Light';
  font-weight: lighter;
  color: #989898;
  font-size: 18px;
  top: 3.6%;
  right: 21%;
}
.block__three-block-bank-text-grey{
  top: 7vw;
  margin-left: 5%;
}
.block__three-block-bank-text-grey-one{
  left: 12.3%;
}
.block__three-block-bank-text-grey-two{
  left: 12%;
}
.block__three-block-bank-text-grey-three{
  left: 9.5%;
}
.block__three-block-bank-text-grey-fore{
  left: 8.4%;
}
.block__three-block-bank-text-grey-five{
  left: 7.1%;
}
.block__three-block-bank-text-grey-six{
  left: 5.7%;
}
.block__three-block-bank-text-grey-six{
  left: 5.7%;
}
.block__three-block-bank-text-grey-seven{
  left: 5%;
}
.block__three-text__main{
  top: 2%;
}
.block__three-block-bank{
  position: relative;
  top: 15%;
  margin-top: 1%;
}
.block__hree-bank-block-text__black{
  left: 12%;
  top: 42%;
  margin-left: 5%;
}
.block__three-bank-text__black-block__one{
  top: 10%;
  margin-right: 0%;
  left:22.4%;
}
.bank-block-three-25{
  top: 40%;
  left:-75.5%;
}
.bank-block-three-green{
  color: #5cd648;
  font-size: 25px;
}
.block__three-recomendation-text-two{
  color: #2D4D7A;
}
.block__three-recomendation-text-three{
  color: #FE471F;
}
.block__three-recomendation-text-fore{
  color: #5CD648;
}
.block__borrower{
  width: 100%;
  height: 20vw;
  position: relative;
  top: 0vw;
}
.block__borrower-img{
  position: relative;
  margin-left: 22%;
  left: -13%;
  top: 8vw;
}
.block__borrower-img-two{
  top: 7.2vw;
}
.block__borrower-img-three{
  top: 6.5vw;
}
.block__borrover-text__sub{
  font-family:'Proxima Nova Light';
  font-weight: lighter;
  float: left;
  width: 20%;
  margin-left: 5.2%;
  left: 9%;
  top: 20%;
  position: relative;
}
.block__yellow{
  position: relative;
  width: 75%;
  background: #FFB522;
  height: 25vw;
  margin: auto;
  top: 0vw;
}
.block__fore{
  background: #FEB71F;
  position: relative;
  width: 100%;
  margin: 0;
  height: 28vw;
  top: 0vw;
}
.block__yellow{
  background: #FEB71F;
  position: relative;
  width: 70%;
  left:14%;
  height: 28vw;
  top: 0vw;
}
.block__fore-text__main{
  color: white;
  left: 4%;
}
.block__fore-blocks__mini{
  position: relative;
  height: 18%;
  float: left;
  width: 28%;
  top: 32%;
  margin-left: 3.9%;
}
.block__fore-blocks__big{
  position: relative;
  height: 32%;
  float: left;
  width: 28%;
  top: 41%;
  margin-left: 3.9%;
}
.block__fore-img{
  position: relative;
  top: 1vw;
}
.block__fore-block__text{
  font-family:'Proxima Nova Light';
  font-weight: lighter;
  font-size: 15px;
  color: white;
  left: 7%;
  position: relative;
}
.block__six{
  width: 100%;
  height: 15vw;
  position: relative;
  top: 0vw;
}
.block__six-block__grey{
  width: 100%;
  height: 20vw;
  top:-5vw;
  z-index: -1;
  position: absolute;
  background: #1C2331;
}
.block__grey-img{
  position: relative;
  top: 35.5%;
  left: 15.5%;
}
.block__grey-img-two{
  top: 47%;
  left: 14.3%;
}
.block__grey-img-three{
  top: 57.8%;
  left: 13.1%;
}
.block__grey-img-fore{
  top: 69.5%;
  left: 12%;
}
.block__grey-img-five{
  top: 81%;
  left: 10.85%;
}
.block__grey-text{
  font-family:'Proxima Nova Light';
  color: white;
  font-weight: lighter;
  font-size: 15px;
  position: absolute;
  left: 17%;
  top: 35%;
}
footer{
  background: #131925;
  width: 100%;
  height: 4vw;
  position: relative;
  top: 0vw;
}
.footer__copyrating{
  color: #7A8291;
  font-family:'Proxima Nova Light';
  font-size: 15px;
  font-weight: lighter;
  top: 38%;
  left: 15%;
  position: absolute;
}
.footer__polytics{
    font-family:'Proxima Nova Light';
    font-size: 15px;
    text-transform: 12px;
    color: white;
    text-decoration-line: underline;
    top: 38%;
    right: 15%;
    position: absolute;
    cursor: pointer;
}
@media all and (max-width: 1536px) and (min-width: 1501px) {
  .block__three-block-bank-text-grey-two{
    left: 14% !important;
  }
}
html
  • 1 1 个回答
  • 10 Views

1 个回答

  • Voted
  1. Best Answer
    Denis640Kb
    2020-01-19T22:55:13Z2020-01-19T22:55:13Z

    如果范围是必要的 - 在你那里它是正确写的。只是你输入的宽度非常大。尝试 1200 到 1000。(已测试)

     @media all and (max-width: 1200px) and (min-width: 1000px) { //Добавить , and
            .block__three-block-bank-text-grey-two{
                left: 14% !important;
            }
        }
    


    宽度 1430px宽度 1180px宽度 977px
    宽度 1430px

    宽度 1180px

    宽度 977px

    如果要设置多个参数,例如screenwidth1000和all另一个,则指定 和 必须用逗号分隔。

     @media all and (max-width: 1200px), screen and (min-width: 1000px) { //Добавить , and
            .block__three-block-bank-text-grey-two{
                left: 14% !important;
            }
        }
    
    • 0

相关问题

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    如何从列表中打印最大元素(str 类型)的长度?

    • 2 个回答
  • Marko Smith

    如何在 PyQT5 中清除 QFrame 的内容

    • 1 个回答
  • Marko Smith

    如何将具有特定字符的字符串拆分为两个不同的列表?

    • 2 个回答
  • Marko Smith

    导航栏活动元素

    • 1 个回答
  • Marko Smith

    是否可以将文本放入数组中?[关闭]

    • 1 个回答
  • Marko Smith

    如何一次用多个分隔符拆分字符串?

    • 1 个回答
  • Marko Smith

    如何通过 ClassPath 创建 InputStream?

    • 2 个回答
  • Marko Smith

    在一个查询中连接多个表

    • 1 个回答
  • Marko Smith

    对列表列表中的所有值求和

    • 3 个回答
  • Marko Smith

    如何对齐 string.Format 中的列?

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5