In this project, we will use the DHTML object DIV to help format our views.
在此项目中,我们将使用DHTML对象DIV来帮助格式化我们的视图。
We implement it with another DIV element because this object can contain all other objects including itself.
我们使用另一个DIV元素来实现它,因为此对象可以容纳包括自身在内的所有其他对象。
It also renders DIV within the dialog container for the dialog content.
它还将在对话框内容的对话框容器中呈现DIV。
To achieve an organized appearance, you need something else -- DIV.
为了实现有组织的外观,需要其他东西 —— DIV。
Personally, I have found that creating a separate DIV yourself is almost as easy as working with this widget.
就我个人而言,我认为自己创建一个DIV与使用这个小部件差不多一样容易。
Of course, this doesn't mean you should wrap everything in DIV or SPAN elements.
当然,这并不意味着应该将所有东西都包围在DIV或SPAN元素中。
It is the most important element in our presentation, and nearly 50% of our code deals with DIV objects.
它是我们的演示中最重要的元素,几乎有50%的代码都是处理DIV对象的。
Because the DIV object has a editable mode, when we turn that on, all objects in the DIV can be altered.
因为DIV对象有可编辑模式,当我们开启此模式时,DIV中的所有对象都能被改变。
Without completely banning the DIV element, authors try to use HTML elements that best described the content they contain.
没有完全禁止DIV元素,但是网页编写者开始使用最适合描述其内容的HTML元素。
Listing 3 shows you how to give DIV a proper width.
清单3演示如何给DIV设置合适的宽度。
这份排名还反映了在超级计算速度方面的极快进步。
I "hacked" the link inside the id of the DIV, which probably isn't the ideal method.
我其实“破坏”了此DIV的ID内的链接,而这显然不是最理想的方法。
If you change the size of the window, some browsers will also change the width of DIV.
如果改变窗口的大小,一些浏览器也会改变DIV的宽度。
If you use DIV nested in TD, then the maximum and minimum sizes of the cell are both defined.
如果将div嵌套在TD中,那么单元格的最大和最小尺寸都定义了。
We use DIV and SPAN elements only where we need to define a logical separation in the content.
只在需要在内容中定义逻辑分隔时,才会使用DIV和SPAN元素。
This function is starting the AJAX request and adding an DIV Block with some more text.
这个函数启动AJAX请求并添加一个包含文本的div块。
In modern browsers, CSS properties aren't limited to DIV elements.
在现代浏览器中,css属性并没有局限于DIV元素。
You need to get the length of the text dynamically and then set the size of DIV.
需要动态地获取文本的长度,然后设置DIV的大小。
When the page is first rendered, a DIV container is rendered for the dialog box.
初次呈现页面时,将为对话框呈现一个div容器。
The array is then iterated through, and a DIV element is created for each item in the array.
随后遍历该数组,为数组中的各项创建一个DIV元素。
I pass this function a four-character NWS station ID and the name of an HTML DIV tag.
并向该函数传递四字符的NWS站点ID和HTMLDIV标记名称。
If you have 10 buttons inside a div, attach only one event handler to the div wrapper, instead of one handler for each button.
如果您有10按钮内的一div将只有一个事件处理程序附加到该div包装的每个按钮的一个处理程序而不是。
This main div organizes all the content.
这个主要的div组织所有的内容。
Applying this to the original div element, the contents of the div element would now look like.
将这个函数应用到初始的div元素,div元素的内容就变成下面这样。
The code says that the div selector inherits a property to center the text.
这些代码表明div选择器继承了一个属性,以将文本居中。
Each div has an id that identifies which function it serves.
每个div具有一个ID来标识它所提供的功能。
Dictate that all pages maintain their content in one of four div elements: a div for the header, one for the footer, one for navigation, and one for content.
指明所有页面在下列四个div元素之一中维护其内容:一个div用于页眉,一个用于页脚,一个用于导航,一个用于内容。
Within the body, there's a div named "splash"; that's pretty standard Web practice.
在正文之内,有名为 “splash” 的div 元素;这是非常标准的Web实践。
Using spans here is probably a bit excessive; all the text within the title div will be hidden, as will all the text in the slogan div.
在这里使用span可能有点多余;所有在标题div内的文本将被隐藏,以及所有在标语div内的文本也一样。
Think of a combo box that has two choices, one that hides the div and that one shows the div.
比如一个具有两个选项的组合框,一个选项是隐藏div,一个选项是显示此 div。
应用推荐