Permalink
Browse files

add css example

  • Loading branch information...
1 parent 84134cd commit 9e40d3b9340a6dedd1121a16562bc31b34065911 @tj tj committed Feb 24, 2013
Showing with 23 additions and 0 deletions.
  1. +23 −0 examples/css.html
View
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>dom - event delegation</title>
+</head>
+<body>
+ <span>Hello</span>
+ <script type="text/javascript" src="../build/build.js"></script>
+ <script>
+ var dom = require('dom');
+
+ dom('span').css({
+ border: '1px solid #eee',
+ width: 200,
+ height: 200,
+ 'text-align': 'center',
+ position: 'absolute',
+ top: 50,
+ left: 50
+ });
+ </script>
+</body>
+</html>

0 comments on commit 9e40d3b

Please sign in to comment.