如果一个内容页文章标题字体,米米素材网小编想要给其字体增加倒影,做法如下: html:
例如目前已有一个 page 页面,其中拥有一组 page-title 的样式: .page { .page-title { .icon { width: 10px; ;} 那么编译之后的结果看上去会非常奇怪: .page .page-title .icon, .page .card-title .icon { width: 10px;}.page .page-title 而如果你尝试将公共的 title 样式抽象为 mixin,再在 page-title 和 card-title 中进行复用: @mixin title { .icon { width : 10px; } .label { width: 100px; }}.page { .page-title { @include title }}.card-title { @include title} 编译的结果如下: .page .page-title .icon { width: 10px;}.page .page-title
} .logo-box img{ width: 60px; height: 60px; } .page-title {{ static('common/images/logo.jpg') }}" alt="">
{{ static('common/images/logo.jpg') }}" alt="">
font: { family: Arial; size: 20px; weight: bold; } color: #ff0000; } .page-title { @include large-text; // 引入 padding: 4px; margin-top: 10px; } 编译后 .page-title { font-family
引用混合样式@include 使用 @include 指令引用混合样式,格式是在其后添加混合名称,以及需要的参数(可选): .page-title { @include large-text; padding: 4px; margin-top: 10px; } 编译为 .page-title { font-family: Arial; font-size: 20px; font-weight
视图层模板-.wxml文件 <view class="movies" catchtap="onPageClick"> <view class="<em>page-title</em>" wx:if="{{movies.length v_url=${url}` }); }); } }); 用.wxss定义局部样式 .<em>page-title</em> { color: rgb(142, 142
template> <template if:true={hasAcc}>
-- 头部标题部分 --> <page-title> <bread slot="title" :crumbs="[{name: 'xx管理', path: '', active: true , icon: ''}, {name: 'xxxx', path: '', active: true, icon: ''}]"></bread> </page-title> <!
large-text { font: { family: Arial; size: 20px; weight: bold; } color: #ff0000; } .page-title
a-layout :style="{ background: '#fff' }"> <a-layout-header class="header"> <div class="<em>page-title</em>
text-align: center; padding-top: 40px; } .logo-box img { width: 60px; height: 60px; } .page-title
/config'; .page-title { @include config.font-family('header'); } This even works with my existing
1.在src/components目录下新建CommentList.vue <template>
border-radius:.3rem;border:.1em solid rgba(0,0,0,.05);background:#5ba4e5}#topics .postTitle a:link,.page-title font-weight:700;color:#fff}.sb-title{-webkit-animation:fade-in-down 1s;animation:fade-in-down 1s both}.page-title webkit-animation:fade-in-down 1s both;mix-blend-mode:screen;font-size:5rem;font-family:Playball,cursive}.page-title postTitle a:link{font-size:2.8rem}.entrylistItemPostDesc,.postDesc{font-size:1.3rem}.entrylistPosttitle,.page-title important}.inner{width:auto;margin:2rem auto}.entrylistPosttitle,.page-title{font-size:2.6rem}.sb-title
[endif]--> </head> <body>
还有就是一个路由容器,我们的首页index.vue到时候也是挂载在路由容器中的,看看App.vue的代码 入口页App.vue <template>
box-shadow:0 1px 2px rgba(150,150,150,.7)}.inner{position:relative;width:80%;max-width:800px;padding:10px}.page-title fade-in-down 1s both;-webkit-animation-delay:.6s;animation-delay:.5s;text-shadow:0 3px 6px rgba(0,0,0,.3)}.page-title postTitle a:link{font-size:2.8rem}.entrylistItemPostDesc,.postDesc{font-size:1.3rem}.entrylistPosttitle,.page-title important}.login_tips{font-size:12px}.inner{width:auto;margin:2rem auto}.entrylistPosttitle,.page-title
box-shadow:0 1px 2px rgba(150,150,150,.7)}.inner{position:relative;width:80%;max-width:800px;padding:10px}.page-title fade-in-down 1s both;-webkit-animation-delay:.6s;animation-delay:.5s;text-shadow:0 3px 6px rgba(0,0,0,.3)}.page-title postTitle a:link{font-size:2.8rem}.entrylistItemPostDesc,.postDesc{font-size:1.3rem}.entrylistPosttitle,.page-title important}.login_tips{font-size:12px}.inner{width:auto;margin:2rem auto}.entrylistPosttitle,.page-title
;}/* 回忆页样式 */.memories-container { max-width: 900px; margin: 100px auto; padding: 0 20px;}.page-title