
css
siege
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CSS中关于多个选择器中是否含有空格的区别
CSS中关于多个选择器中是否含有空格的区别CSS中多个选择器中含有空格和不含有空格区别很大,区分下列含义:#header.callout { }#header .callout { }第一个表示ID为header的同时类名为callout的选择器, 第二个表示ID为header下子节点中含有类名为callout的选择器我们用以下例子表明:#header.callout { }<div id="原创 2015-08-15 23:32:42 · 1209 阅读 · 0 评论 -
CSS中的body的默认margin
CSS中的body的默认margin一般浏览器中都对body标签进行默认的margin设置为8px,当然,不同的浏览器会设置成不同的值,它是由浏览器的user-agent-stylesheet提供的,有些浏览器的user-agent-stylesheet可以由用户进行修改,而有的浏览器则不可以,所以开发人员不能依靠此来修改浏览器的默认设置。如果我们要修改body的默认值,只要覆盖其css样式即可:b原创 2015-08-17 20:45:34 · 11411 阅读 · 0 评论 -
CSS中display的值
CSS中display的值CSS文档中对display有这样的介绍:9.2.4 The ‘display’ property‘display’Value: inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-原创 2015-09-03 20:54:36 · 728 阅读 · 0 评论 -
CSS中的position
CSS中的positionCSS中的position有static,relative,absolute,fixed,inherit这几个取值。static所有的元素默认的position都是static类型的,static类型的值无top,right,button,left值,也就是说在static的布局下,top,right,button,left不起作用。relativerelative类型的与原创 2015-09-01 21:33:36 · 546 阅读 · 0 评论 -
CSS中的containing block
CSS中的containing block是这样定义的: The position and size of an element’s box(es) are sometimes calculated relative to a certain rectangle, called the containing block of the element. The containing block o转载 2015-09-03 22:56:51 · 866 阅读 · 0 评论 -
Block Formatting Contexts
Block Formatting Contexts转自:Block Formatting ContextsA block formatting context is a box that satisfies at least one of the following:the value of “float” is not “none”,the used value of “overflow” i转载 2015-09-03 20:19:50 · 456 阅读 · 0 评论 -
bootstrap关于日期控件被模态框遮盖的BUG修复
bootstrap关于日期控件被模态框遮盖的BUG修复在使用bootstrap-datepicker.js插件的时候,由于是在模态框中填写日期值,而模态框的值把日期控件遮盖在下面了,导致无法填写日期值。如下图所示:其本质原因是:当我们点击日期控件填写日期时,bootstrap-datepicker.js帮我们动态生成了class为datepicker dropdown-menu的div,其中包括日期原创 2015-03-28 15:40:42 · 5080 阅读 · 2 评论 -
CSS优先级
CSS优先级在CSS官方文档里关于其优先级是这样的: count the number of ID selectors in the selector (= a) count the number of class selectors, attributes selectors, and pseudo-classes in the selector (= b) count the原创 2015-08-22 00:09:32 · 1306 阅读 · 0 评论