摘要:引用:http://www.aa25.cn/div_css/902.shtmlcss盒模型是本节教程的重点。前面几个知识点,如果您会用表格布局的话,就非常好理解和掌握了。这里的盒模型是和table布局的一个不同点。学 习web标准,首先要弄懂的就是这个盒模型,这就是DIV排版的核心所在。传统的表格排版是通过大小不一的表格和表格嵌套来定位排版网页内容,改用CSS 排版后,就是通过由CSS定义的大小不一的盒子和盒子嵌套来编排网页。这种排版方式的网页代码简洁,表现和内容相分离,维护方便,能兼容更多的浏览器,比 如PDA设备也能正常浏览。那么它为什么叫盒子呢?先说说我们在网页设计中常听的属性名:内容(
阅读全文
摘要:主要有两种方式:一种是基于XML Schema的设置,一种是基于Annotation的支持基于XML Schema的前置通知(现在LogBeforeAdvice不需要实现MethodBeforeAdvice)LogBeforeAdvice.javapublic class LogBeforeAdvice { public void before(JoinPoint joinPoint) { System.out.println(joinPoint.getSignature().getName()+",start.............LogBeforeAdvice");
阅读全文
摘要:首先定义一个登录页面:login.htmllogin.html <style type="text/css"><!--#stylePanel img { padding: 5px; margin: 8px; border: 2px solid #FFFFFF;}--></style><form action="#" method="post"> <table border="0" align="center" cellpadding=&quo
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>登陆注册</title><sty
阅读全文