Precss

码农软件 · 软件分类 · CSS框架 · 2019-04-20 22:12:36

软件介绍

Precss 可以在 CSS 文件中使用 Sass 类型的 Markup。

在线演示

变量

/* before */
$blue: #056ef0;
$column: 200px;
.menu {
    width: calc(4 * $column);
}
.menu_link {
    background: $blue;
    width: $column;
}
/* after */
.menu {
    width: calc(4 * 200px);
}
.menu_link {
    background: #056ef0;
    width: 200px;
}

条件

/* before */
.notice--clear {
    @if 3 < 5 {
        background: green;
    }
    @else {
        background: blue;
    }
}
/* after */
.notice--clear {
    background: green;
}

循环

/* before */
@for $i from 1 to 3 {
    .b-$i { width: $(i)px; }
}
/* after */
.b-1 {
    width: 1px
}
.b-2 {
    width: 2px
}
.b-3 {
    width: 3px
}

混入

/* before */
@define-mixin icon $name {
    padding-left: 16px;
    &::after {
        content: "";
        background-url: url(/icons/$(name).png);
    }
}
.search {
    @mixin icon search;
}
/* after */
.search {
    padding-left: 16px;
}
.search::after {
    content: "";
    background-url: url(/icons/$(name).png);
}

扩展

/* before */
@define-extend bg-green {
    background: green;
}
.notice--clear {
    @extend bg-green;
}
/* after */
.notice--clear {
    background: green;
}

导入

/* Before */
@import "partials/_base.css"; /* Contents of _base: `body { background: black; }` */
/* After */
body { background: black; }

本文地址:https://codercto.com/soft/d/4029.html

PHP 6与MySQL 5基础教程

PHP 6与MySQL 5基础教程

(美)厄尔曼 / 陈宗斌 等 / 人民邮电出版社 / 2008-11-1 / 65.00元

本书是一部经典的入门级著作,采用基于任务的方法来讲授PHP和MySQL,使用大量图片指导读者深入学习语言,并向读者展示了如何构造动态Web站点。书中用简洁、直观的步骤和讲解提供了学习任务和概念的最快方式。通过学习本书,读者可以快速、高效地掌握PHP和MySQL,成为一位构建Web站点的高手。 本书适合初中级Web应用开发和设计人员阅读。 本书是讲述PHP和MySQL技术的畅销书,以深入......一起来看看 《PHP 6与MySQL 5基础教程》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具