摘要: 1.float 注意: 1.浮动元素产生了浮动流,块级元素看不到他们,也就是会忽略它所占的位置; 2.产生BFC的元素和文本类属性的元素以及文本都能看到他们; 3.有inline-睡醒都具有文本属性 4.若设置浮动,应该马上清除浮动,避免不必要的影响 清除浮动的方法: 方法一:添加新的元素 、应用 阅读全文
posted @ 2017-10-17 17:50 im.lhc 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.什么是BFS? 首先我们应该了解到垂直margin坍塌(重叠),非常经典的BUG; block Formatting context Formatting context 是 W3C CSS2.1 规范中的一个概念。它是页面中的一块渲染区域,并且有一套渲染规则,它决定了其子元素将如何定位,以及和 阅读全文
posted @ 2017-10-17 17:24 im.lhc 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文
posted @ 2017-10-16 17:44 im.lhc 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the 阅读全文
posted @ 2017-10-16 17:03 im.lhc 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2017-10-15 22:21 im.lhc 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [0, 1, 阅读全文
posted @ 2017-10-15 21:16 im.lhc 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp 阅读全文
posted @ 2017-10-15 19:21 im.lhc 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you 阅读全文
posted @ 2017-10-15 17:10 im.lhc 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-10-15 16:45 im.lhc 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha 阅读全文
posted @ 2017-10-15 16:05 im.lhc 阅读(120) 评论(0) 推荐(0) 编辑