提交 d2f20ef6 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新CSS示例

上级 bdcb40b7
......@@ -557,7 +557,13 @@
"style": {
"navigationBarTitleText": "font-weight"
}
},
},
{
"path": "pages/CSS/text/letter-spacing",
"style": {
"navigationBarTitleText": "letter-spacing"
}
},
{
"path": "pages/CSS/text/line-height",
"style": {
......
<template>
<view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;">
<text class="common">letter-spacing</text>
<text class="common" style="letter-spacing: 5px;">letter-spacing: 5px</text>
<text class="common" style="letter-spacing: -2px;">letter-spacing: -2px</text>
</view>
</view>
</template>
<script>
</script>
<style>
.common {
font-size: 20px;
}
</style>
\ No newline at end of file
......@@ -295,6 +295,10 @@
name: 'font-weight',
url: '/pages/CSS/text/font-weight',
},
{
name: 'letter-spacing',
url: '/pages/CSS/text/letter-spacing',
},
{
name: 'line-height',
url: '/pages/CSS/text/line-height',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册