div
美
英 [div] 
- 網(wǎng)絡(luò)等分;除法(division);定數(shù)等分
詞形變化
復(fù)數(shù):divs
英漢解釋
例句
We mentioned earlier that this leverages jQuery's convention of using divs on the page to stand for separate pages of your application.
我們之前提到過,它利用jQuery在頁面上使用div的約定來代表您的應(yīng)用程序的各個頁面。
First, create a simple bold header, an empty div to hold your generated number, and a button that will fire off the entire process.
首先,創(chuàng)建一個加粗的標(biāo)題、一個用來保存生成的數(shù)的空div及一個用來啟動整個進(jìn)程的按鈕。
You then use the document object to create a new element, just as you would do in any other language, with the name of div.
然后可以使用document對象創(chuàng)建一個名為div的新元素,就像在其他語言中一樣。
Finally, if you add an img into your XHTML, you've got to further position the image, as well as the div.
最后,如果在XHTML中添加了img,則需要進(jìn)一步定位圖像和div。
That way you can easily see how the div elements are laid out on the screen -- a great tool when you are developing a new site.
這樣一來,就可以很容易地看到div元素是如何在屏幕上布局的——在開發(fā)新站點(diǎn)時,這是一個很好的工具。
The body of the page includes an input field for the search term and a results div that holds the output.
頁面的主體包括搜索關(guān)鍵詞的輸入字段和保存此輸出的結(jié)果div。
The first of these is the handler panel at the top of the code segment, which is a wrapper for a div tag with the class panel.
第一個助手是位于代碼段頂部的處理程序panel,這是帶有panel類的div標(biāo)記的包裝器。
To begin, wrap each individual section of content in a new div with a unique id attribute and a class attribute of tabContent.
首先,把每部分內(nèi)容包裝在一個新的div中,并在其中添加惟一的id屬性和值為tabContent的class屬性。
This new declaration relies on the fact that jTip wraps its tooltips in a div with an id attribute of "JT. "
這個新聲明基于這樣一個事實(shí):jTip把它的工具提示和JT的id屬性包裝在同一個div里。
Since Dojo lets you assign a target URL to a div container, we create a div that will reference our widget that we exposed as a resource.
因?yàn)?/c>Dojo支持您將目標(biāo)URL指定給div容器,所以我們將創(chuàng)建一個引用小部件(顯示為數(shù)據(jù)源)的div。
Div and span still have their places, but those places are much more restricted than they used to be.
Div和span仍然有用處,但是不會像以前那樣頻繁地使用它們了。
In this case, you replace the innerHTML value of the DIV tag with an updated string each time the user clicks on the scrollbar.
在這個例子中,每當(dāng)用戶單擊滾動條時,便用一個更新的字符串替換DIV標(biāo)記的innerHTML值。
The body of the page includes a single div element, which includes a heading element (h1) and a form element.
頁面的正文包括一個單個的div元素,該元素包含一個heading元素(h1)和一個form元素。
DIV using JS and HTML files to achieve a dynamic display page N, the surface, feeling a lot of pages you visit, in fact, a HTML document.
利用JS和DIV實(shí)現(xiàn)一HTML文件動態(tài)顯示N個頁面,表面上感覺你游覽了很多頁面,其實(shí)HTML文件就一個。
When it receives the data, it adds it to the page, typically as the contents of a div element.
接收到數(shù)據(jù)時,就將數(shù)據(jù)添加到頁面中(通常作為一個div元素的內(nèi)容)。
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可能有點(diǎn)多余;所有在標(biāo)題div內(nèi)的文本將被隱藏,以及所有在標(biāo)語div內(nèi)的文本也一樣。
Maxwell's equations actually tell you about div and curl of these fields.
實(shí)際上,Maxwell方程組,描述了這兩個場的旋度和散度。
The div which I'm trying to position contains a link which makes use of an image.
其中的div我試著位置包含一個鏈接,使圖像的使用。
The HTML file contains a few div tags that make positioning the input control and the suggestions a little easier.
HTML文件包含一些div標(biāo)記,定位輸入控件并使建議選項(xiàng)容易些。
This code tells the Prototype library that the results from this link will update the HTML element with the name time_div.
此代碼告訴Prototype庫:此鏈接中的結(jié)果將用time_div這一名稱更新HTML組件。
Within the body, there's a div named "splash" ; that's pretty standard Web practice.
在正文之內(nèi),有名為“splash”的div元素;這是非常標(biāo)準(zhǔn)的Web實(shí)踐。
Beyond that, you really don't need to know if the parent is a div, or a p, or even the body of the page; it just doesn't matter!
此外,完全不需要知道它是一個div、p或者頁面的body,都沒有關(guān)系!
In the overriding function, we are wrapping the DIV element around the delimited list of links and returning the resulting string.
在覆蓋的函數(shù)中,我們在鏈接列表外邊加上DIV元素并返回產(chǎn)生的字符串。
The contents of this response are replaced with the contents of the DIV tag in the original page, as mentioned previously.
這個響應(yīng)的內(nèi)容被原始頁面中DIV標(biāo)記的內(nèi)容替換,如前所述。
At any point in time, the visibility of these two div elements is mutually exclusive.
在任何時候,這兩個div元素的可見性都是相互排斥的。
Could you help me to fill out the two divs - immigration div and customs declaration div ?
您可以幫我填一下入境申報單、海關(guān)申報單嗎?。
You cannot hard-code the size, because the length of the text in DIV is not fixed if you support multiple languages.
不能對這個大小進(jìn)行硬編碼,因?yàn)?/c>如果支持多種語言,DIV中文本的長度是不固定的。
Note that the URLs for the link elements inside your tabs correspond with the names of the content divs you created earlier.
注意到選項(xiàng)卡內(nèi)鏈接元素的這些URL對應(yīng)于之前創(chuàng)建的內(nèi)容div的名稱。
So a div element might have a list that contained an attribute named "id" and another named "class. "
所以div元素可能有一個包含屬性“id”和另一個屬性“class”的列表。
To begin, all Blueprint pages must be contained in a div aptly tagged class= "container" .
首先,所有的Blueprint頁面必須包含在一個適當(dāng)標(biāo)記的div中class=“container”。
If there is a value, then use the innerHTML function to display whatever value might be in the content div.
如果有值,那么就用innerHTML函數(shù)來顯示內(nèi)容div中的這個值。
In any case, this code makes use of a few rails_iui block helpers that wrap div tags with particular CSS classes defined by iUI.
無論如何,這段代碼都使用一些rails_iui代碼塊助手,這些助手將用iUI所定義的特定CSS類封裝div標(biāo)記。
Each div has its own color rule that overrides the body selector.
每個div都具有自己的color來覆蓋body選擇器。
Because editNote takes the id value of the appropriate div, the same function can be used for any note, as seen in Figure 5.
因?yàn)?/c>editNote使用相應(yīng)的div的id值作為參數(shù),相同的函數(shù)可以用于任意節(jié)點(diǎn),如圖5所示。
Yes, old friends like div remain, but now HTML includes section, header, footer, and nav as well.
是的,他熟悉的元素(比如div)仍然保留了;但是,HTML現(xiàn)在還包含section、header、footer和nav等新元素。
I pass this function a four-character NWS station ID and the name of an HTML DIV tag.
并向該函數(shù)傳遞四字符的NWS站點(diǎn)ID和HTMLDIV標(biāo)記名稱。
There may be situations where you need to wrap DIV or SPAN containers around to a form widget to access it from your CSS stylesheets.
在許多情況下,需要用DIV或SPAN容器包圍一個表單組件,以便從CSS樣式表訪問它。
Now that you are calling the service with the Dojo code, you can update the contents of the div element to include the query results.
既然您將要使用Dojo代碼調(diào)用服務(wù),您也可以更新div元素的內(nèi)容來包含查詢結(jié)果。
Without completely banning the DIV element, authors try to use HTML elements that best described the content they contain.
沒有完全禁止DIV元素,但是網(wǎng)頁編寫者開始使用最適合描述其內(nèi)容的HTML元素。
The code in Listing 6 is straightforward HTML. The toolbar was created by using a div with the toolbar class applied to it.
清單6中的代碼是一個簡單的HTML,工具欄是使用一個應(yīng)用toolbar類的div創(chuàng)建的。