快捷导航

为什么此例postion要这样用?不是应该子绝父相吗?

#content {    width  : 60%;    height  : 60%;    top   : 20%;    left   : 20%;    overflow : hidden;    position : absolute;    border  : 1px solid #ccc;  }    .content-wrap {    position: relative;  }  .content-wrap > li {    width: 100%;    height: 100%;    background: #CAE1FF;    color: red;    float: left;    overflow: hidden;    position: relative;  }  li:nth-child(2) {    background: #9BCD9B;  }    li:nth-child(3) {    background: yellow;  }

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

html结构?
回复

使用道具 举报

你这个问法,是准备让别人猜你HTML结构是什么吗?类似这种问题最好能够说明你想要实现的是什么效果,HTML和CSS代码是怎么样的,尝试过什么样的做法。毕竟CSS这种东西,用法是多种多样的!
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP