2021/4/25
```css
在这里插入代码片<template>
<view>
<view class="box" >
<text>123</text>
<navigator url="">跳转</navigator>
<view class="child"></view>
</view>
<view class="box box1">我是box1</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
to (){
uni.navigateTo({
url:"../index/index"
})
}
}
}
</script>
<style lang="scss">
.box{
width: 400upx;
height: 400upx;
background-color: #007AFF;
text{
color: blue;
font-size: 40px;
}
.child{
width: 100upx;
height: 100upx;
background-color: red;
}
&.box1{
color: yellow;
font-size: 100upx;
}
&::after{
display: block;
content: "伪元素";
color: red;
}
}
</style>