背景图像效果
摘要:1.添加Icon在标题前: 假设要在站点的每个标题上添加一个icon,可以采用如下代码: 运行结果如下: 实现的原理即将内容添加padding属性,再将图片放置在该位置。 在使用背景图像进行定位时,也可以用像素或者百分比,两者有所不同。 像素为图片的左上角距离元素的左上角的距离。 百分比则为使用对应
阅读全文
posted @ 2017-02-25 10:46
posted @ 2017-02-25 10:46
posted @ 2017-02-22 16:55
posted @ 2017-02-22 15:36
posted @ 2017-02-14 21:51
posted @ 2017-02-12 16:47
posted @ 2017-02-10 16:53