Exlporer 6 The principle of this bug, I just know 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 hac
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
. However, the rendering of IE 5 and 6 is not correct. According to the specification, the space occupied by the element content is set by the Width property, and the padding and border values around the content are calculated separately. Unfortunately, IE5. X and 6 use their own non-standard models in quirks mode. These browsers have a width property that is not the contents, but the sum of the content, padding, and width of the border.
Although there are ways to solve this problem. But the bes
you set the width height, then the settings are displayed as
In-line elements
Does not monopolize a row
If the width is not set, the default is as wide as the content
Inline elements are not allowed to set width and height
Inline block-level elements
In order for an element to be able to have both a single row and a width and height set, the inline block-level element appears
Do not monopolize a row, and you can set the width height
css| Tutorials | There are four ways that style sheet CSS statements are embedded within an HTML document.
1. The most straightforward approach is to write the CSS style statement directly in the HTML identifier (TAG):
text content
As an example:
Embed CSS statements directly
Code Description: Disp
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
Common and commonly used underline styles
1, text underlined way to display Use HTML But note that the U tag is a pair of tags with 2, Hyperlink text underline-css Hyperlink detailed introduction We often need to let the text with hyperlinks, with the underlined display, while the mouse on the underline does not show the way to display the text with the link, next we through the CSS to the hyperlink unde
that incense starts from the other attributes of the object, as you can recall, in order for the layout to be clearer in the preview, we used the border property so that all two objects have a 1px border, and in the CSS layout, the width of an object is not only determined by a width value, The real width of an object is the width of the object itself, the left and right margins of the object, the left and right borders, and the interior margins, so
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
entire table (that is, the table label), while the cell (that is, the td label) adopts the in style. Save the disk and check the effect. Is it the same as the following?After learning how to create a table with a 3D border of 1x1, it is not difficult to make the results of this example. You may wish to explore it yourself.# P #The previous examples show how to beautify the border of a table with css. You can try different combinations to make a more
Author: anonymous nameSource: webpage tutorial Network
[Introduction]To better understand CSS, especially CSS rendering in IE, haslayout is a concept that needs to be completely cleared. Most ie display errors are due to haslayout.
more complex. Then look at the light blue and light pink tracks to feel it.
Grid area
The meaning of grid lines, cells, and tracks is to divide the container into the area you need to grid areas. A region is an entire block that can contain multiple cells, so how do you divide it? The area is the intersection of two horizontal grid lines and two vertical grid lines. By dividing the container reasonably into multiple areas, the layout is also achieved. The area can overlap, so it is z-index.
The
-ratio dot matrix printer. Device ratio device-aspect-ratio-dot matrix printer. The object color or color list color,color-index the display screen. The resolution of the device is resolution. Syntax structure and usage media queries are used in two ways, is to embed "@media" in CSS styles, and to write different styles in the same CSS through different windows. Another is to use the reference, in the exte
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.