我有四个div包含在另一个div中,我希望四个内部div居中.
我使用float: left了四个div,使它们水平对齐.
CSS:
<style>
.square //inner divs
{
float: left;
margin:1pt;
width:72pt;
height:72pt;
}
.container //outer divs
{
text-align:center;
width:450pt;
height: 80pt;
}
</style>
Run Code Online (Sandbox Code Playgroud)
和HTML:
<div class = "container">
<div class = "square">...</div>
<div class = "square">...</div>
<div class = "square">...</div>
<div class = "square">...</div>
</div>
Run Code Online (Sandbox Code Playgroud)
如何将div放在容器内?
内部div的数量可以是变量.
我正在运行我在Visual Studio 2010中构建的程序,该程序使用第三方DLL"ABC.DLL".我在Windows 7 64位上.
但是,由于一个DLL,它无法运行.在此DLL上运行Dependency walker时,我收到以下错误:
错误:"...\ABC.DLL"的Side-by-Side配置信息包含错误.应用程序无法启动,因为它的并排配置不正确.请参阅应用程序事件日志或使用命令行sxstrace.exe工具获取更多详细信息(14001).
缺少依赖关系MSCVR80.DLL和MSVCP80.DLL.
我已经尝试了以下主题中的所有解决方案,但我仍然遇到同样的错误.
ABC.DLL是在Visual Studio 2005中构建的第三方库,我无法重建它.
我已经安装了Visual Studio C++ 2005 Redistributable,并尝试复制从另一台计算机上获取的DLL(因为我的计算机中没有它)并且没有任何作用.
dependencies msvcrt side-by-side visual-studio-2010 visual-c++