ITPub博客

首页 > 应用开发 > > 为什么宽度可以用百分比,而高度不能用?

为什么宽度可以用百分比,而高度不能用?

作者:luckybird 时间:2019-11-06 13:58:46 0 删除 编辑

.head{width:40%; height:60px;}对高度有效

.head{width:40%; height:60%;} 对高度无效

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1377/viewspace-3147515/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    113
  • 访问量
    1391