Skip to content

引入less, className={"header"}有效果, className={styles.header}没有效果 #114

Description

@scxslsh

import styles from './home.less';

// 有效果
<h2 className={"header"}>Home</h2>

// 没有效果
<h2 className={styles.header}>Home</h2>

// home.less
.header {
padding: 0 12px;
color: #666666;
cursor: move;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions