The float CSS property specifies that (1) an element should be taken from the normal flow and (2) placed along the left or right side of its container, where text and inline elements will wrap around it.

(1): ?

因为设置了ul li {float:left},这是所有的li其实已经从ul中脱离出来,这里解释为ul感知不到li的存在。而且没有设置ul的height属性,所以ul.height的属性值为0;

(2):为什么ul移动时,li也会跟着移动 ?

虽然ul感知不到li的存在,但是li placed along the left and right side of its container,所以当ul移动时,li也会跟着移动;

最新文章

  1. SpringMVC入门案例及请求流程图(关于处理器或视图解析器或处理器映射器等的初步配置)
  2. 关于git提交的自己的理解
  3. lua序列化table表到文件中
  4. [Jetty] Debugging With Eclipse
  5. 两行代码玩转Spring Data排序和分页
  6. python之面向对象3
  7. Handler的postDelayed的实现方法
  8. GeoDesc: Learning Local Descriptors by Integrating Geometry Constraints
  9. C++ 函数模板的返回类型如何确定?
  10. python 关于 input
  11. js检查字符串的包含关系
  12. Virus
  13. 解决移动端touch事件(touchstart/touchend) 的穿透问题
  14. 第一篇 数据库MySql
  15. CSU 1355 地雷清除计划
  16. HotSpot模板解释器目标代码生成过程源码分析
  17. Mobicents记录1:如何搭建和运行mobicents3.0环境(基于jboss7.2)
  18. 监听浏览器返回,pushState,popstate 事件,window.history对象
  19. 虚拟现实-VR-UE4-获取UE4
  20. Forward与include的区别

热门文章

  1. PAT乙级1031
  2. Django学习系列20:改进功能测试
  3. JS文件上传代码
  4. 重温JSP学习笔记
  5. Python之windows锁屏
  6. TCP/IP 三次握手和四次挥手
  7. RedisTemplate的各种操作(set、hash、list、string)
  8. 什么是URL百分号编码?
  9. linux IP 网关配置
  10. Nginx事件管理之ngx_event_core_module模块