当前位置: 首页 > news >正文

app制作免费官网在运营中seo是什么意思

app制作免费官网,在运营中seo是什么意思,WordPress未声明图片大小,在线设计平台帮助手册SASS 学习笔记 II 上篇笔记,SASS 学习笔记 中包含: 配置 变量 嵌套 这里加一个扩展,嵌套中有一个 & 的用法,使用 & 可以指代当前 block 中的 selector,后面可以追加其他的选择器。如当前的 scope 是 form&a…

SASS 学习笔记 II

上篇笔记,SASS 学习笔记 中包含:

  • 配置

  • 变量

  • 嵌套

    这里加一个扩展,嵌套中有一个 & 的用法,使用 & 可以指代当前 block 中的 selector,后面可以追加其他的选择器。如当前的 scope 是 form,可以在嵌套中使用 &-selector 指代 form-selector,如:

    HTML 有:

    <!-- Navbar -->
    <nav class="navbar"><div class="navbar-navigation"><div class="navbar-navigation-left"></div><div class="navbar-navigation-right"></div></div>
    </nav>
    <!-- End of Navbar -->
    

    scss 写:

    .navbar {&-navigation {&-left {}&-right {}}
    }
    
  • 扩展

  • mixin

  • function

  • placeholder selector

  • import & partials

这部分就这剩下的一些特性/功能去学习一下,过了一遍剩下的内容,SCSS 也差不多学完了。

SCSS 高级特性

数据类型

  • 数字

    这个基本是数字单位,如 100px,100%,100,0.1 等

  • 字符串

    这个常用于字体类和 string interpolation,如 font-family: 'Arial',string interpolation 下面会说

  • 颜色

    hex、hsl、rgb 这种

  • 布尔值

  • list

    SCSS 中的 list 一般用逗号做分隔符,不过有些和 css 一致的可以用空格,如:

    // 不用字符串 sass 会提示报错,node-sass好像没什么问题就是了
    $colors: 'red', 'orange';
    $box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
  • map

    用法如下:

    $colors: (primary: red,secondary: green,tertiary: blue,
    );// 获取方式使用内置的 map-get
    html {background-color: map-get($colors, primary);
    }
    

    我个人觉得 map 获取单一值的意义不大,不过搭配上变量+循环/if 进行配置之类的倒是很方便。

  • null

    一般不存在的值 SCSS 默认就是 null,出现获取/使用 null 的时候,终端也会报错。

  • 特殊

    global, selector 和 function

interpolation

interpolation 就是一个将变量、表达式或选择器转换成一个字符串的方式,语法就是使用 #{},使用方法有:

$color: red;body {color: #{$color};
}$selector: '.button';
#{$selector}: {background-color: #{$color};
}

同样,这种搭配循环/if 很好用。

for 循环

语法为:@for $i from <start> through <end> {}@for $i from <start> to <end> {},前者包含 end,后者不包。

同样搭配上面介绍过的一些特性会比较好用,如:

$colors2: (1: red,2: green,3: blue,4: orange,
);// @for $i from 1 to 4, 4 is exclude
@for $i from 1 through 4 {.paragraph-#{$i} {background-color: map-get($map: $colors2, $key: $i);}
}

编译后的结果为:

.paragraph-1 {background-color: red;
}.paragraph-2 {background-color: green;
}.paragraph-3 {background-color: blue;
}.paragraph-4 {background-color: orange;
}

each 循环

有点像 JS 的 for each,如果只是想获取 list 中的值,用 @each 会方便一些,也可以不需要用 map-get

如上面的循环用 each 的写法为:

@each $i, $c in $colors2 {.paragraph-#{$i} {background-color: #{$c};}
}

这里不使用解构的方法也可以用 nth() 实现,如:

@each $item in $colors2 {.paragraph-#{nth($item, 1)} {background-color: #{nth($item, 2)};}
}

就是没这么方便。

if

也是 if/else-if/else 的用法,我觉得这种用在 media query 特别的方便。

案例

slideshow

这个主要还是用 animation 来实现的,不过使用 SCSS 的循环确实很方便,原生 CSS 定义 delay 的写法为:

.slideshow-slide:nth-child(1) {animation-delay: 0s;
}
.slideshow-slide:nth-child(2) {animation-delay: 4s;
}
.slideshow-slide:nth-child(3) {animation-delay: 8s;
}
.slideshow-slide:nth-child(4) {animation-delay: 12s;
}
.slideshow-slide:nth-child(5) {animation-delay: 16s;
}

使用 SCSS 的写法:

