Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 如何使用NativeScript Vue设置标签样式?文档示例isn';行不通_Css_Mobile_Nativescript_Nativescript Vue - Fatal编程技术网

Css 如何使用NativeScript Vue设置标签样式?文档示例isn';行不通

Css 如何使用NativeScript Vue设置标签样式?文档示例isn';行不通,css,mobile,nativescript,nativescript-vue,Css,Mobile,Nativescript,Nativescript Vue,我有一个简单的网格布局 <GridLayout columns="*, *, *" rows="100"> <Label id="all-sales" text="0,0" row="0" col="0" style="background-color: blue"/> <Label text="a,1" row="0" col="1" class="links" backgroundColor="blue" />

我有一个简单的网格布局

<GridLayout columns="*, *, *" rows="100">
            <Label id="all-sales" text="0,0" row="0" col="0" style="background-color: blue"/>
            <Label text="a,1" row="0" col="1" class="links" backgroundColor="blue" />
            <Label text="0,1" row="0" col="3" class="links"/>
        </GridLayout>

你的问题是第一个标签上没有背景色吗?是的,我希望所有三个都是蓝色的。这对我来说很有效,你能试着建立一个可以复制这个问题的游乐场吗。
  "dependencies": {
    "@nativescript/theme": "^2.2.1",
    "axios": "^0.19.2",
    "nativescript-ui-listview": "^8.0.1",
    "nativescript-ui-sidedrawer": "~8.0.0",
    "nativescript-unit-test-runner": "^0.7.0",
    "nativescript-vue": "~2.4.0",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.3.0",
    "typescript": "^3.7.5",
    "vuex": "^3.1.2"
  },