close
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("h1").css({
'background-color': '#f48035',
'color': 'blue'
});
});
});
</script>
</head>
<body>
<h1>H1 測試</h1>
<button>Add style</button>
</body>
</html>
文章標籤
全站熱搜
留言列表