`
默默的小熊
  • 浏览: 227509 次
社区版块
存档分类
最新评论
文章列表

盒模型1

    博客分类:
  • css
    内边距出现在内容区域的周围。如果在元素上添上背景,那么背景会应用于内容和内边距组成的区域。因此,我们常常使用内边距在内容周围创建一个隔离带,是内容不会于背景混在一起。     添加边框会在内边距外加一条线。这些线可以有多种样式,比如实线、虚线或点线。在边框外的是外边距。外边距是透明的。一般使用它来控制元素之间的间隔。     内边距、边框和外边距都是可选的的,默认值是零。但是,许多元素将由用户代理样式表设置外边距和内边距。可以通过将元素的margin和paddding设置为零来覆盖这些浏览器样式。这可以分别进行,也可以使用通用选择器对这些元素进行设置:   *{ margin: ...

dojo.place

    博客分类:
  • dojo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>index</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="text/javascript" djconfig= ...

dijit._Contained源码

    博客分类:
  • dojo
define("dijit/_Contained", ["dojo", "dijit"], function(dojo, dijit) { dojo.declare("dijit._Contained", null, { // summary: // Mixin for widgets that are children of a container widget // // example: // | // make a basic custom ...

dijit._Container源码

    博客分类:
  • dojo
define("dijit/_Container", ["dojo", "dijit"], function(dojo, dijit) { dojo.declare("dijit._Container", null, { // summary: // Mixin for widgets that contain a set of widget children. // description: // Use this mixin for widgets that n ...

dojo语句执行顺序

    博客分类:
  • dojo
  dojo.declare("Test", null, { myData : null, myFunc : function() { alert(this.myData); console.log("4"); }, constructor : function() { console.log("1"); dojo.xhrGet({ url : "data.json", load : function(data) { this.myData = ...

js中遇到的错误1

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf ...
    对于hibernate的对象关系映射文件,最简单的写法如下: <hibernate-mapping package="test"> <class name="Student" table="student"> <id name="id"></id> <property name="age"/> <property name="name&qu ...

dijit.form.DateTextBox

    博客分类:
  • dojo
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf ...
    dojo有两个小部件实现了增量搜索,dojo.from.FilteringSelect和dojo.from.ComoBox.他们都是从dojo.data数据源中获取提示数据,并且每一个都使用一个<select>标签来实现界面,所不同的是FilteringSelect使用将选项限制在提示数据的集合内,而ComoBox不会这样做。   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> < ...

dojo.hitch

    博客分类:
  • dojo
    dojo.hitch是一个比较有用的方法,主要是给一个函数提供执行环境。 var theAccumulator = { total: 0, clear: function(){ this.total = 0; }, add:function(x){ this.total += x; }, getResult: function(){ return this.total; } } function printResult(f){ console.l ...
    在dojo中使用dojo.declare函数来定义类。对于dojo.declare它有三个参数     1.函数名(类名)     这个函数是在全局对象空间创建的,一般情况下,在全局对象作用空间中,创建函数并不是很好,所以可以使用一个由点分开的名字,从而在另一个空间保存新的构造函数。如   dojo.declare("myFunction.Circle",null,{     这样会在全局创建一个myFunction的对象,在这个对象下面会有Circle函数。    2. 超类     可以为空,允许多继承。    3.props散列     指定键 ...

类设计2

    有了前面的学习,现在该是解决ReportService和PdfReportService类之间的依赖关系了。     引入新的Container类: public class Container { private static final Container _container = new Container(); private Map<String, Object> components; private Container(){ components = new HashMap<String, Object> ...

类设计1

public class ReportService { private ReportGenerator generator = new PdfReportGenerator(); private int[][] data = new int[50][50]; public void generateAnnulReport(){ generator.generate(data); } public void generateMonthlyReport(){ generator.generate(data); } public ...
postMixInProperties: function(){ // summary: // Called after the parameters to the widget have been read-in, // but before the widget template is instantiated. Especially // useful to set properties that are referenced in the widget // template. // tags: // protected }, ...

jsp的cookie值2

    前面已经创建了一个cookie的项目,而且在访问index.jsp页面时,已经从服务器中传回来了cookie值。现在我们尝试访问cookie页面下的test.jsp,下图是显示结果:     当我们再创建一个cookie2的项目,这时去访问其下的一个页面,可以看到没有cookie项目下的cookie能传给它。
Global site tag (gtag.js) - Google Analytics