Style sheet:External style sheet (external style sheet)Candidate style sheet (alternate style sheet)Browser: Mostly based on gecko document style sheet = embedded style sheet (document style sheet)Written in HTML @import directives are used to instruct a Web browser to load an external style sheet.Appears in the Style container. It will not work until other CSS rules have been placed.CSS style precedence: inline style sheet (inside label) > Embedded
This article mainly introduces how JS + CSS achieves sliding door effects with small triangle guidance. it can implement sliding door functions with arrow prompting effects, and involves related techniques related to JavaScript dynamic page element styles, for more information about JS + CSS, see the example below. Share it with you for your reference. The details are as follows:
This is a JS +
-left-radius:6px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px; border-bottom-left-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px;Uh, is that what you've been looking at? This is only to realize that the upper-left corner is not rounded, the other three corners are rounded corners of the case. So for Border-radius, flying is strongly recommended to use abbreviations:-moz-border-radius:0 6PX 6px;-webkit-border-radius:0 6PX 6px;border-radius:0 6PX 6px;Ex
1th chapter CSS and documentation1, element: replace Element (img input), non-replacement element (most spans).2,link:rel (representing relationship: stylesheet, candidate style sheet: alternate stylesheet); type (text/css); Media: (All (all representations of media, Screen,print), Title (mates with candidates).3, @import URL (sheet1.css) needs to be used within
As a result, the well-structured code optimizes its maintainability to a great extent. The following is a list of four techniques for improving the maintainability of CSS files as a guide to Web front-end development with a good CSS style organization habit.
First, CSS style file decomposition
For small projects, div
-left-radius:6px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px; border-bottom-left-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px;Uh, is that what you've been looking at? This is only to realize that the upper-left corner is not rounded, the other three corners are rounded corners of the case. So for Border-radius, flying is strongly recommended to use abbreviations:-moz-border-radius:0 6PX 6px;-webkit-border-radius:0 6PX 6px;border-radius:0 6PX 6px;Th
First chapter CSS and documentation1. Replace elements with non-replacement elements, replace elements such as IMG input, and most HTML elements are non-replacement elements.2. Block-level elements and inline elements?, block-level elements automatically fill the content box of the parent element, the table is consistent with other block-level elements, and the only difference is that the table generates a marker, which is a small black dot. Block-lev
Therefore, the good structure of the code to a large extent to optimize its maintainability. The following is a list of four tips for improving the maintainability of CSS files as a guide for Web front-end development with a good CSS style organization.
one, CSS style file decomposition
For small projects, before wri
effect of the practice is this:1., two triangles (bottom border) The position, size to be consistent2, the inside of the triangle of the bottom border color is black (can also be other colors), outside the triangle border color white background3, the white triangle to cover the black triangle can form such a shape, about the problem of coverage can use the location of the label or Z-index to change.HTML code[HTML]View PlainCopy
div class="box B1">div>
div class="box B2">div>
not support style will ignore the style, and the subsequent declaration is annotated. CSS Comments:/* */Do not support nesting
inline style (inline style): not recommended
Chapter II SelectorEach style sheet is made up of a series of rules Rule: Selector (selector) Declaration block (Declaration block) A declaration block consists of one or more declarations, each of which is an attribute-value pair (Property-value) Element selector: H
value where only width and about margin value can be taken Auto for these three values, if they are set to a specific value, these formatting attributes are too restrictive, then the right margin is set to Autoin the replacement element Width is the intrinsic width of the content , if it is set to the auto elementvertical formatting: Similar to horizontal formatting, but if margin is set to auto , the value is automatically calculated as 0. The normal flow element cannot be centered vertically
Confluence the top of the default page is a menu connection for the site, which defines theQuick Connect,BrowseMenuUserMenus andQuick FindInput box. In this example, we will try to modify the background of the menu section at the top and some custom pictures.
Create a custom picture. In this example, we will create a custom header image, using 1046 x 61 pixels.
Upload your custom images to the space page you want to customize.
Note that you need to upload a new image (in this case the pa
the view. This implementation allows you to concentrate on your model. The view is always the projection of the model, and when the model changes, the view reflects that change, and vice versa.How most template systems are bound. They combine models and templates to generate views that are not dynamically updated by the combined process. To make things worse, the interaction between the user and the view is not reflected in the model. This means that the developer will automatically write the v
First on:Css:. Ydy{width:100%;height:100%;overflow:hidden;background-color: #000000; Filter:alpha (opacity=80);-moz-opacity:0.6 ;-khtml-opacity:0.6;opacity:0.6;position:absolute;top:0px;z-index:9999px;}. Ydy img{width:100%;}Only one div is required on the HTML page:Add a transparent picture can realize the function of User Guide page, such as new feature introduction, user guidance and other functions!My personal blog: http://blog.caicongyang.com;My p
[Reading Notes] CSS authoritative guide 2: Structure and cascade-cannon ~ One of the most basic aspects of a stacked style sheet is stack-the conflicting statement should be sorted through this stack process, and the final document representation should be determined accordingly. The core of this process is the particularity of the selector and its related declarations, as well as the inheritance mechanism.
example, span.
There are two types of elements, based on their display roles: block-level elements and inline elements.
Block-level elements: an element box is generated and the content area of its parent element is populated with no other elements next to it. Of course this is in the default case, there is a floating positioning setting said otherwise. The list item has a special performance, yes, there will be a marker, the marker will be "associated" to the element box
Inline elem
different factors, such as device width. and adaptive design will be based on a certain factor to build. Combining the two is an idealized site that provides a perfect functional model, and the term does not produce much ambiguity.On the other hand, mobile devices often mean a mobile site that needs to be built for mobile users. However, this may have some effect, but it is not a good idea. Mobile site requirements must be very lightweight, yet he relies heavily on a new code base and browser s
Topic ReviewsThis topic at first glance feels strange, what is called the initialization style? In other words, you may understand that it is a universal style. This topic is mainly concerned with the theory of knowledge, not to write code, as long as the description is clear.reasons for initializing a styleBecause of browser compatibility issues, the default values for some tags in different browsers are different, and if there is no CSS initializati
between the URL and the opening parenthesis, if there are spaces, the entire declaration will be invalid, so that it is ignored.3. Inherit is a keyword common to all attributes, so that the value of one property is the same as the value of its parent elementHead> styletype= "Text/css">#toolbar{background:Blue;Color: White; }#toolbar a{Color:Inherit; /*Only add this sentence after the color of a link is white otherwise the default browser se
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.