|
主题: 请教高手
|
 爱多媒体爱生活
职务:普通成员
等级:2
金币:1.0
发贴:303
注册:2003/2/20 14:25:56
|
#12003/10/25 9:06:08
我想输出一秒加一的数!!应改哪??
|
 我佛山人
职务:版主
等级:4
金币:16.0
发贴:2269
注册:2002/8/7 15:09:27
|
|
 爱多媒体爱生活
职务:普通成员
等级:2
金币:1.0
发贴:303
注册:2003/2/20 14:25:56
|
#32003/11/13 17:52:38
前辈!!可否进行解释??
|
 爱多媒体爱生活
职务:普通成员
等级:2
金币:1.0
发贴:303
注册:2003/2/20 14:25:56
|
#42003/11/13 17:54:29
这个是什么啊?
|
 { 在指尖上绽放的花朵 }
职务:普通成员
等级:5
金币:14.0
发贴:3209
注册:2002/7/25 21:24:11
|
#52003/11/13 22:12:25
引用: You group sections of an HTML page when you want to perform an action on multiple elements. For example, you might group a series of paragraphs in order to apply a single style to the entire section, instead of to each paragraph individually. You use the HTML tags DIV and SPAN to group your elements in this way:
◎ DIV is used to group a series of elements into a larger group. For example, you can group multiple paragraphs and headings or several elements on a form together using the DIV tag. DIV is used to offset a group of elements; that is, when you insert a DIV tag in a page, the DIV tag adds a paragraph break after its closing tag. DIV should not be used within a paragraph of text for this reason.
◎ SPAN is used within an element to group a part of it that is too small to capture with regular HTML tags. For example, you can use the SPAN tag to group a few sentences from within a paragraph, so you can perform actions that affect only that text. SPAN does not make formatting changes to the document as does the DIV tag, and is therefore better suited for use within paragraphs and in other elements where you do not want to introduce more white space. You can add DIV and SPAN tags to the page designer by highlighting the elements you want to group, then choosing the DIV or SPAN icon from the toolbar. Visual Basic automatically inserts the appropriate opening and closing tags in the HTML for your page. The resulting DIV and SPAN elements appear in the treeview, and you can assign IDs and write code for them.
Grouping elements in DIV and SPAN tags can be an important part of your coding efforts, because it allows you to manipulate precise portions of the page. The following HTML code shows an example of DIV and SPAN tags used to manipulate parts of a Web page:
Last name:
First name:
In this example, a DIV tag with the ID "client-fullname" groups the fields that specify the client's first and last name. Each label is part of a SPAN tag. If you wanted to perform an operation on all of the fields on the form, you could use the DIV tag to do so. If you wanted to perform an operation on just one item in the form, you could use the appropriate SPAN tag.
To add a DIV or SPAN tag to your page
Select the elements on your HTML page that you want to enclose in a DIV or SPAN tag. Note[b] You can highlight the elements in either the drawing surface or in the treeview.
Click the [b]Wrap Selection in toolbar icon to add a DIV tag, or the Wrap Selection in toolbar icon to add a SPAN tag. Visual Basic inserts opening and closing tags around your selection.
If you want to program the DIV or SPAN elements, add a unique ID for each element by selecting it in the treeview panel, then setting its ID property in the Properties window.
For More Information For more information on DIV and SPAN tags, see the W3C documentation at www.w3.org.
|