CSS style attributes

Source: Internet
Author: User
Tags border color set background
CSS style attributes

I element | I object IMG element | IMG object DHTML Object

IFRAME element | IFRAME object

--------------------------------------------------------------------------------

Create an embedded floating framework.

Member table

The following table lists the members of an IFRAME object. Click the label on the left to select the member type you want to view.

Tag attributes/attributes

Display:
Tag attributes/attributes
Action
Set
Event
Filter
Method
Object
Style
Label property description
Align align sets or obtains the table arrangement.
Allowtransparency setting or getting whether the object can be transparent.
Application application indicates whether the object content is an HTML Application (HTA) to avoid browser security mode.
Atomicselection specifies whether the element and its content can be selected in an invisible unit.
Begin begin sets or obtains the delay time before the time series play on this element.
Border border sets or obtains the space between frames, including 3D borders.
Canhavechildren obtains the value indicating whether the object can contain sub-objects.
Canhavehtml indicates whether the object can contain rich HTML tag values.
Class classname specifies or obtains the class of the object.
ContentWindow: obtains the window object of the specified frame or IFRAME.
Dataworks sets or obtains the fields bound to the specified data source of the specified object specified by the datasrc attribute.
Datasrc sets or obtains the data source used for data binding.
Gets the value that indicates whether the user can interact with the object.
End end is set or obtained to indicate the end time of the element, or the element is set to a simple continuous termination time that is repeated.
Firstchild gets the reference of the first child object in the childnodes set of the object.
Frameborder sets or obtains whether to display the frame border.
Hasmedia obtains a Boolean value indicating whether the element is an HTML + time media element.
Set or retrieve the object height.
Hidefocus is set or retrieved to indicate whether the object explicitly indicates the focus value.
Set or obtain the horizontal margin of an object.
Id.
Innertext sets or retrieves the text in the object's start and end labels.
Iscontenteditable obtains the value indicating whether the user can edit the object content.
Isdisabled indicates whether the user can interact with the object.
Ismultiline retrieval indicates whether the object content contains values of one or multiple rows.
Istextedit to determine whether a textrange object can be created using this object.
Set or obtain the language to use in Lang.
Set or obtain the language used for writing the current script.
Lastchild obtains the reference of the last child object in the childnodes set of this object.
Longdesc sets or obtains the Uniform Resource Identifier (URI) of the long description of an object ).
Marginheight sets or gets the margin height before the text in the display frame.
Set marginwidth or obtain the left and right margin width before the text in the display frame.
Set or obtain the framework name.
Nextsibling gets a reference to the next sibling object of this object.
Nodename gets the name of a specific node type.
Obtain the type of the required node from nodetype.
Set or obtain the node value.
Offsetheight gets the height of the object relative to the layout or the parent coordinate specified by the parent coordinate offsetparent attribute.
Offsetleft obtains the left position of the object relative to the layout or the parent coordinate specified by the offsetparent attribute.
Offsetparent gets the reference of the container Object Defining the offsettop and offsetleft attributes of the object.
Offsettop obtains the top position of an object relative to the layout or the parent coordinate specified by the offsettop attribute.
Offsetwidth gets the width of the object relative to the layout or the parent coordinate specified by the parent coordinate offsetparent attribute.
Onoffbehavior: gets the object that indicates whether the specified Microsoft & reg; DirectAnimation & reg; action is running.
Outerhtml sets or obtains the HTML format of the object and its content.
Outertext sets or retrieves the object text.
Ownerdocument sets or obtains the Document Object associated with the node.
Parentelement obtains the parent object in the object hierarchy.
Parentnode obtains the parent object in the document level.
Parenttextedit obtains the document level and can be used to create a textrange container object containing the original object.
Previussibling gets a reference to the previous sibling object of this object.
Readystate: Get the current state of the object.
Obtain the value indicating the current state of the object.
Recordnumber gets the original records of the objects generated in the dataset.
Scopename gets the namespace defined for this element.
Scrolling sets or obtains whether the framework can be rolled.
Security security gets whether the source file of frame or IFRAME has applied the specific security restriction value.
Sourceindex obtains the sequential position of objects in the source order, that is, the order in which objects appear in the all set of documents.
SRC sets or gets the URL to be loaded by the object.
Style sets an embedded style for this setting element.
Syncmaster sets or obtains whether the time container must play back this element synchronously.
Systembitrate obtains the BPS of the available bandwidth in the system.
Systemcaption indicates whether to display text to replace the audio part of the demo.
Systemlanguage indicates whether the specified language is selected in the option settings on the user's computer.
Systemoverduborsubtitle specifies whether to render dubbing or subtitles for users who are watching the demo but are not familiar with the language used by the played audio.
Tabindex is used to set or retrieve the index of the tab sequence of the defined object.
The tagname obtains the Tag Name of the object.
Set the tagurn or obtain the unified Resource Name (URN) specified in the namespace declaration ).
Timecontainer sets or obtains the timeline type associated with the element.
Set the Title or obtain the consultation information of the object (tooltip ).
Uniqueid is the unique identifier automatically generated by the object.
Unselectable specifies that this element cannot be selected.
Vspace sets or obtains the vertical margin of an object.
Width width: set or obtain the width of an object.

