<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>jQuery CSS</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
<!--
function changeCSS()
{ $("p").css("color", "#ff0000");
}
// -->
</script>
</head>
<body>
<h1>jQuery CSS サンプル</h1>
<p>jQueryとは?</p>
<form>
<input type="button" value="書き替え" onClick="changeCSS()">
</form>
</body>
</html>
|