a little fur, but also to study again)Div#wrap {border:1px solid #FF0099;Background-color: #FFCCFF;width:760px;height:500px;position:relative;}Div#subwrap {Position:absolute;border:1px solid #000;top:50%;}div#content {border:1px solid #000;position:relative;top:-50%;}Five, perfect solutionThen we can combine the above two methods to get a perfect solution, but this need to use the knowledge of CSS hack. If you use
the horizontal pixel of a small image plus the width of a small image.
After testing, the displacement of the B Small graph is-50px-374px, so you don't have to worry about the size. It must be the same as that of the small graph.
Position background-position:-50px-374px of the Small B image and put it in. BTN: hover.
The style is as follows:
1 . BTN { 2 Background : Url(bg.png) ; 3 Background-repeat : No-repeat ; 4 Background-Position : -25px-374px ; 5 Height : 16px ; 6 Width
-style code, and HTML5 become a recognized standard. That's the version HTML5 we're using now.The HTML5 goal is to write concise HTML code to create a simpler Web program. And we HTML5 commonly used tags: title tags, paragraph labels, unordered list labels, ordered list labels, etc.Our current use of the CSS3 is the new standard of CSS, is the update to CSS2, just like our beautiful pictures, and we do in the photos of the special effects, will be our
CSS instances
A CSS rule consists of two main parts: a selector, and one or more declarations:
Selectors are usually HTML elements that you need to change the style.
Each declaration consists of an attribute and a value.
The property is the style property (style attribute) that you want to set. Each property has a value. Attributes and values are separated by colons.
CS
This example is a series of tutorials for getting started with CSS. In this tutorial, we will learn the syntax basics of CSS, it mainly learns the basic CSS syntax, selection operator group, class selector, ID selector, including selector, cascading of style sheet, and, hope to help those who are interested in creating
(default processing.) text is automatically wrapped. If you arrive at the container boundary the content will go to the next line)
Pre: Keep the HTML source space and line wrapping equal to the pre tag
NoWrap: Force text in one line unless you encounter a BR wrap label
Pre-wrap: Same as pre property, but will wrap automatically when encountering outside of container range
Pre-line: Same as the pre property, but encountering contiguous spaces is considered a space
window7. Enter NPM init on the command line to set up your project information. (Here the direct enter to the end or the input command NPM init-y) is recommended here with NPM Init-y8. Enter NPM install Webpack webpack-dev-server--save-dev on the command line (partial installation-recommended) NPM install Webpack webpack-dev-server--g9. In the command line, enter NPM i less less-loader css-loader style-loader extract-text-webpack-plugin-d10. Enter We
The complete tutorial (background-position application) for CSS to take a small image from a large image (conversion) and backgroundposition
I think that the application of background-position is very easy to understand. Make a mark.
I believe that many children's shoes who like to study the webpage interface have encountered a wonderful phenomenon: many pictures and materials on the webpage are merged into
CSS Div Getting Started tutorial, below we take a look at you are also the flow of the layout div CSS, this layout would like to table layout does have some advantages oh, but in the production and design is really very difficult, OK today we will look at an example tutorial, first look at the following effect.
This
For a video tutorial on xhtml + css + js + ajax + php + smarty + mysql + MVC, find a xhtml + css + js + ajax + php + smarty + mysql + MVC project. video tutorial ------ solution ------------------ then I will give you a TinkPHP framework that contains all the technologies you mentioned to try: download.csdn.net: a vide
In this section we study the floating problem, floating makes the layout more flexible, although we also have a description of the layout, but they provide the content is too limited, in order to get a more powerful layout, you must also use floating to complete a more flexible layout.Floating ************1. If we let an element float, then the element before the element will not be affected, if the element is left floating, then its elements will automatically run to its right, if the element r
css| Tutorial
1. position:static| No locationPosition:static is the default value for all elements to be positioned, usually without reference, unless there is a need to cancel the inheritance of other positioning
Example: #div-1 {
position:static;
}
2. position:relative| relative positioning
Using position:relative, you need to top,bottom,left,right4 a property to match the location of the element.
If you
Introduction to CSS Tutorial: How to control the Li Div tag does not change lines, good in the CSS document layout, a lot of things can be used, there are a lot of details are worth our research, the following we will take a look at I use CSS to control the Li Div.
Index | Aboutme | Company | Product
Look at the abov
, H3, H4, H5, h6 {color:blue;}Class 4.3 selectorIn the HTML fileThisheading is very important.Thisparagraph is very important.In the CSS fileIf you only want to change the H1 elementH1.important{color:blue;}If you want all the same classes to be changed*.important {color:red;}Of course, you can also omit the asterisk "*"But be sure to pay attention to the point in front of the class "."4.4 ID SelectorIn the HTML fileIn the
First of all, this tutorial is the essence of all my blog, I tidied up after two days to make this PDF document, exhausted me, the following free points to everyone, I hope we can not hesitate to correct, put forward some of its shortcomings, thank you:Here is its: 2014 Sinsing html, CSS Tutorial if the above address is not open, you can go to the browser to ente
CSS Basics Series Tutorial : Background PropertiesWww.divcss.comWe will give you the answer to the previous section's homework:1. H1. p1{}: Represents all selectors under the H1 tag with the class P1 ; 2, #content h1{} represents all h1 tags under content ;3, H1. P1,#content H1 side-by-side relationship, for class P1 and ID #content H1 effect with one effect;4. h1#content h2{} indicates that H1 under th
-align:center; 8} 9. btn a{10 line-height:16px;11 display: Block;12 text-decoration:none;13}14. btn:hover{15 background-position:-50px-374px;16}final effect-before mouse move in:final effect-after mouse move in:Well, the tutorial is over, and the side dishes are simply a demonstration of a complete production process, with a lot of details in between, such as browser compatibility, CSS optim
-align:center; 8} 9. btn a{10 line-height:16px;11 display: Block;12 text-decoration:none;13}14. btn:hover{15 background-position:-50px-374px;16}final effect-before mouse move in:final effect-after mouse move in:Well, the tutorial is over, and the side dishes are simply a demonstration of a complete production process, with a lot of details in between, such as browser compatibility, CSS optim
Article Introduction: CSS Web Design tutorial: The Outline of the form button.
The use of outline, we all like to reset the reset style sheet directly:
* {
Outline:none;
}
Eric Meyers in his CSS reset is such a reset:
/* Remember to define focus styles! */
: Focus {
outline:0;
}
It is common to say these methods. But there's a little bit of a
CSS is an abbreviation for English cascading style Sheets (cascading style sheets), and P+css is one of the common terms in the Web site standard (or "Web Standard"), and is often used to illustrate the difference between the way tables are located in the HTML web design language, Because the new website design standard, no longer uses the table localization technology, but uses the div+
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.