﻿/*========电脑端默认样式清除*/

*,
::before,
::after {
  margin: 0;
  padding: 0;
  font-style: normal;
  /* 防止padding和border撑开的盒子大小 */
  box-sizing: border-box;
  /* 主流移动浏览器兼容 */
  -webkit-box-sizing: border-box;
  /* 清除点击高亮效果 */
  -webkit-tap-highlight-color: transparent;
  /*手指长时间停留在屏幕上不单出菜单 */
  -webkit-touch-callout: none;
  /*取消轮廓线 蓝色的*/
  outline: none;
  /* 清除移动端输入框特有阴影效果 */
  -webkit-appearance: none;
  /*不允许拉伸*/
  resize: none;
  /* 取消列表默认样式 */
  list-style: none;
  -webkit-text-size-adjust: none;
}


/*========清除浮动*/

.clearfix::after,
.clearfix::before {
  visibility: hidden;
  clear: both;
  display: block;
  content: ".";
  height: 0;
  line-height: 0;
}

.clearfix {
  *zoom: 1
}


/*===========h5新块级标签，适配其他浏览器*/

address,
article,
aside,
blockquote,
details,
dl,
dt,
dd,
figcaption,
figure,
main,
article,
aside,
footer,
h1,
h2,
h3,
h4,
h5,
h6,
header,
ol,
ul,
li,
main,
menu,
nav,
p,
summary,
section {
  display: block;
}


/*========去掉列表前面的小点*/

ul,
ol,
li {
  list-style: none;
}


/*========取消链接的下划线*/

a,
a:active,
a:hover,
a:focus,
a:visited {
  outline-width: 0;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  /*手指长时间停留在屏幕上不单出菜单 */
  -webkit-touch-callout: none;
}


/*=========图片没有边框   去掉图片底侧的空白缝隙*/

img {
  border: none;
  /*ie6*/
  vertical-align: middle;
  /*手指长时间停留在屏幕上不单出菜单 */
  -webkit-touch-callout: none;
  /*图片没有边框*/
  border-style: none;
}


/*=========输入框样式清除*/

button,
input,
select,
textarea {
  font-family: inherit;
  font-style: normal;
  font-weight: normal;
  border: none;
  /*取消轮廓线 蓝色的*/
  outline: none;
  /* 清除移动端输入框特有阴影效果 */
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  /*不允许拉伸*/
  resize: none;
}


/*========让斜体字体 不倾斜 不加粗*/

em,
i,
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  font-style: normal;
  font-weight: normal;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/*========设置盒子的浮动*/

.fl {
  float: left;
}

.fr {
  float: right;
}


/* ========电脑端页面版心设置 宽度需另外设置*/
html,
body {
  margin: 0 auto;
  max-width: 750px;
  min-width: 300px;
  color: #333;
  background-color: #f7f8fa;
  /* 不允许用户选择 */
  user-select: none;
}

body {
  font-size: 0.14rem;
}

.bottom-border,
.top-border {
  position: relative;
}

.bottom-border::after {
  bottom: 0;
}

.top-border::before {
  top: 0;
}

.bottom-border::after,
.top-border::before {
  position: absolute;
  content: " ";
  left: 0;
  display: block;
  height: 1px;
  width: 100%;
  background-color: #ebedf0;
  transform: scaleY(0.5);
}


/*============ 多行文本溢出隐藏，最后一行显示省略号 ,以p标签为例*/


/* p {
    width: px/rem;====设置宽高
    height: px/rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;显示行数，
    overflow: hidden;
    text-overflow: -o-ellipsis-lastline;
    text-overflow: ellipsis;
} */


/* <input type="text" inputmode="decimal" placeholder="纯数字键盘-有小数点">
<input type="tel" inputmode="numeric" placeholder="纯数字键盘"> 
inputmode="none"
无虚拟键盘。在应用程序或者站点需要实现自己的键盘输入控件时很有用
inputmode="decimal"
小数输入键盘，包含数字和分隔符（通常是“ . ”或者“ , ”），设备可能也可能不显示减号键。
inputmode="numeric"
数字输入键盘，所需要的就是0到9的数字，设备可能也可能不显示减号键。
"search"
为搜索输入优化的虚拟键盘，比如，返回键可能被重新标记为“搜索”，也可能还有其他的优化。

*/