記錄一個css技巧
overflow-y: auto;
效果
<scroll-view scroll-y="true">
<view class="top">這是吸頂view</view>
<view class="content">這是滾動view</view>
</scroll-view>
要實(shí)現(xiàn)scroll內(nèi)部 , .top
吸頂 , .content
內(nèi)容上下滾動的效果,
只要在.content
添加 overflow-y: auto;
文章來源:http://www.zghlxwxcb.cn/news/detail-702826.html
.content{
overflow-y: auto;
}
overflow-y官網(wǎng)描述文章來源地址http://www.zghlxwxcb.cn/news/detail-702826.html
到了這里,關(guān)于[uni-app] scroll-view中吸頂?shù)暮唵巫龇?- overflow-y: auto;的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!