EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 04, 2025, 04:24:17 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
panel 的 id 及 style 的问题
Pages: [
1
]
« previous
next »
Print
Author
Topic: panel 的 id 及 style 的问题 (Read 14536 times)
iamjxc
Jr. Member
Posts: 80
panel 的 id 及 style 的问题
«
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
Re: panel 的 id 及 style 的问题
«
Reply #1 on:
March 09, 2014, 11:52:49 PM »
已解决, 把 panel 用 div 再包裹一层.
<div id="panel2">
<div class="easyui-panel" title="Panel 2" >
ok
</div>
</div>
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...