<html>
<head><meta charset="UTF-8"> <title>數位運算子 - www.tw511.com</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<p class="para1">SASS stands for Syntactically Awesome Stylesheet..</p>
<h2>Hello...Welcome to Sass</h2>
<h3>Hello...Welcome to Sass</h3>
<p class="para2">Hello...Welcome to Sass</p>
</div>
</body>
</html>
$size: 25px; h2{ font-size: $size + 5; } h3{ font-size: $size / 5; } .para1 { font-size: $size * 1.5; } .para2 { font-size: $size - 10; }
sass --watch C:\Ruby22-x64\style.scss:style.css
h2 { font-size: 30px; } h3 { font-size: 5px; } .para1 { font-size: 37.5px; } .para2 { font-size: 15px; }