css css框相关

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css css框相关相关的知识,希望对你有一定的参考价值。

/*The box-shadow property attaches one or more shadows to an element
syntax: box-shadow: none|h-shadow v-shadow blur spread color |inset|initial|inherit;
h-shadow: Required. The position of the horizontal shadow. Negative values are allowed
v-shadow: Required. The position of the vertical shadow. Negative values are allowed
blur: Optional. The blur distance 
spread: Optional. The size of shadow. Negative values are allowed */
div {
    box-shadow: 10px 10px 5px #888888;
}

/* border-radius */
div {border-radius: 5px;}

/*The width and height properties (and min/max properties) includes content,
padding and border, but not the margin
*/
div { box-sizing: border-box; }

/* This is the default. The width and height properties (and min/max properties)
includes only the content. Border, padding, or margin are not included*/
div { box-sizing: content-box; }

/* width and height includes content, padding but not border & margin 
*/
div { box-sizing: padding-box; }

/* Without box-sizing property set to border-box, any padding or border we add,
expands the box outwards and increases its width & height */

以上是关于css css框相关的主要内容,如果未能解决你的问题,请参考以下文章

灵活/流畅的 HTML 表单的 CSS 秘诀是啥?

收藏这么多WEB组件(CSS),攒一个网站够了吧?

收藏这么多WEB组件(CSS),攒一个网站够了吧?

css3盒模型和弹性布局的相关属性

画了一个框,要把图片放到框里面,求指导css

关于css浮动框是否脱离文档流的分析