div标签固定位置不随滚动条或页面滚动

上代码

<form class="layui-form" action="">
        <div class="layui-inline" style="position:fixed; left:2px; top:2px; z-index:99;">
            <a class="layui-btn setTemp" lay-filter="Search" style="width: 100px;" lay-submit="">分配模板</a>
            <a class="layui-btn setTopUserName" lay-filter="Search" style="width: 100px;" lay-submit="">配置上级</a>
            <a class="layui-btn sendDingDing" lay-filter="Search" style="width: 145px;" lay-submit="">发送钉钉评价链接</a>
        </div>
</form>

 

posted @ 2020-06-18 09:53  离。  阅读(74)  评论(0编辑  收藏