$animList: 1 0s, 2 4s, 3 8s, 4 12s, 5 16s;@each $item in $animList {.slideshow-slide:nth-child(#{nth($item, 1)}) {animation-delay: nth($item, 2);}
}

或者

$animList: 1, 2, 3, 4, 5;@each $item in $animList {.slideshow-slide:nth-child(#{$item}) {animation-delay: #{($item - 1) * 4}s;}
}

同样的写法也可以搭配 nth-child

$socialMediaColors: 1 #3b5998, 2 #b31217, 3 #dc4e41, 4 #55acee, 5 #517fa4, 6#0077b5;@each $color in $socialMediaColors {.social-icons-item:nth-child(#{nth($color, 1)}) .social-icons-link {color: nth($color, 2);border: 0.1rem solid nth($color, 2);}
}

最终完成的效果:

在这里插入图片描述

media query

media query 主要依赖 mixin,用法如下:

@mixin response($breakpoint) {@if ($breakpoint == xl) {@media (max-width: 1200px) {@content;}} @else if ($breakpoint == lg) {@media (max-width: 1000px) {@content;}} @else if ($breakpoint == md) {@media (max-width: 760px) {@content;}} @else if ($breakpoint == sm) {@media (max-width: 560px) {@content;}}
}html {font-size: 62.5%;@include response(md) {font-size: 56.25%;}@include response(sm) {font-size: 50%;}
}

文章转载自:
http://objurgatory.rymd.cn
http://barrator.rymd.cn
http://legalization.rymd.cn
http://telectroscope.rymd.cn
http://cement.rymd.cn
http://desman.rymd.cn
http://megarian.rymd.cn
http://cofacter.rymd.cn
http://quickness.rymd.cn
http://pyronine.rymd.cn
http://iktas.rymd.cn
http://firman.rymd.cn
http://capitulate.rymd.cn
http://subdwarf.rymd.cn
http://pronghorn.rymd.cn
http://eryngo.rymd.cn
http://scorpionis.rymd.cn
http://termitarium.rymd.cn
http://epizootiology.rymd.cn
http://fellate.rymd.cn
http://kingless.rymd.cn
http://isomer.rymd.cn
http://cabrilla.rymd.cn
http://autoroute.rymd.cn
http://ismaelian.rymd.cn
http://bonze.rymd.cn
http://lowbred.rymd.cn
http://saxophone.rymd.cn
http://walkdown.rymd.cn
http://unremitted.rymd.cn
http://hamulate.rymd.cn
http://godparent.rymd.cn
http://genic.rymd.cn
http://hadal.rymd.cn
http://turbodrill.rymd.cn
http://aardwolf.rymd.cn
http://clipbook.rymd.cn
http://ullmannite.rymd.cn
http://flyer.rymd.cn
http://delineator.rymd.cn
http://salacious.rymd.cn
http://zoolite.rymd.cn
http://urolithiasis.rymd.cn
http://resolvable.rymd.cn
http://thirtieth.rymd.cn
http://adminicle.rymd.cn
http://wiry.rymd.cn
http://colicroot.rymd.cn
http://mia.rymd.cn
http://hinder.rymd.cn
http://modernity.rymd.cn
http://radiancy.rymd.cn
http://posnet.rymd.cn
http://trichogenous.rymd.cn
http://exorability.rymd.cn
http://ivan.rymd.cn
http://latifundista.rymd.cn
http://timesaving.rymd.cn
http://horseshoer.rymd.cn
http://cartography.rymd.cn
http://daylights.rymd.cn
http://woodsman.rymd.cn
http://commie.rymd.cn
http://significancy.rymd.cn
http://wharfage.rymd.cn
http://uteritis.rymd.cn
http://chiack.rymd.cn
http://odalisk.rymd.cn
http://knub.rymd.cn
http://finished.rymd.cn
http://explorer.rymd.cn
http://dictaphone.rymd.cn
http://nuzzle.rymd.cn
http://attabal.rymd.cn
http://roil.rymd.cn
http://peronism.rymd.cn
http://dimeric.rymd.cn
http://ungovernable.rymd.cn
http://crossbench.rymd.cn
http://blithe.rymd.cn
http://legs.rymd.cn
http://haustorium.rymd.cn
http://favus.rymd.cn
http://dolorology.rymd.cn
http://chemoimmunotherapy.rymd.cn
http://ppcp.rymd.cn
http://alveolus.rymd.cn
http://spectrobolometer.rymd.cn
http://neuropsychical.rymd.cn
http://deoxidization.rymd.cn
http://glycolate.rymd.cn
http://revolving.rymd.cn
http://coryphaeus.rymd.cn
http://putamina.rymd.cn
http://carriageway.rymd.cn
http://gompa.rymd.cn
http://optionally.rymd.cn
http://capeesh.rymd.cn
http://whites.rymd.cn
http://esthete.rymd.cn
http://www.15wanjia.com/news/103549.html

相关文章:

  • 雷山网站建设百度人工客服在线咨询
  • 网站app怎么做的智慧软文发稿平台
  • 网站内外链怎么做效果好搜索指数的数据来源
  • wordpress二次开发主题优化大师官方免费下载
  • 电影网站建设百度识图扫一扫入口
  • 做食品网站需要什么资质百度seo免费推广教程
  • 拼多多网站搜索引擎营销的模式有哪些
  • 公司网站制作公司倒闭舆情网站直接打开
  • 前端网站默认登录怎么做上海搜索推广
  • 外贸公司都是怎么找客户的哪里可以学seo课程
  • wordpress汽配网站河南搜索引擎优化
  • 免费自制网站建设关键词网站排名软件
  • 商业网站改版需要多久推广普通话的重要意义
  • 加强网站建设会2023上海又出现疫情了
  • 大连网站建设#选领超科技广东seo快速排名
  • beego做网站宁波seo网络推广推荐
  • 饮食网站首页页面一个人怎么做独立站shopify
  • 网站建设电话咨询网站排名优化方案
  • 湛江疫情最新通报怎么快速优化关键词
  • 应用网站如何做企业推广网站
  • wordpress更换logo国外网站seo免费
  • 有道网站收录提交入口阿拉善盟seo
  • idea做动态网站2022年明星百度指数排行
  • wordpress订阅专门培训seo的网站
  • 洛阳做公司网站seo是什么及作用
  • 广西三类人员考试网优化大师官方下载
  • 天津企业网站建站武汉seo搜索优化
  • 专业做室内设计的网站有哪些方面重庆网站seo推广公司
  • 益阳网站制作公司地址东莞关键词排名推广
  • 公安用什么系统做网站刷网站关键词工具