; Position:absolute; top:100px; left:100px; width:100px; height:100px; border:1px solid red; Background-Color:black; color:red; transform:rotate (10DEG); }Results:2. Set the starting point of the deformation to the lower right corner of the box, i.e. Transform-origin:right bottom;. trans1{Z-index:-1;
Before you do this, you need to know about the transform properties of CSS first.The Transform property applies a 2D or 3D conversion to an element. This property allows us to rotate, scale, move, or skew elements.LookWhen you turn it on automatically, when the mouse passes the speed of rotation, the mouse moves away to restore the original speed.Reference code:
Recently in a function, you need to display the content through the window, and then choose to use the CSS 3 transform properties of the translate () parameters to achieve the center of the window positioning.
Tinker for a long time, testing Chrome completely normal, Edge also normal, well, to here I feel that I have seen the end, never thought, open IE 11 directly after the vomiting of blood! Se
CSS Settings English letter case Conversion createtime--2018 May 25 07:16 Author:marydon1. Implementation: Through Text-transform2.text-transform Syntax:Text-transform:none | Capitalize | Uppercase | lowercaseValue:None: Default value. No conversion occursCapitalize: Converts the first letter of each word to uppercase, and the remaining no conversions occurUppercase: Convert to uppercaseLowercase: Convert t
Long ago understand that when the element is fixed width and height, the horizontal vertical high Center method can set the negative value of the margin to the center, this negative value is half the width and height of the element, such as the width of the height is 100px, then use Margin-left:-50px;margin-top: -50px such a way of writing. But what if the width and height of this element are expressed as a percentage?If you use a percentage to set the width, the previous negative method has not
CSS 3 animation tips-application when transform-delay is negative ., Css3transformdelay
Run
When the value of animation-delay is negative, it indicates the number of seconds that the animation skips to enter the animation cycle.
Note that the key frame is symmetric.
0%,30%,70%,100%{ transform: scale(1,0.5); }
50% {
id= "Top">div> ID = "Bottom" > Div >div { width:70%; height:100px; margin:50px Auto;}1. Using transform attributes, tilt the element with ID top to 24 degrees along the x-axis.#top { background-color:blue; Transform:skewx (24deg);}2. Using transform attributes, tilt the element with ID bottom to 24 degrees along the y-axis.#bottom { background-color:red; Transform:skewy (24deg);}Skewx
On the 1024 screen, select the CSS file that fits the 1024 screen,Under the larger than 1024 screen, select the CSS file that fits the large screen.When referencing a CSS file in the head tag in HTML, add the media attribute.Cases:CSS with href 1920 path is selected when the browser is currently open with width greater than or equal to 1025pxCSS with href 1024 pa
CSS has such a good attribute is the text-transform:uppercase.
This property changes the case of the letter in the element, regardless of the case of the text in the source document. If the value is capitalize, then uppercase some letters, but there is no clear definition of which letters to capitalize, depending on how the user agent recognizes each word.
None default. Defines the standard text with lowercase letters and uppercase letters. Each wor
ArticleDirectory
Description
Script Syntax:
Definition
Text-TransformControls the letters in the element.
Inheritance:Yes Description
This attribute changes the uppercase and lowercase letters of an element regardless of the text in the source document. If the value is capitalize, uppercase letters are required, but there is no explicit definition of which letters should be capitalized, depending on how the user agent identifies each "word ". Javascript syntax
Simple and efficient, while supporting variable heights. Specifies the Transform:translate ( -50%,-50%) and top:50% with the vendor prefix for the content to center the content block.
CSS code copy content to clipboard
. is-transformed {
width:50%;
Margin:auto;
Position:absolute;
top:50%; left:50%;
-webkit-transform:translate ( -50%,-50%);
-ms-transform:translate ( -50%,-50%);
Transform:translate ( -50%,-50%);
}
Benefits:
Content he
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.