效果:
依赖包:
angular-1.3.0.js
代码:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>记账本</title> <script src="angular-1.3.0.js"></script> <style type="text/css"> * { margin: 0; padding: 0; } li { height: 24px; line-height: 24px; list-style: none; } main { position: relative; margin: 0 auto; } div { height: 48px; line-height: 48px; } section { width: 512px; } .ipt { width: 388px; margin: 0 auto; } .ipt input { width: 320px;