CSS() METODU
Daha önceki derslerimizde de kullandığımız bu özellik seçtiğimiz nesnenin css özelliklerini değiştirmemize yarar.
örnek:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("h1").css({"background-color":"green","font-size":"350%"});
});
</script>
<title>css ödev</title>
</head>
<body>
<p> melek css i yok.... </p>
<h1>amaaa burada css kullandik...</h1>
</body>
</html>
Hiç yorum yok:
Yorum Gönder