<template>
<div class="demo">
<!-- <mt-header fixed title="long long long long title">
<mt-button slot="left">back</mt-button>
<mt-button icon="more" slot="right"></mt-button>
</mt-header> -->
<div class="flex">
<p>左</p>
<p>内容</p>
<p>右</p>
</div>
<div class="flexd">
<p>左</p>
<p>内容</p>
<p>右</p>
</div>
<div class="main">
<img
src="https://tpc.googlesyndication.com/simgad/585319185461864364?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qn6awnIZTNsp9aZAsaggIvDtJdLDA"
alt
/>
<img
src="https://tpc.googlesyndication.com/simgad/585319185461864364?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qn6awnIZTNsp9aZAsaggIvDtJdLDA"
alt
/>
<img
src="https://tpc.googlesyndication.com/simgad/585319185461864364?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qn6awnIZTNsp9aZAsaggIvDtJdLDA"
alt
/>
<img
src="https://tpc.googlesyndication.com/simgad/585319185461864364?sqp=4sqPyQQ7QjkqNxABHQAAtEIgASgBMAk4A0DwkwlYAWBfcAKAAQGIAQGdAQAAgD-oAQGwAYCt4gS4AV_FAS2ynT4&rs=AOga4qn6awnIZTNsp9aZAsaggIvDtJdLDA"
alt
/>
</div>
</div>
</template>
<script>
export default {};
</script>
<style lang="scss" scoped>
.demo /deep/.mint-header.is-fixed {
top: 0;
right: 0;
left: 0;
position: sticky;
z-index: 1;
}
.demo {
width: 100vw;
padding: 0;
margin: 0;
.flex{
position: sticky;
top: 0%;
left: 0;
width: 100vw;
background: gray;
padding: 0.1rem 0;
display: flex;
justify-content: space-around;
align-items: center;
p {
font-size: 0.25rem;
color: #ffffff;
}
}
.flexd {
position: sticky;
top: 4%;
left: 0;
width: 100vw;
background: gray;
padding: 0.1rem 0;
display: flex;
justify-content: space-around;
align-items: center;
p {
font-size: 0.25rem;
color: #ffffff;
}
}
.main {
margin-top: 0.1rem;
img {
width: 100;
}
}
}
</style>