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>


arrow
arrow
    文章標籤
    css add Button
    全站熱搜

    Roger 發表在 痞客邦 留言(0) 人氣()