Css动态应用类风格

时间:2016-12-24 07:07:47

标签: css html5 css3 sass

我使用过CSS选择所有元素 * * 。 现在使用 node - * 类名为node-1,node-2动态更改。

.page-node #node-* p {
  font-size: 16px;
}

CSS可能。

1 个答案:

答案 0 :(得分:0)

尝试对id进行属性匹配。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_splash"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="store.shopnix.com.kenburns.Splash">

<ImageView
    android:id="@+id/icon"
    android:layout_width="75dp"
    android:layout_height="75dp"
    android:layout_centerInParent="true"
    android:alpha="0.0"
    android:src="@drawable/icon" />

Export

相关问题