博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
less使用方法
阅读量:4585 次
发布时间:2019-06-09

本文共 932 字,大约阅读时间需要 3 分钟。

@import "case.css";

*{
margin:0px;
padding: 0px;
border:0px;
}

ul,li{

list-style: -moz-none;
list-style: none;
}
.com{
height:300px;
width:200px;
background: darkgoldenrod;
}

//定义,调取;

.box {
@w: 50px;
@h: 30px;
width: @w;
height: @h;
transition: width 1s, height 3s;
}

 

h1,

h2,
h3 {
font-weight:bold;
}

//私有前缀

.box {
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-ms-transform: rotate(30deg);
-o-transform: rotate(30deg);
transform: rotate(30deg);
}

//多程嵌套

.main {
.title {
font-weight: 700;
}

.content {

line-height: 1.5;
}

.warning {

font-weight: 700;
}
}

#comment:invalid {

color: red;
}

//定义,调取;

@sidebar-width: 200px;
@width: 800px;
@heter:300px;
@background:red;

//调取

.sub {
width:@sidebar-width;
height: @heter;
background: @background;
}

 

//定义

.big-text() {
font-size: 2em;
}

//调取

h3 {
.big-text();
}

@a: 200px;
@b: (@a + 100px) * 2;
.cdd{
width:@b;
}

转载于:https://www.cnblogs.com/fengyuzhen34/p/9198911.html

你可能感兴趣的文章
APICloud模块 aMapLBS.singleAddress在ios返回的是定位而不是地址
查看>>
【ZOJ】1610 Count the Colors
查看>>
抱歉最近朋友结婚去浪了几天~未来几天会正常更新.今天带来XML文件解析
查看>>
[beta cycle]daily scrum7_2.22
查看>>
BSD历史
查看>>
Climbing Stairs
查看>>
css遮罩层与fixed
查看>>
HTML5 Input 类型
查看>>
linux c语言 select函数用法 分类: arm-linux-...
查看>>
浏览网页出现右键查看源代码无效时
查看>>
动态生成的元素绑定KindEditor
查看>>
03--maven4myeclipse配置
查看>>
关于datatable的数据绑定问题
查看>>
c#函数中处理对象的问题
查看>>
转 top、postop、scrolltop、offsetTop、scrollHeight、offsetHeight、clientHeight
查看>>
2017-12-27练习
查看>>
NET设计规范(二) 命名规范
查看>>
VMware 9.0.1安装Mac OS X Mountain Lion 10.8.2
查看>>
SSL延迟
查看>>
android新手关于左右滑动的问题,布局把<android.support.v4.view.ViewPager/><ImageView/> 放在上面就不行了。...
查看>>