Tag attributes/attributes

Action

Action Description
Clientcaps provides information about features supported by Internet Explorer and out-of-the-box installation methods.
Download the downloaded file and notify a specified callback function after the download is complete.
Homepage contains information about the user homepage.
Time provides an active timeline for HTML elements.
Time2 provides an active timeline for HTML elements or a group of elements.

Set

Set description
All returns the reference of the element set contained in the object.
Attributes obtains the set of OBJECT tag attributes.
Behaviorurns returns a set of unified resource names (URN) strings that are appended to the behavior of the element.
Childnodes obtains the set of HTML elements and textnode objects that are directly descendant of a specified object.
Children obtains the set of DHTML objects that are directly descendant of objects.

Event

Event Description
Onactivate is triggered when the object is set to an active element.
Onafterupdate is triggered when the associated object in the data source object is updated successfully on the Data Binding object.
Onbeforedeactivate is triggered immediately before activeelement changes from the current object to another object in the parent document.
Onbeforeupdate is triggered on the Data Binding object before the associated objects in the data source object are successfully updated.
Onblur is triggered when the object loses the input focus.
Oncontrolselect is triggered when you want to create a control area for this object.
Ondeactivate is triggered when activeelement changes from the current object to another object in the parent document.
Onerrorupdate is triggered when an error occurs while updating the associated data in the data source object.
Onfocus is triggered when the object obtains the focus.
Onload is triggered immediately after the browser completes object loading.
Onmove is triggered when the object is moved.
Onmoveend is triggered when the object is stopped.
Onmovestart is triggered when the object begins to move.
Onreadystatechange is triggered when the object state changes.
Onresizeend is triggered when you change the object size in the selected area of the control.
Onresizestart is triggered when you start to change the object size in the selected area of the control.
Ontimeerror is triggered unconditionally when an error occurs at a specific time. It is usually caused by setting the attribute to an invalid value.

Filter

Filter attribute description
Alpha adjusts the opacity of the object content.
Alphaimageloader displays an image between the boundary of an object and between the object background and content. It can be used to crop or scale the image size. When a portable network image (PNG) is mounted, the transparency from 0 to 100% is supported.
Barn displays the object's new content in the form of opening or closing the door.
Basicimage adjusts the color processing, image rotation, or opacity of the object content.
Blendtrans displays the new content of an object in the form of gradually hiding the original content.
Blinds displays new content of an object in the form of opening or closing blind spots.
Blur blur the content of an object to make it look focused.
Checkerboard displays the new content of an object in the form of a checkerboard covering the original content.
Chroma displays the Specified Color of the object as transparent.
Compositor displays the new content of an object in the form of a logical color combination of the New and Old content. The color and Alpha values of each version are calculated to determine the final color of the output image.
The object shadow created by dropshadow. The offset is in the specified direction. This will make the content appear floating, so it will produce a shadow.
Emboss uses grayscale values to display objects in embossed textures.
Engrave uses grayscale values to display objects in carved textures.
Fade displays the new content of an object in the form of a gradually hidden original content.
Fliph displays the object content in the horizontal direction.
Flipv displays the object content in the vertical direction.
Glow adds a halo outside the edge of the object to make it look luminous.
Gradient displays a gradient color surface between the background and content of the object.
Gradientwipe displays the new content of an object in the form of a gradient in the original content.
Gray displays the object content in gray scale.
Icmfilter converts the color content of an object based on the Image Color Management (ICM) configuration file. This allows you to improve the display performance of specified content, or simulate display on hardware devices such as printers or monitors.
Inset displays the object's new content in the diagonal line.
Invert reverses the color, saturation, and brightness of the object content.
Iris displays the object's new content in a rainbow effect, similar to opening the camera aperture.
Light creates a light effect on the object content.
Maskfilter displays transparent pixels of object content as color masks and non-transparent pixels as transparent.
Matrix uses a matrix to transform, scale, rotate, or display the content of an object.
Motionblur displays the object content in a motion blur effect.
Pixelate shows the content of an object as a color square. Its color depends on the average color value of the area to be replaced by this square. This filter display can be used for switching.
Radialwipe shows the object's new content in the form of a radiation erasure.
Randombars displays the object's new content in the form of random pixel line explosion.
Randomdissolve displays the object's new content in the form of random pixel explosion.
Redirect is not currently supported.
Revealtrans uses 24 predefined switching effects to display new content of an object.
The object shadow creates an object shadow. The offset is in the specified direction. This creates a shadow effect.
Slide shows the object's new content in the form of image slides.
Spiral shows the object's new content in the form of spiral motion.
Stretch shows the object's new content in the form of stretching and overwriting the original content. There is an option like converting a cube from one surface to another.
Strips displays the original content of the object in the form of a bar covering, as if a saw the original content.
Wave performs a vertical sine wave distortion on the object content.
Wheel shows the object's new content in the form of rotation, as if the wheel rolled over the original content.
Xray changes the color depth of the object content to display it in black and white.
Zigzag moves the new content of the object back and forth to overwrite the original content.

