First, Clear:both;
There is a problem with this approach: margin fails.
Second, partition method
/* Wall */
cl{ clear:both; } . hl{ height:16px; }
The evolution of the "inner wall Method"
Background-origin:Specifies which part of the Background-position property is positioned relative to the container.
Padding-box background image is positioned relative to the inner margin box; (default)
The Border-box background image is positioned
solve the problem without regard to compatibility, the topic of unrestrained, think of what to say, if there is a problem you feel the unusual CSSProperty
, hurry up and cram it.
2, similar to the following figure, only use a label, you can have
Brief tutorials
This is a pure CSS3 arrow button style based on the bootstrap. This button creates an arrow button pointing to the left or right by modifying the button style of the native bootstrap.
Installation
You can install the bootstrap
CSS contains three layout models flow model floating model float Layer model layer
Flow model
The default layout model of a Web page features two
1. Block elements are spread vertically from top to bottom within the containing element, because, by
First: 360-degree rollover effect
The second type: Photo wall suspension Effect
Related articles:
Simply make HTML5 page effect text effects
CSS example code for 3D cube rotation effects
Details on how the HTML5 3D clothes
Flex syntax
Elements that use flex layouts, called Flex container, are referred to as "containers." All of its child elements automatically become container members, known as Flex items (Flex Item), or "project" for short.
The container has two axes
The following CSS advanced tips
left-2 list-paddingleft-2">
left-2 list-paddingleft-2">
Use: Not () apply/deselect border on menu
Add row height to body
Everything is centered vertically
Comma-delimited list
Use negative nth-child
See the interview questions will ask how to use CSS to draw a triangle
It is well known that many graphs can be split into triangles, so that will draw a triangle can draw a lot of interesting shapes
The principle of drawing a triangle is to
Foreword: Recently prepared to make a own web page, the design manuscript navigation I prepare to design the rectangle, also has the hover style to display the rectangle, among them some avatars and so on. In addition to drawing a circle, it seems
This article shares the default location of child tags in CSS parent tags in detail
If you do not set top and left for the B tag. They will have a default value.
Top and left are positioned based on width and height.
Recently when using WordPress to write a page, the designer gave a page layout pattern, has never encountered before, its on the computer (resolution greater than 768PX) is as follows:
This arrangement is required on the phone (resolution less than
background:#eeefff;background:#eeefff;This is a jquery and CSS3 based on the focus of animation plug-ins, plug-in is very mini, function is relatively simple, it is characterized by a picture switch button like a timeline, click on the timeline of
CSS3 's 3d Start
To play CSS3 3d, you have to understand a few words, that is, perspective ( perspective ), rotation (), rotate and Movement ( translate ). 透视This is a realistic view of the 2D things on the screen, so as to show the effect of 3D.
Summary of differences between px, em, and rem in css, pxrem
Preface
Both em and rem are flexible and scalable units, which are converted from a browser to a pixel value, depending on the font size in the design. If the value is 1em or 1rem, it can
Bootstrap learning, bootstrap
We can understand through thisbootstarpSome common knowledge points.Grid
. Row in. container or. container-fluid
. Col-md-*,. col-lg-*,. col-xs-*, col-sm -*
Column offset. col-md-offset -*
Can be nested. The nested
Download file IE compatibility processing, download compatibility
Shows the download compatibility based on CANIUSE (http://caniuse.com/#search=download:
As shown in, ie does not support this function.1. Test code:
1 2 3 4 5 download file
Css clear Floating Method, css clear Floating Method
1. The parent div defines the height.
Left Right div2
Principle: if the parent div manually defines the height, the parent div cannot automatically obtain the height.
Advantages:
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