EasyUI Forum
November 04, 2025, 04:24:17 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: panel 的 id 及 style 的问题  (Read 14536 times)
iamjxc
Jr. Member
**
Posts: 80


View Profile
« on: March 09, 2014, 11:33:22 PM »

easyui 处理 panel 时, 并没有把 id 赋给外层的 <div class="panel" >, 这样用css没有任何效果;
在style里指定 "float:left", 也没有传递到外层容器, 导致css控制panel样式比较困难

参考下面的代码:
<style type="text/css">   
   #panel2 {width:500px;float:left;} /* not work */
</style>

<div id="panel2" class="easyui-panel" title="Panel 2" >
   无法受css控制
</div>

<div id="panel3" class="easyui-panel" title="Panel 3" style="width:500px;float:left;">
   float:left not work
</div>
Logged
iamjxc
Jr. Member
**
Posts: 80


View Profile
« Reply #1 on: March 09, 2014, 11:52:49 PM »

已解决, 把 panel 用 div 再包裹一层.  Smiley
<div id="panel2">
   <div class="easyui-panel" title="Panel 2" >
       ok
    </div>
</div>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!