css应对不同浏览器的表示不同

前端显示对其在不同浏览器中显示不相同
其中class="mark"的表现在chrome和firefox中的表现不一项,
(firefox表示正常,而chrome中位置偏上)

img

目前设置CSS应对不同浏览器为下,可否请教该修改哪里

<div class="store-hour-selector">
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                    <div class="store-hour-selector-label">
                      <span class="mark"></span>
                    </div>
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                  </div>
div.store-hour-selector {
    display: flex;
    flex-direction: row;
}
div.store-hour-selector-label {
    display: inline-flex;
    flex: 1;
    padding-right: 6px;
    position: relative;
    width: 100%;
    flex-direction: column;
}
div.store-hour-selector-label .mark:before {
    content: '~';
    font-size: 24px;
    line-height: 0;
    position: absolute;
    bottom: 33px;
}

@-moz-document url-prefix() {
    div.store-hour-selector-label .mark:before {
        bottom: 23px;
    }
}

@supports (-ms-ime-align:auto) {
    div.store-hour-selector-label .mark:before {
        bottom: 23px;
    }
}

@supports (-ms-accelerator : true) {
    div.store-hour-selector-label .mark:before {
        bottom: 23px;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    div.store-hour-selector-label .mark:before {
        bottom: 23px;
    }
}

@media screen\0, screen\9 {
    div.store-hour-selector-label .mark:before {
        bottom: 23px;
    }
}

非常感谢~ !

缺少 store-hour-selector 样式内容,无法帮你调试

我默认你 store-hour-selector 样式为 display:flex

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <style>
  div.store-hour-selector-label .mark:before {
    content: '~';
    font-size: 24px;
    line-height: 0;
   
    
    
}

@-moz-document url-prefix() {
    div.store-hour-selector-label .mark:before {
    }
}

@supports (-ms-ime-align:auto) {
    div.store-hour-selector-label .mark:before {
    }
}

@supports (-ms-accelerator : true) {
    div.store-hour-selector-label .mark:before {
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    div.store-hour-selector-label .mark:before {
    }
}

@media screen\0, screen\9 {
    div.store-hour-selector-label .mark:before {
    }
}

@media (min-width: 1024px){
    div.store-hour-selector-label .mark:before {
    }
}

@media (min-width: 768px){
    div.store-hour-selector-label .mark:before {
    }
}
.store-hour-selector-label {min-width:20px;min-height:20px;position:relative;}
.store-hour-selector {display:flex;align-items:center;}
h3{padding:0px;margin:0px;}
  </style>
 </head>
 <body>
  <div class="store-hour-selector">
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                    <div class="store-hour-selector-label">
                      <span class="mark"></span>
                    </div>
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                    <div class="store-hour-selector-label">
                      <h3 id="style"></h3>
                      <select>
                        <option value=""></option>
                      </select>
                    </div>
                  </div>
 </body>
</html>


您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632