我已经尝试了很多我要发疯的事情。
如果放大浏览器的缩放或者将浏览器的右侧向左拖动以最小化浏览器的窗口宽度,如何防止cgroup包装?
当div将fpanel的左上角重新组合从fpanel的右上角包装到fpanel的右下角时。
不重要,最终产品在cgroup中有一个大网格。当有时打开页面时,取决于浏览器在屏幕上的大小,cpanel包裹到页面底部,看不见,因为cpanel实际上位于浏览器窗口的底部。因此网格不存在用户的事情。
感谢。
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<div style="min-width: 1730px; min-height: 1050px; max-width: 1735px; max-height: 1055px; border-style:solid; border-width:1px; border-color:red; overflow: hidden;">
<div id="mpanel" style="min-width: 1730px; max-width: 1730px; min-height: 35px; max-height: 35px; border-style:solid; border-width:1px; border-color:lightgray; background-color:slategray;">
</div>
<div id="fpanel" style="float:left; min-width: 300px; max-width: 300px; min-height: 990px; max-height: 990px; border-style:solid; border-width:1px; border-color:lightgray; background-color:lightblue">
fpanel
</div>
<div id="cpanel" style="float:right; min-width: 1430px; max-width: 1430px; min-height: 990px; max-height: 990px; border-style:solid; border-width:1px; border-color:lightgray; overflow: auto;">
<div data-container="cgroup">
cgroup-cpanel
</div>
</div>
<br style="clear: left;" />
</div>
</body>
</html>
&#13;
答案 0 :(得分:2)
将#fpanel
width
296px
<div id="fpanel" style="float:left; min-width: 296px; max-width: 296px;">
调整为<div style="min-width: 1730px; min-height: 1050px; max-width: 1735px; max-height: 1055px; border-style:solid; border-width:1px; border-color:red; overflow: hidden;">
<div id="mpanel" style="min-width: 1730px; max-width: 1730px; min-height: 35px; max-height: 35px; border-style:solid; border-width:1px; border-color:lightgray; background-color:slategray;">
</div>
<div id="fpanel" style="float:left; min-width: 296px; max-width: 296px; min-height: 990px; max-height: 990px; border-style:solid; border-width:1px; border-color:lightgray; background-color:lightblue">
fpanel
</div>
<div id="cpanel" style="float:right; min-width: 1430px; max-width: 1430px; min-height: 990px; max-height: 990px; border-style:solid; border-width:1px; border-color:lightgray; overflow: auto;">
<div data-container="cgroup">
cgroup-cpanel
</div>
</div>
<br style="clear: left;" />
</div>
(或任何让您受益的价值):
class Plus
{
public delegate void CalculationCompletEventHandler(int score);
public event CalculationCompletEventHandler CalculationCompleted;
private int a;
private int b;
public Plus(int a, int b)
{
this.a = a;
this.b = b;
}
public void Calculate()
{
if (CalculationCompleted != null)
{
CalculationCompleted(a + b);
}
}
}
以下代码段:
void Main()
{
Plus plus = new Plus(1, 2);
plus.CalculationCompleted += OnCalculationCompleted;
plus.Calculate();
plus.CalculationCompleted += OnCalculationCompleted2;
plus.Calculate();
}
private void OnCalculationCompleted(int score)
{
Console.WriteLine("OnCalculationCompleted , score=" + score);
}
private void OnCalculationCompleted2(int score)
{
Console.WriteLine("OnCalculationCompleted2 , score=" + score);
}