JS easily implements CSS settings, and common CSS settings for DIV and CSS

Source: Internet
Author: User

I saw a style setting scheme in DW written by a Japanese bird earlier.
(If you are a web friend in an Internet cafe, you can use this !) I wrote out common styles and made them a DW extension plug-in. I am in trouble to make them a DW extension plug-in:
Personal website of little pigeon: http://xbnz.126.com/www.net.com/] Xmlns = "http://www.w3.org/1999/xhtml">


Class/label/ID:
No unit is required for all values;

Width:
Height:
Background color:
Foreground color:

Border:
Color:
SelectSolidDottedNoneHiddenDashedDoubleGrooveRidgeInsetOutset

Margin:
For example, 10px 2px

Padding:
For example, 10px 2px

Float: left
Right×

Display:
Select Block Inline None

Visible:Visible
Hide
×

Text alignment:
SelectLeftCenterRight

Line Height:
%NonePx

Text indent:

Text:
Font:

SelectSimheiArial

Width:
Effect:Underline
None
×

Background image:
Repeat:
SelectHorizontal repetitionVertical repetitionNo duplicates

Horizontal position:
Vertical position:
Attachment:
SelectFixedScroll

Vertical Alignment:
SelectMiddleBottomTopAutoBaseline

Clear:
SelectLeftRightBoth

Overflow:
SelectScrollAutoHidden

Positioning:
SelectAbsoluteRelative

Zcoordinate:
Left:
Top:
Right:
Bottom:

UL list: Type
SelectNoneDiscCircleSquareDecimal

Image:
Location:Internal
External
×

Cursor:

SelectDefaultHandTextMobileCrosshairDefaultPointerHandMoveHelpWaitTextW-resizeS-resizeN-resizeE-resize

The actual application results are as follows:Effect of This Rule Shows You at here!

[China's best Q xiaozi · The most love lilac] http://xbnz.126.com

<Input name = "vcssView" type = "button" id = "vcssView" onclick = "window.clipboarddata.setdata('text', document.all.css TextValue. value); alert ('css saved to clipboard '); "value =" Copy to clipboard "> <textarea name =" cssTextValueCompare "cols =" 100 "rows =" 5 "id =" cssTextValueCompare "> <input name =" vcssView2 "type = ""button" id = "vcssView" onclick = "window.clipboarddata.setdata('text', document.all.css TextValueCompare. value); alert ('css saved to clipboard '); "value =" copied to clipboard "> <br/> <pr/> This is a DIV with a complex style, you can use CSS to obtain the CSS <p> <input type = "button" id = "vcssView" onclick = "getSelectionWithCss (); setSelectionWithCss () "value =" Get the Left DIV style "> <pr/> <br/>
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.