-adjust attribute to correct the latter.This property is useful for fonts that have different x-height. Even if you are careful about using the small font, Font-size-adjust can provide a solution when the problem arises.ExampleIf for some reason the Verdana is not installed on the user's computer, Arial will be corrected to have the same aspect ratio as the Verdana (0.58).
12345
p {font-family:verdana, Arial, sans-serif;font-size:12px;font-size-adjust:0.58;}
brows
application is quite small, as far as I know, there is no project application CSS3 Border-color to achieve the special effect of the border. But this will not affect the enthusiasm of our CSS3 enthusiasts to learn CSS3 various attributes. Let's go ahead and see how CSS3 's Bborder-color is used.We said earlier that CSS3 's border-color is currently only supported by Mozilla's Firefox3.0+ browser, so we need to prefix it with "-moz-". Now let's take a
CSS3 Four animations (rotate, enlarge, rotate, enlarge, move)
In the page design, to some of the icons or pictures to add some animation effect, it will give a very comfortable feeling. Four commonly used animation effects are collected here for unexpected contingencies. Reprint the original text
effect One: 360° rotation modified rotate (rotation degree)
* {
transition:all 0.4s ease-in-out;
-webkit-transition:all 0.4s ease-in-out;
-moz-t
vertical value remains unchanged. Let's take a look at the following instances respectively.
(1) transform-origin :( left, top ):
(2) transform-origin: right
(3) transform-origin (25%, 75%)
For more methods to change the central point, you can test it locally and try it out. Here we also want to remind you that transform-origin is not the attribute value in transform, he has his own syntax. As I have mentioned earlier, it is similar to our background-position usage, but it is different, beca
type, rare flowers and schools of contention, Firefox browser this time also has a debut!The following HTML code:Each browser is on the turn ~ ~First look at IE browser, :-ms-input-placeholder a look is placeholder the abuse of attributes, to a discoloration ①+ indentation, when when when::-ms-input-placeholder { color:mediumvioletred; text-indent:5px;}ZXX: The color mediumvioletred is taken from the "147 color names and corresponding color values under the CSS3" article.So:And then chrom
direction value, the corresponding hundred points for left=0%;center=50%;right=100% and top center bottom is the vertical direction of the value, wherein top=0%;center=50%; bottom=100%; If you take only one value, indicating that the vertical direction value is constant, let's take a look at the following examples
(1) Transform-origin: (left,top):
(2) Transform-origin:right
(3) Transform-origin (25%,75%)
More Change Center base point method, you can in the local more test, more experience, h
1: Set the border of the button or div to a rounded border: css: text-align:center; border:2px solid #a1a1a1; padding:10px 40px; Background: #dddddd; width:350px; border-radius:25px; -moz-border-radius:25px; Old Firefox instance: set the border of all div in a webpage to a rounded border: div{text-align:center; border:2px solid #a1a1a1; padding:10px 40px; Background: #dddddd; width:350px; border-radius:25px; -
1. event usageProblems:You can directly use the event object in IE, but Mozilla cannot directly use it. For example, The code that is compatible with both is as follows:IE MozEvent) ">
2. Disable event.srcelement[ie]and event.tar get [Moz].E.tar get under mozillais equivalent to event. srcElement under ieBut the details are different. The latter returns an Html Element.E.tar get returns a node, that is, a text node.The following sample code shows th
Common css,
/** Ie8 supports transparency **/Rgba (0.4, 0,); // ie8 is not supportedFilter: progid: DXImageTransform. Microsoft. gradient (startColorstr = #19000000, endColorstr = #19000000 );The color "#19000000" is composed of two parts.The first part is 19 after. Is the IEfilter value of rgba transparency 0.1. Each number from 0.1 to 0.9 corresponds to an IEfilter value. The relationship is as follows:0.1-19; 0.2-33; 0.3-4C; 0.4-66; 0.5-7F; 0.6-99; 0.7-B2; 0.8-C8; 0.9-E5;The second part is th
CSS3 Appearance PropertiesCSS Reference ManualsInstanceMake the div element look like a button:/* Safari and Chrome */}Try it yourself.There are more instances at the bottom of the page.Browser supportAppearance properties are not supported in all major browsers.Firefox supports an alternative-moz-appearance property.Safari and Chrome support alternative-webkit-appearance properties.Definition and usageThe Appearance property allows you to make elemen
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn to use CSS3 to create beautiful buttons with rounded corner shadows and fading colors. No images or javascript scripts are required, you only need CSS3 to easily implement the button effect, and you can
Applicable to any HTML ElementSuch as p, span, p, a, button, input, etc,
Applies to any HTML element and the size changes with the font size..
Effect:
Css:
.button { display: in
After you click the list chart, the menu items are displayed in the Content Page. When you click the close menu button, the menu items are hidden and the content page is restored to its original position. Today, jquery and css3 bring you a good navigation menu. After you click the list chart, the menu items are displayed in the Content Page. When you click the close menu button, the menu item is hidden and the content page is restored to its original position. View
Source code download
Let's t
method. You don't need to consider the compatibility of browsers when using images. But here I will use css3 to write gradient, currently, the WebKit core is available, and the Moz core fully supports gradient effects. The latest operabrowser (11.52) and IE core support CSS (filter) and linear (liner) gradient.
3.1 gradient syntaxes and descriptions for various browsers
First, let's talk about the core Web browser of WebKit,
Reference: http://w
browser, you need to add-webkit-Prefix, mozilla core browser, prefix required-moz-。Example: To modify the style sheet file, add the following style code:
. row{/* set the perimeter container style */margin:auto;border:1px solid black;width:600px;height:400px;margin-top:50px; Display:-webkit-box; /* Compatible with WebKit or Mozilla Core Browser, enable flexible box model */Display:-moz-box;
element (which actually are a unordered list item) has anchor, or nested level. Step 2. Css This is the CSS style of the menu: | here is the CSS styles of our menu: #nav, #nav ul{list-style:noneoutsidenone; margin:0;padding:0;} #nav {font-family: "Lucidasansunicode", Verdana,arial,sans-serif; font-size:13px;height:36px; list-style:noneoutsidenone;margin:40pxauto; text-shadow:0-1px3px #202020;width: 700px;/*borderradius*/-moz-border-radius: 4px;-w
same aspect ratio (0.58) as the Verdana.
1
2
3
4
5
p {
Font-family:verdana, Arial,
Sans-serif;
Font-size:
12px;
Font-size-adjust:
0.58;
}
browser support : Gecko.
extended reading : Mozilla Developer Network
Image-rendering
N years ago, pictures were not displayed in their original size, but were scaled by designers. Depending on the size and context of the zoom, the picture may not be well displayed in the browser or simply wrong. Now, the browse
", the other is "FF", that is, in the use of " Appearances ", you need to add each browser factory prefix.Appearance How to use:. elmclass{ -webkit-appearance: value; -moz-appearance:appearance: value;} Now let's look at a simple example:Pclass="Looklikeabutton" > I was a paragraph P elementP>Pclass= "Looklikealistbox" > I am a paragraph P element p> p class= " Looklikealistitem "> I was a paragraph P element p>p class= "Looklikeasearchfield"
Everyone knows that each browser has different rendering of HTML elements, such as "button", which is rendered differently in Chrome and FF. In this way, using the browser's default rendering style for elements, we can use the "appearance" property to change the rendering style of any element, in the simplest case, I want to display the "a" link by default as "button" style, then we can use "appearance Set to button. "Appearance" function sounds quite large, but unfortunately, the current browse
, only the Firefox/chrome/safari browser supports the elastic box model (IE9 unknown, Opera has not yet), and when used, it needs to be accompanied by a private prefix. such as-moz-,-webkit-.CSS InstancesNow let's instantiate the example CSS on the Marin sub-house above, and see how it behaves on a Web page://zxx: There's a feeling of making a movie of a novel,The main CSS code is as follows:. test_box { display:-
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.