css delete line text & html del html <del>¥720</del> demo <span class="ticket-origin-price"> <del>¥720</del> </span> <span class="ticket-origin-price delete-line"> <span>¥720</span…
1. 为什么会有BFC和IFC 首先要先了解两个概念:Box和formatting context: Box:CSS渲染的时候是以Box作为渲染的基本单位.Box的类型由元素的类型和display属性决定,box的类型分为block-level box 和inline-level box(不包括css3的时候).不同类型的box参与不同类型的formatting context布局. Block-level elements are those elements of the source do…
前言 一直听说line-height是指两行文本的基线间的距离,然后又说行高等于行距,最近还听说有个叫行间距的家伙,@张鑫旭还说line-height和vertical-align基情四射,贵圈真乱啊......于是通过本篇来一探究竟:) line-height到底有多height? 行距.行间距傻傻分不清 首先看看"有道词典"的解析! Leading = Line Space + Font Size(即是 行距 = 行间距 + 字体大小) Leading: 指相邻文本行间上一个文本…
CSS Text 1> Text Color used to set the color of the text 2> Text Alignment used to set the horizontal alignment of a text text-align: left|right|center|justify|initial|inherit; 3> Text Decoration used to set or remove decorations from text text-d…
原文转自:http://www.smashingmagazine.com/2014/11/03/styling-and-animating-svgs-with-css/?utm_source=CSS-Weekly&utm_campaign=Issue-135&utm_medium=email CSS can be used to style and animate scalable vector graphics, much like it is used to style and ani…
This article is an updated excerpt of the chapter “Restyle, Recode, Reimagine With CSS3″ from our Smashing Book #3, written by Lea Verou and David Storey. — Ed. Flexible box layout (or flexbox) is a new box model optimized for UI layout. As one of th…
CSS的语法格式 l 一个CSS规则,有"选择器"和"格式声明语句"构成 l 选择器:就是选择HTML标记,换句话说就是给那个HTML标记加样式 l 格式声明语句:由{ }构成,{ }中是各种格式语句. l 一条格式语句,由"属性名:属性值"构成. l 每一条格式语句,必须用英文下的":"构成 l 属性名,就是CSS中的各种属性,这些属性名都是固定的 l 属性值:一个属性名可以去不同的值,这个值是不加引号的. l…