Front End/🌈 JavaScript
jQuery] .css( propertyName, value )
James Wetzel
2022. 7. 4. 13:54
.css( propertyName, value )
Html 요소에 Style 속성을 추가 한다.
propertyName
Type: String
A CSS property name.
value
Type: String or Number
A value to set for the property.
$( "p" ).on( "mouseover", function() {
$( this ).css( "color", "red" );
});
728x90
반응형