This example uses a pure CSS as a button without JavaScript code. This is not to imply that JavaScript is bad or stale, but rather to illustrate the capabilities of CSS.
============================================================
We need code with
This tutorial aims to teach you how to create an adaptive navigation menu that uses HTML5 + CSS. It does not need javascript and can be left, center, or right. This menu is not displayed by clicking, it is displayed when the mouse slides over and is
Positioning tag: positionInclude attributes: relative (relative)Absolute (absolute)1. position: relative; if a relative element is located, it first appears at its location. Then, move the element relative to its original start point by setting the
I used to see the effect of css text surrounding pictures on Sina, but I couldn't understand it myself. I went to ask a front-end colleague and now I realized it was so simple, here are two examples.:I. In html format · Www .111cn.net · Www
I made CSS calendar some time ago, and then I want to use css to create a table model. This model follows the affinity rules and has good visual effects.Figure: color selection and matchingThe advantage of this is that using tables to load data is
1. Left-side fixed adaptive layoutFloating element on the rightThe rendering of a webpage has a lot to do with the mechanism of the webpage. The first element to appear is displayed first, and the element on the right is set to right. The element on
The following figure shows the effect. Triangle direction "width: 0 ",The reverse direction is the triangle height (20) "border-width: 20px ",The reverse color is the triangle color "border-color: # eee ",Add the other two directions to the triangle
Hack List (all tested by the author, in standard mode, hybrid mode is rarely used, so it is not tested ): The pink part is the property hack, and the yellow part is the selector hack, which can be used in combination. In addition, Firefox and Chrome
Instance The code is as follows:Copy code Html code www.111cn.net CSS vertical center DIV Example 2 test content Note:Vertical-align: middle; indicates vertical center in the row. We will increase the line spacing to the same height as the
The code is as follows:Copy code pseudo-class pilot... return Back to the grass .. CSS pseudo-class: before,: after 8.29 shenzhen 9.10 guangzhou shanghai 10.15 11.12 beijing 12.10 chengdu Tips: If you use IE6 IE7, you should be able
In the past two days, I took over the work of a former employee and found a general button style with compatibility problems in IE. Code First The code is as follows:Copy code Display: inline-block; line-height: 18px; margin-left: 5px; border:
I. About the noWrap attribute of TD☆Ask the question:I set nowrap and do not set nowrap to the same effect. That is, the table automatically stretches with the text. Why?& Rarr; answer:The behavior of the noWrap attribute of the TD element is
I. Use css abbreviationsUsing abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of css abbreviations, see common css abbreviations syntax summary, which is not described here.II. Define the unit
When using TABLE and DIV for page layout design, the size defined in the layout will be damaged in case of large images and long English strings, resulting in page layout deformation.Is there a solution?The OVERFLOW: hidden attribute of CSS can be
I. Use the STYLE attributeAdd the STYLE attribute directly to individual component labels. For example:The advantage of this usage is that the style can be applied to various labels smartly, but the disadvantage is that there is no "uniformity" of
When browsing a webpage, we can sometimes see that the color of some webpage scroll bars is not the default color of the system, but the beautiful red or other colors. In fact, this is implemented by adding code between webpage codes, what code is
Ie6.0/ie7.0/ie8.0. in order to make the written code run normally in various mainstream browsers, we have to write corresponding styles for various browsers. In this article, the bloggers will summarize the css Compatibility with hack (mainly ie6,
Tip: you can modify some code before running The background is translucent and covers the entire visible area. Place holder height: 1000px; The background is translucent and covers the entire visible area. This article mainly introduces how
You can set the color specified in an object to transparent in the Chroma attribute. Its expression is as follows:Filter: Chroma (color = color)The expression of this attribute is not very simple. It only has one parameter. You only need to set the
Effect of div + css layout on website optimizationI. Simplified web page codeWith DIVCSS layout, the page code is simplified. I believe I know all about XHTML. Watch more HTML tutorials.There are two direct benefits of code streamlining: first,
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.