Method

Method description
Addbehavior attaches an action to an element.
Appendchild adds a child element to the object.
Applyelement makes the element a child or parent element of other elements.
Attachevent binds a specified function to an event so that the function is called whenever the event is triggered on an object.
Blur causes the element to lose focus and triggers the onblur event.
Clearattributes deletes all tag attributes and values from the object.
Clonenode copies references to objects at the document level.
Componentfrompoint returns the position of the object under the specified coordinate through a specific event.
Contains checks whether the object contains the given element.
Detachevent unbinds the specified function from the event, so that the function will not receive notifications when the event is triggered.
Dragdrop initializes the drag event.
The specified event of the fireevent trigger object.
Focus enables the element to get the focus and execute the code specified by the onfocus event.
Getadjacenttext returns the adjacent text string.
Getattribute gets the value of the specified tag attribute.
Getattributenode obtains the attribute object referenced by the attribute. Name attribute.
Getelementsbytagname obtains the object set based on the specified element name.
Getexpression gets the expression of the given attribute.
Haschildnodes indicates whether the object has a sub-object value.
Insertadjacentelement inserts an element at the specified position.
Insertadjacenthtml inserts the specified HTML text into the element at the specified position.
Insertadjacenttext inserts the specified text at the specified position.
Insertbefore inserts an element into the document hierarchy as a child node of the parent object.
Mergeattributes copies all read/write tag attributes to the specified element.
Normalize merges adjacent textnode objects to generate a regular Document Object Model.
Removeattribute deletes the given tag attribute of an object.
Removeattributenode deletes the attribute object from the object.
Removebehavior separates the behavior of elements.
Removechild deletes the child node from the element.
Removeexpression deletes an expression from a specified attribute.
Removenode deletes objects from the document level.
Replaceadjacenttext replaces the adjacent Text of the element.
ReplaceChild replaces the existing child element with the new child element.
Replacenode replaces objects with other elements.
Scrollintoview scrolls the object to the visible range and arranges it to the top or bottom of the window.
Setactive sets the object as the current object without focusing the object.
Setattribute sets the value of the specified tag attribute.
Setattributenode sets attribute objects as part of objects.
Setexpression sets the expression of the specified object.
The location of two objects in the swapnode switch document hierarchy.

Object

Object Description
Runtimestyle indicates the format and style of objects that reside on the global style table, embedded style, and HTML Tag attribute.
Style represents the current settings of all possible embedded styles for a given element.

Style

