这是我的HTML:
<div id="container">
<div id="left-container">
</div>
<div id="right-container">
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
容器高度为100%(我用Firebug检查过).但是#left_container需要100%也不是!
下面是我的CSS和截图.黄色应为100%.黄色是背景#left-container
html, body {
height: 100%;
}
#container {
position:relative;
margin: 0 auto;
width: 100%;
height:100%;
height: auto !important;
min-height:100%;
background: #fff;
}
#left-container {
width: 300px;
background: #ff0;
height:100%;
height: auto !important;
min-height:100%;
}
Run Code Online (Sandbox Code Playgroud) 我在C#项目中使用ADO.NET。在我的表单中,我从VS2010的工具箱中添加了SourceBinding元素。我将连接设置为数据集的表。它为我自动创建一个DataAdapter。
我想插入一条记录,因此我调用了DataAdapter的Insert()方法。但是当我查看数据库数据时,它没有任何新记录...
orderID = this.orderTableAdapter.Insert("", "",
(int)OrderStatus.IN_CONSTRUCTION, DateTime.Now);
Run Code Online (Sandbox Code Playgroud)
还是我需要使用SqlCommand手动将其插入???
我有以下代码:http://aiids.pastebin.com/aLGYjraC
问题出在第84行,它在programmaBesteller上给了我一个NullPointerException.当我调试时,每个私有成员(JMenu和JMenuItem)都是null:s.
我没有看到问题,因为我做了新的DefaultMenuBar() ...