zoukankan
html css js c++ java
让孩子与父节点等高
<!DOCTYPE html> <html> <head> <title>让孩子与父节点等高</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style> html,body{ height:100%; margin: 0; padding: 0; } .parent{ position: relative; background:violet; height: 90%; } .son{ *height:expression(this.parentNode.offsetHeight + "px"); position: absolute; top:0px; bottom: 0px; 800px; background: red; } </style> </head> <body> <div class="parent"> <div class="son">TODO write content</div> </div> </body> </html>
运行代码
查看全文
相关阅读:
[swustoj 411] 售货员的难题
白书P61
白书P60
[ZOJ 3471] Most Powerful
[HDU 3001] Travelling
[转] acmer必看的26个对acm态度
[HDU 1254] 推箱子
[POJ 3311] Hie with the Pie
[POJ 3254] Corn Fields
power
原文地址:https://www.cnblogs.com/rubylouvre/p/3244179.html
最新文章
#VSTS日志# Xamarin构建支持和一大波更新
GitHub + VSTS 开源代码双向同步
一个都不能少: DevOps的3大核心基础架构
Hive-ORC文件存储格式
win32贪吃蛇实现
Android必知必会-带列表的地图POI周边搜索
立体匹配的研究背景以及意义
基于最小生成树的实时立体匹配算法简介
立体匹配导论
Spark调度模式-FIFO和FAIR
热门文章
如何play billard
不容易打到白球的中点
站位与视角
css text-indent:999em
台球姿势
css 10 款非常棒的CSS代码格式化工具推荐
CSS代码格式化工具
用DIV+CSS做网页里要设置body和*规定内容
CSS Sprite
[swustoj 594] Maximum Tape Utilization Ratio
Copyright © 2011-2022 走看看