Style label attribute style attribute description
Accelerator accelerator sets or obtains a string indicating whether the object contains a shortcut key.
Background-attachment backgroundattachment sets or gets how the background image is appended to an object in the document.
Background-color backgroundcolor specifies the color after the object content is obtained.
Set background-position-x backgroundpositionx or obtain the X coordinate of the backgroundposition attribute.
Set background-position-y backgroundpositiony or obtain the Y coordinate of the backgroundposition attribute.
Behavior behavior: Specifies or obtains the location of DHTML behavior.
Border-bottom borderbottom sets or obtains the attributes of the border under an object.
Border-bottom-color borderbottomcolor sets or gets the color of the Bottom Border of an object.
Border-bottom-style borderbottomstyle is used to set or retrieve the style of the border under an object.
Border-bottom-width borderbottomwidth sets or gets the width of the border under an object.
Border-color bordercolor sets or obtains the border color of an object.
Border-left borderleft is used to set or obtain the attribute of the Left Border of an object.
Border-left-color borderleftcolor is used to set or obtain the color of the Left Border of an object.
Border-left-style borderleftstyle is used to set or retrieve the style of the Left Border of an object.
Border-left-width borderleftwidth sets or gets the width of the Left Border of an object.
Border-Right borderright is used to set or obtain the attributes of the right border of an object.
Border-right-color borderrightcolor sets or gets the color of the Right Border of an object.
Border-right-style borderrightstyle is used to set or retrieve the style of the Right Border of an object.
Border-right-width borderrightwidth is used to set or retrieve the width of the Right Border of an object.
Border-style borderstyle is used to set or obtain the style of the upper and lower sides of an object.
Border-top bordertop is used to set or obtain the border attributes of an object.
Border-top-color bordertopcolor is used to set or obtain the border color of an object.
Border-top-style bordertopstyle is used to set or retrieve the style of the border on the object.
Border-top-width bordertopwidth sets or gets the width of the border on the object.
Border-width borderwidth is used to set or obtain the width of the upper, lower, and lower border of an object.
Bottom bottom sets or obtains the position at the bottom of the positioning object relative to the object at the document level.
Clear clear allows you to set or obtain whether floating objects can be placed on the left, right, or both sides of an object to prevent the lower part of the text from being displayed on the floating object.
Clip sets or obtains which part of the target object is visible.
Cursor cursor sets or obtains the mouse pointer used when the cursor points to an object.
Display display to set or obtain whether the object is to be rendered.
Set or retrieve filters or filter sets applied to objects.
Set or retrieve the object height.
Layout-grid layoutgrid sets or obtains the combined document grid attribute of the specified text character layout.
Layout-grid-mode layoutgridmode setting or obtaining whether the text layout grid uses two-dimensional layout.
Left left: sets or obtains the position of the left boundary between the object and the next positioning object in the document level.
Margin margin sets or obtains the top, bottom, and left margins of an object.
Margin-bottom marginbottom sets or obtains the bottom margin width of an object.
Set or obtain the left margin width of an object.
Set or obtain the right margin width of an object.
Set or retrieve the top margin width of an object.
Overflow-x overflowx sets or gets how to manage object content when the content exceeds the object width.
Overflow-y overflowy setting or getting how to manage object content when the content exceeds the object height.
Pixelbottom sets or obtains the position below the object.
Pixelheight: sets or obtains the object height.
Pixelleft is used to set or obtain the left position of an object.
Pixelright is used to set or obtain the right position of an object.
Pixeltop is used to set or obtain the top position of an object.
Pixelwidth specifies or obtains the width of an object.

Posbottom sets or gets the position below the object in the unit specified by the bottom label attribute.
Posheight sets or gets the object height in the unit specified by the height label attribute.
Set position or obtain the positioning method used by the object.
Posleft sets or gets the left position of the object in the unit specified by the left tag attribute.
Posright is used to set or obtain the right position of the object in the unit specified by the right label attribute.
Postop sets or gets the position above the object in the unit specified by the top tag attribute.
Poswidth sets or gets the object width in the unit specified by the width label attribute.
Right right sets or gets the position of the right boundary of an object relative to the object located in the lower part of the document level.
Float stylefloat is used to set or obtain the side of the object to which the text is redirected.
Set text-autospace textautospace or get the narrow space Width Adjustment of automatically left blank and text.
Top top setting or getting the position of the upper boundary of the object relative to the next positioning object in the document level.
Visibility visibility sets or gets whether the object content is displayed.
Z-index zindex sets or obtains the stack order of the positioning object.
Zoom sets or obtains the zoom ratio of an object.

Note

The IFRAME element is the document in the document, or a floating frame ). The frames set provides access to IFRAME content. Use the frames set to read and write the elements contained in IFRAME. For example, if you want to access the backgroundcolor style of the body object in IFRAME, the syntax should be:

Scolor = Document. Frames ("sframename" 2.16.doc ument. Body. style. backgroundcolor;

Through the object model on the page where the IFRAME object is located, you can access the attributes of the IFRAME object, but cannot access its content. For example, the syntax for accessing the border style of an IFRAME object should be:

Sbordervalue = Document. All. oframe. style. border;

Note that the IFRAME attribute must be accessed with the prefix document. All, for example, document. All. iframeid. marginwidth.
Internet Explorer 5.5 supports transparent content of floating frameworks. To define transparent content for a floating framework, the following conditions must be met.

The allowtransparency label attribute used with the IFRAME element must be set to true.
In the IFRAME content source document, the bgcolor label attribute of the background-color or body element must be set to transparent.
Refer to the transparent floating framework for more information.

This element is available in the HTML and script of Microsoft & reg; Internet Explorer 4.0.

This element is a block element.

The label must be disabled for this element.

Example

The following example uses the IFRAME element to create a framework containing page sample.htm.

<IFRAME id = iframe1 frameborder = 0 scrolling = No src = "sample.htm"> </iframe>

The following example returns a reference to the All set of documents contained in IFRAME.

VaR collall = Document. Frames ("iframe1" 2.16.doc ument. All

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.