Now the browser Ie6-ie10, Firefox, Chrome, Opera, Safari ... A large number of schools of contention, the user has a lot of choice, but this can be painful to the Web front-end developers.Today, some commonly used CSS hack, including the commonly
First, in the In-line lineInline styles are used to directly use the Style property in HTML tagstextSet paragraph text red.But keep in mind that the final HTML should be independent and use the presentation document, so inline styles should be
A. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for CSS abbreviations refer to the common CSS abbreviation syntax summary, which does not expand the
This article mainly shared the response-style navigation bar specific code for your reference, the specific content as follows
1. Basic navigation bar NavBar Navbar-default Navbar-header Navbar-brand nav Navbar-nav2. Forms in the navigation bar
As a popular technology, the development of CSS is indeed somewhat slow. CSS was first proposed in 1994, first supported by browsers in 1996, CSS has been touted as the successor to the traditional HTML based Web code. CSS uses style sheets to
Problem
In a Web site may be my input box below the following:
The designer might want to make the upload part like this and then add a Select button. But when I want to change the normal input box to the upload box, I can't work at all. There is a
In this respect, I put the CSS3 standard Nth-child () the use of the general introduction:
CSS3 Pseudo class selector: Nth-child ()
A simple summary of several uses of Nth-child ().
First: Nth-child (number) directly matches the first number
The CheckBox checkbox is an HTML element that may be used by every site, but most people do not give them a style, so they look the same on most sites. Why not set the checkbox in your site to a different style and even make it look nothing like a
Click "Register" on the page, there is a layer of opaque black mask, the top of the mask layer is the registration box, at this time can not click on the page other than the registration box elements, click on the Registration box "casually stroll",
This example describes the JS+CSS implementation of the Fillet Border tab tab sliding door effect. Example contains two CSS fillet code, mouse click can also move up the mouse to show the effect, to share for everyone's reference. Specifically as
Clear float is a function that every web foreground designer must master.
Why is it so hard to float?
Because floating causes the current label to float, it affects both the front and back labels, the position of the parent label, and the width
First, Box fill properties
1, Padding-bottomPadding-leftPadding-topPadding-right
Function: Each container has a border that sets the distance between the border and the elements in the box.Numerical:Length-Sets the relative or absolute value. After
There are six main ways of specifying colors in CSS:
1.16 Binary color
2.RGB Color
3.RGBA Color
4.HSL Color
5.HSLA Color
6. Predefined/cross-browser color names
The first three species are the most common and most used, and the last three are "what
Summary-illustration and BFC illustration
View me(Success. Fail) fail.Figure 1: Problem Diagram 2: Code diagram 3: solution Diagram
View me◔ ‸ ◔QuestionQuestion DiagramAndThe difference between solving the graph: The line of code with the yellow
With the knowledge of CSS positioning, you will be able to manipulate the exact location of HTML elements. Design: JavaScript or HTML image map is used before. Now we can do this in CSS. It is not only easy to code, but it also loads faster!Relative
The code is as follows: The code is as follows:Copy code . Transparent {Filter: alpha (opacity = 60);/* supports IE browsers */-Moz-opacity: 0.60;/* supports FireFox */Opacity: 0.60;/* supports Chrome, Opera, Safari, and other browsers */} The
Example The code is as follows:Copy code Position: absolute; width: 200px; height: 200px; left: 50%; top: 50%; margin-left:-100px; margin-top:-100px POSITION is separated from the document stream by absolute positioning. For browsers,The
In CSS layout web page development, we also use a very useful selector, which can be used for overall layout Declaration. This is a general selector. See the following code: The code is as follows:Copy code *{Margin: 0;Padding: 0;} This type of
Tip: you can modify some code before running Js website navigation drop-down menu codeDEMOSDEMOS Zero dollars Wrapping text Styled form Active focus Shadow boxing Image map Fun backgrounds Fade scrolling Em sized
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.