The design of the navigation bar style on the Web page is especially important, so what are the styles that make it so bright? Then this article will give you a description of the mouse when navigating through the underline effect.
The specific code examples for the CSS mouse to be implemented with the underline effect are as follows:
The Style.css code is as
(line boxes). Anonymous Block Box (Anonymous block boxes): DIV > Some Text P > More text DIV >As above, the div appears to contain inline (in-line) content and block boxes, in fact, according to CSS rules, in the some text around is an anonymous block box, so that the div block box contains only the Block box.In other words: if a block box (like the box generated for Div in the previous
are parsed to true or false. It contains not only min-width,device-height,orientation these commonly used media functions, but also supports and,not,only logical operators and the use of commas to separate lists. This makes it possible to make a variety of complex query conditions.Four: Display:inline-box there are extra gapsThe problem that came up a few days ago, like the following,HTML code:1 DivID= "wrapper">2 Divclass= "box">1Div>3 Divclass= "bo
can achieve the desired effect as long as the above is displayed normally while the mouse is floating up. With this idea, it is easy to implement. A container label. The height is set to half the size of the image (1), and the width is equal to that of the transformed image. Then, set the background image of the container as a conversion image. In normal cases, the top part is displayed. Then, when the mouse is floating up, use the css-style pseudo c
layout, and it is the row layouts, so after the trigger, the block element is still the row layout, but not as the block elements in opera as an inline object. How does the IE block element realize the Display:inline-block effect?There are two ways of doing this:1, first use the Display:inline-block property to trigger the block element, and then define the Display:inline, so that the block elements presented as
scroll code example:
Related Knowledge points Note:
By @keyframes rules, you can create animations. The principle is to gradually change a set of CSS styles to another set of styles. You can change this set of CSS styles several times during the animation process. The time at which the change occurs is specified as
(for self-backup only) original address: http://blog.csdn.net/chq11106004389/article/details/50515717CSS composition Selector/selector + declaration (attribute + value)Selector/selector , which indicates the element in the Web page to which the style rule applies, as in this case p is the selector , its text will turn blue, and the other elements (such as OL) will not be affectedstatement: When there are multiple declarations, the middle can be a semicolon ";" Separated--------------------------
.19DIV.CSS video tutorial To solve the IE6 under the bilateral distance and adaptive height.20.div.css Video Tutorial _ Minimum height for practical use.21.div.css Video Tutorial _ Extend the rounded menu to the left and right.22.div.css Video Tutorial _. CSS background table.23.div.css. Video Tutorial _. CSS album making.24.div.css Video Tutorial _. Pagination display.25.div.css Video Tutorial _. Two-line
This article mainly introduces the CSS grid layout of the sample code, I hope to let you master more CSS skills.
Browser compatibility
You can see that the CSS grid layout is supported from Safari 10.1, Firefox, Chrome 60,edge 15.
Grid layout
Basic elements of the page:
Style:
. wrapper { b
This article mainly introduces you about how to use CSS to do navigation bar related knowledge, I hope to have the necessary friends to help. For any web site, the presence of the navigation bar is critical, so if you just make a tedious navigation menu with HTML, the effect is definitely poor. The importance of CSS properties is then reflected.
Here is a concrete exam
Absolute centered Layer Div+css code example
Here's the code:nice and free CSS Template 11centeredThis area should is horizontally and vertically centered.This text stays left alignedie mac doesn ' t like this! more nice and free CSS templates
The follo
element to move left and right from the normal flow of the document until its outer edge touches the edge of the containing box or another floating box, and the normal flow of the document behaves as if the floating box does not exist.More about floating will be explained in the following, as long as the use of floating can be used to make a number of block elements in the same row can be.In the above code, if the width of the two layers is added les
: Add Clear:right to the Div1 CSS style, and understand that floating elements are not allowed on the right side of the DIV1, because Div2 is a floating element, Therefore, a row is automatically moved down to satisfy the rule.In fact, this understanding is not correct, this does not have any effect. See the side of the cake:for CSS cleared float (clear) , be sure to keep in mind that this rule only affects
guaranteed to be complete doctype, then it is generally rendered in standard mode. Conversely, HTML and XHTML are rendered in promiscuous mode if the DOCTYPE of the document does not exist or if the form is incorrect.
Box model in two modes
The actual width of the box in standard mode is:Width + padding-left + padding-right + border-left-width + border-right-width
The actual height is:
Heigth + padding-top +padding-bottom + border-top-width + border-bottom-width
The actual width of the box in
Code example for vertical center effect of div implemented by css, cssdiv
Code example of div vertical center effect implemented by css:The vertical center effect of div has been described on the Internet.This section uses code e
Css implements code example for vertical and horizontal center of images in div, cssdiv
Code example for implementing the vertical and horizontal center of an image in a div using css:There are still a lot of requirements for vertical and horizontal center of images in an e
Block elements are generally container elements of other elements, and block elements are generally started from new rows, which can hold inline and other block elements, and common block elements are paragraph label ' P '. "Form" is a special block element that can only be used to accommodate other block elements.
If there is no CSS, the block elements will be sorted sequentially in the same way each time
This article mainly introduces the CSS form style of the beautifully crafted code method. A good-looking form style, for the overall effect of the site is crucial, not only for users to view, but also suitable for webmaster management site.
A detailed example of the elegant form form CSS style
This article details CSS box models and block-level, inline elements
First, CSS box model
Box Model Overview
The box model is one of the core knowledge points of CSS, which specifies how elements are displayed and how they interact with each other. Each element on the page is treated as a rectangular box that consists
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.