当一个网页有很多div时,如何避免这些div相互影响? [英] When a web page has many div,how to avoid these divs to affect each other?

查看:289
本文介绍了当一个网页有很多div时,如何避免这些div相互影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个网页有很多div时,当我设置溢出='''滚动''的最后一个div时,之前的div会改变位置似乎很奇怪!!如何推荐这些效果?

When a web page has many div,When I set the last div that over-flow=''scroll'',it seems weird that the div before will change location!!How to advoid these effect?

 <div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',split:true" title="items" style="width: 220px;">
        <div id="ttleft" class="easyui-tabs">
            <div title="item1" style="padding: 10px">
              div1
            </div>
            <div title="item2">
             div2
            </div>
        </div>
    </div>
    <div data-options="region:'center',title:'Result'">
        <div>
            <input class="easyui-datetimebox" required style="width: 150px" />
            <a href="#" class="easyui-linkbutton">Search</a>
        </div>
        <div>
            <table class="easyui-datagrid" data-options="singleSelect:true,fit:true,fitColumns:true"

               pagination="true">
                <thead data-options="frozen:true">
                    <tr>
                        <th data-options="field:'a1'">a1</th>
                       <th data-options="field:'a2'">a2</th>
                    <th data-options="field:'a3'">a3</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
</div>



当我添加溢出时:滚动到div'的表,它影响之前,这里是图片:

https:// www .yousendit.com / download / UVJocHBEays1aWI1SE1UQw

推荐答案

!important可能会为您提供一些帮助,



查看
!important may provide you some help,

check this.


这篇关于当一个网页有很多div时,如何避免这些div相互影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