首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

为什么在DIV中min-width不起作用解决办法

2012-04-27 
为什么在DIV中min-width不起作用环境 IE8.0代码如下问题:min-width: 200px不起作用,那里的原因?htmlhe

为什么在DIV中min-width不起作用
环境 IE8.0

代码如下

问题:min-width: 200px;不起作用,那里的原因?

<html>
<head>
  <title></title>
  <style>
  DIV.outLine
  {
  position: absolute;
  border-bottom-style: none;
  min-width: 200px;
  padding-bottom: 0px;
  border-right-style: none;
  margin: 0px;
  padding-left: 0px;
  padding-right: 0px;
  border-collapse: collapse;
  max-width: 100%;
  border-top-style: none;
  float: left;
  max-height: 320px;
  border-left-style: none;
  padding-top: 0px;
  }
  .header
  {
  background-color: #003692;
  height: 18pt;
  min-width: 200px;
  }
  #headerButton
  {
  float: right;
  }
  </style>
</head>
<body>
  <div class="outLine">
  <div class="header">
  <img id="headerButton" class="icon" alt="menu">
  </div>
  </div>
</body>
</html>


[解决办法]
DIV.outLine
{
position: absolute;
border-bottom-style: none;
有误改为
.outLine
{
position: absolute;
border-bottom-style: none;
[解决办法]
IE根本不支持min-width

热点排行
Bad Request.