In many cases, it is necessary to dynamically modify the style of the elements on the page. There are several ways to modify the style dynamically in JavaScript, and the use, effects, and flaws of the method are described below.1. Use Obj.classname
Today suddenly someone asked me to scroll bar CSS custom method, I found that with Scrollbar-base-color this method only IE support, check a half-day data summarized as follows!!!
Custom scroll bar styles in IE browser:
HTML {
The following code, after using table-layout:fixed, intended to keep the width of the cell in effect, test in IE, the width setting is invalid:
1 2 1.1 2.1 2.2
Here is the workaround, after the table-layout:fixed style is
If the text in the cell exceeds the width limit, it wraps and automatically increases in height, causing the entire table to be ragged, but you can work around the problem by disabling text wrapping to allow the table to fill the screen (the
Title, now is not able to change the transparency of the image itself, the picture is written in Background-image CSS, do not know if there is a way to set his transparency?
div{ position:relative; } div:after{ content: ";
Found in the CSS, when the Border-collapse set to separate for, should not empty-cells the result is the same, and with show and hide value are the same, hope you pointing.
In the CSS2 standardGrammar:
Empty-cells:show | Hide
Value:Show: Default
negative margin (negative Margins)
This is perhaps the most popular way to use it today. If the size of the block element is known, you can center the content block in the container display in the following ways:
Outside margin margin to take
The width:100% and Width:auto differences between CSS
First, the question
The previous time in the adjustment of the tree structure, found that if the tree node name is relatively long, the IE6 will not open the outside elements, resulting in the
After learning table, every time will find 2 border, look not pleasing to the eye, if the border is set to 0, it is not good, how to make a thin border table? About 1px, by looking at the relevant information, let me find 2 ways to solve this, as
First, we need to understand these two kinds of positioning in the style;
Absolute (absolute positioning): Drag the Assigned object from the document stream and use attributes such as Left,right,top,bottom to absolutely locate the parent object
currently almost all major browsers support the position attribute (except "Inherit", "Inherit" does not support all including IE8 and previous versions of IE, IE9, IE10 have not been tested), The following is an explanation of W3school's five
Tag Description:
The numbers are labeled as doubtful places.
Try to give an English translation behind a proprietary name, because the official documents are basically English and may be ambiguous after each reader's translation.
Overview:
in CSS, if a border line has a width of n pixels, it can be set to n different colors.
In the code, we can define a solid line with a width of 7px: border:7px solid #C8C8C8; (do not care about the color set here, in Firefox later in the code will
What does list-style-type:none mean in CSS? I am a novice, just started to learn div+css this statement what meaning
The Li tag is preceded by a style, which is the point. You can play it out and see.
Small dot Not a little bit of This
Grammar:
background-color:transparent | Color
Parameters:Transparent: background color transparentColor: Specifies the color. See Color units and Appendix: color TablesDescriptionSets or retrieves the background color of an object.The
This article mainly introduces the CSS3 Carousel, Small series feel very good, and now share to everyone, but also for everyone to do a reference. Let's take a look at it with a little knitting.
1, perspective
The Perspective property includes two
ScrollBar is also a very common code in CSS. Let's introduce it to 1. Overflow settings when content overflows (sets whether the object is set to show scroll bars)
Overflow-x settings when the content overflows horizontally
Overflow-y settings for
Use of the Table-layout:fixed property:If you want a table fixed size, the text inside is forced to wrap (especially in a long string of English text, and there is no space in the middle of the case) in order to achieve the text that is too longThe
Learning notes flexbox new layout, learning notes flexbox
FlexBox, short for "elastic box", can be used in addition to implementing elastic layout, but also to center the content and change the source code order in the tag. First, IE9 and the
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