在同一页面中使用多个div时无法正常工作 [英] not working while using multiple div in same page

查看:90
本文介绍了在同一页面中使用多个div时无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在页面中使用了两个

Hi,

I am using two

.

第一个div无法正常工作.

但是,第二个
in my page.

The first div is not working.

But, second
正在工作.

两个
is working.

Both
类都相同.

怎么第二,div.正在工作,并且第一个
class are same.

How second ,div. is working and first
不工作..?

还有其他方法可以做到吗...?

看到我的代码
------------
ASPX代码
----------
is not working..?

Is there anyother way to do this...?

see my code
------------
ASPX Code
----------
<div id="div1" class="DivHistoFrozen" > 
   <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
   </table>
</div>
<div id="div2" class="DivHistoFrozen" >   
      <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
      </table>
</div>



CSS代码
--------



CSS Code
--------

.DivHistoFrozen
{
	overflow:scroll ;
	width:100%;
	height:auto;  
}

推荐答案

由于使用相同的类,因此没有任何效果.请在html
下使用
There is not any effect due to using same class. pls use below html

<div id="div1" class="DivHistoFrozen" >
   <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
<tr><td> </td></tr>
   </table>
</div>
<div id="div2" class="DivHistoFrozen" >
      <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
<tr><td> </td></tr>
      </table>
</div>


这篇关于在同一页面中使用多个div时无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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