Skip to content

type error when I custom css to my button #7182

Discussion options

You must be logged in to vote

The error is because the button tag's type attribute is one of 'submit' | 'reset' | 'button' or don't provide.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type

I suggest use other attribute such as:

<button class="ui-button" btntype="primary"></button>
.ui-button[btntype="primary"]{
	
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BetterWorld-Liuser
Comment options

@BetterWorld-Liuser
Comment options

@liulinboyi
Comment options

Answer selected by BetterWorld-Liuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants