Sass和浏览器渲染 [英] Sass and browser rendering

查看:72
本文介绍了Sass和浏览器渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道浏览器如何读取SASS吗?我了解了如何制作sass文件或如何将.css文件转换为.sass,然后将其编译为对我来说或多或少清晰的新.css文件。但是最后,您将再次获得新的.css文件,而不是将其包含在html中。那么.sass文件会发生什么情况,在什么地方(如果有的话)他在页面呈现过程中处于活动状态?

Does anybody know how how browser reading SASS? I learned how you can make sass file or how you can convert .css file in .sass and than compile it in new .css file that's more or less clear to me. But in the end you're getting new .css file again and than you include it in html. So whats happen with .sass file where, in which moment (if is there any) he becomes active during page-rendering process?

推荐答案

SASS是一种CSS预处理器脚本语言,或者您可以说它是一种被解释为CSS的脚本语言,并且在页面渲染期间浏览器不使用SASS,而是浏览器使用生成的CSS来渲染受尊重的样式

SASS is a CSS pre-processor scripting language or you can say it is a scripting language that is interpreted into CSS and SASS is NOT used by browser during page rendering instead the generated CSS is used by the browser for rendering styles of the respected page.

SASS是一种脚本语言,具有与任何其他编程或脚本语言(例如 javascript python 等。它具有循环,条件语句,函数,可以像其他任何编程语言一样使用。

SASS is scripting language which has programming features like any other programming or scripting language like javascript, python, etc. It has loops, conditional statements, functions which can be used like any other programming language.

在SASS中编程技术的强大功能和优势被用来更高效,更快速地编写样式表。

In SASS power and advantages of programming techniques are used to write style sheets more efficiently and quickly.

这篇关于Sass和浏览器渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