这个网站是一个名为”葡萄腾科技”的地图控件,其CSS样式如下:
.tmap-zoom-control { margin: 10px 30px 20px 30px; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; position: relative; width: 40px; height: 80px; background: #fff; box-shadow: 0px 8px 19px rgba(41, 64, 102, 0.12); border-radius: 4px; }
该元素的位置相对,宽度和高度分别为40px和80px,背景颜色为白色。它有一个阴影效果,距离顶部8像素,距离底部19像素,距离左侧4像素,距离右侧30像素。边框半径为4像素。
该元素还包含一个名为tmap-zoom-content
的内容,其样式如下:
.tmap-zoom-content { -ms-flex: auto; flex: auto; -ms-flex-order: 1; order: 1; -ms-flex-positive: 0; flex-grow: 0; }
内容本身没有具体的样式,但是通过-ms-flex
属性设置为auto
,意味着它可以自动调整大小以适应内容。通过设置-ms-flex-order
为1和-ms-flex-positive
为0,可以保证内容位于容器的中心,不会超出容器的边界。