About HTML, css3 adaptive screen, adaptive width, and css3 adaptive
Set the css style to be displayed at different resolutions:
@media screen and (min-width:1080px){ .box{ width: 1080px;}.content{width: 1040px;} .img{height:180px;} .img{font-size: 48px;line-height: 180px;} .title{font-size: 46px;line-height: 100px;} .detail{font-size: 20px;}}@media screen and (min-width: 900px) and (max-width: 1079px)
Use of CSS3 rounded border-, css3 rounded border tornado
0. Quick Start
Border-radius: 50px;
1. border-radius details
Border-radius: 50px;
The upper right bottom left, horizontal and vertical distances are both 50px
Border-radius: 50%;
Here, the % number is based on the length and width of the css style element.
Border-radius: 50% 30%;
Up and down, the horizontal vertical is about 50%, and the ho
Css3 box model and css3 Model
Css2.1 box model:
When you define the width and height of the box, if the padding and border values are added, the width and height of the box will be extended.
Height of the box = defined height + (padding-top + padding-bottom) + (border-top + border-bottom );
Box width = defined width + (padding-left + padding-right) + (border-left + border-right );
Css3.0 box model:
After yo
Css3 pseudo-class usage example, css3 pseudo instance
Sometimes there are a lot of complicated design drawings involved in Webpage Design, which can be a headache at this time. At this time, pseudo classes can help you solve the problem.
You can refer to the following example;
1
Shows the effect:
All links on the way are written in pseudo-classes. If you have any questions, please comment on them at any t
Css3 elastic box layout, css3 elasticFirst, let's take a look at the titles in the elastic box.
The elastic box is divided into two axes, one is the spindle, the other is the cross axis, the direction of the spindle can be changed (up and down), after the direction of the spindle changes, the direction of the cross axis will also changeThen let's take a look at the general support of the browser.
From the
一半)
Alignment (strong) of the side axis direction
Stack Stretch row align-content
This property can be used to adjust the alignment of the telescopic row in the container when there is space on the side axis of the telescopic container, similar to the properties of the alignment of the scaling item on the spindle justify-content . Note: This property has no effect on a single row of telescopic containersALIGN-CONTENT:STRECTH (each row will stretch to occupy the remaining spac
We know that using Photoshop to adjust the brightness and contrast of an image, or to turn a picture into grayscale, is a common feature. Today I'm going to introduce you to a couple of new features, and we'll use CSS to add the same effect to the web image.First we display a picture in the webpage, the HTML code is as follows:DOCTYPE HTML>HTML>Head>MetaCharSet= "Utf-8">Linkrel= "stylesheet"href= "Styles.css"Media= "Screen">title>CSS3 Real-Life develo
Recommend a file to solve the CSS3 Border-radius and Box-shadow (two often used)
1.border-radius border Fillet Static page often requires a background is rounded corner, this time to use the following code, can be very good to solve the problem of low version incompatibility
(File IE-CSS3.HTC is placed under the root directory)
2.box-shadow box Shadow, background add shadow, so that th
Last week I posted a CSS3 pull-down menu, and someone reflected that I didn't explain the CSS code in detail enough. So, this article will explain the new CSS properties, including: Text-shadow,box-shadow and Border-radius. These CSS3 properties are the most commonly used, and they are correct to know.
RGBA
The first three values are RGB color values, and the last value indicates the degree of transparenc
Article Introduction: Pure CSS3 transparent crystal box.
I believe members have seen this example:3D box , in the book "CSS3 Combat" on the No. 282 page has a comprehensive combat "design dynamic three-dimensional box" example, to achieve the same as it, my box is also based on its prototype to design, but in the implementation of the modification, optimization, As well as adding some details, h
Use CSS3 to create an optional text, and css3 to create an optional text
The following example shows how to use CSS to create optional texts in HTML5.
Html code
Download source code:
Creating-non-selectable-text-using-css.zip
What Should CSS3 do for browsers that are not applicable?
Currently, mainstream browsers support
Article Introduction: First of all, in the article "CSS3 Media Queries" to explore the CSS3 media types and media characteristics of the relevant applications.
First of all, in the article "CSS3 media Queries" to explore the CSS3 media types and media characteristics of the relevant applications. The simple
/*fillet class, the element that needs to be rounded, plus the class name*/. RoundedCorners{-webkit-border-radius:10px;/*WebKit Kernel Browser*/-moz-border-radius:10px;/*Moz Kernel Browser*/Border-radius:20px;/*browsers that support CSS3 fillet properties directly (such as IE10)*/}/*use with JS*//*transparency class, the element that needs to set the transparency plus the class name*/. Transparent{-webkit-opacity:0.3;-moz-opacity:0.3;Opacity:0.3;Filte
HTML5 CSS3 short tutorial, html5 css3 video tutorialHTML5 CSS3 brief tutorial
Web designers can use HTML4 and CSS2.1 to do something cool. We can complete the logical structure of the document and create a website with rich content without using the old table-based layout. We can add beautiful and exquisite style styles to the website without using the
Use CSS3 instead of JS for interaction, and use CSS3 instead of JS for Interaction
[CSS3 and JS]
Anyone who knows about CSS knows that the implementation of CSS is the lowest level, and the implementation method and performance are not the same. JS provides similar scripts for interfaces; from the perspective of comparison between
Webpage element center introduction _ (4) use the CSS3 attribute to align elements horizontally and vertically, and center css3Flex implements the perfect Center solution for sub-blocks
Parent block usagedisplay:flexAttributes. The sub-block margin can be self-adaptive.Code
Index.html
Horizontal vertical center with unknown wide and high elements
Usetransform:translateAttribute adjustmentCode
Index.html
Use flex to align pages horizontally and vertica
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.