The improved version optimizes the problem by adding a menu to a simple JavaScript code. At the same time make the HTML page is very concise, only need to write 2 lines of code can! O (∩_∩) o
1. Use the premises, introduce a CSS file in the HTML
The abbreviation for font, if omitted family,
As in this way:
font:700 14px/22px;
is not effective under Firefox.
The complete formulation is: font:700 14px/22px Arial;
I'm not centered vertically I center vertically
[Ctrl +
The pure technology of the front end is the cognition of the norm
What is a domcontentloaded event?
The first thought was to view the HTML5 specification for the domcontentloaded, and when the event was triggered:
Once The user agent stops
css| Web page
css layouts are common methods:
Float:none | left |
Take value:None: default value. object does not floatLeft: text flows to the right of the objectRight: text flows to the left of the object
How does it work, look at a row and
css| problem
Trademarks: Label
Titles: Title
Main navigation: Mainbav (GLOBALNAV)
Top Navigation: Topnav
Edge Navigation: Sidebar
Left navigation: Leftsidebar
Right navigation: Rightsidebar
Flag Blog: Logo
Slogan: Banner
Menu Contents 1:MENU1
1. The simple way, regardless, directly this can be:
Document.createstylesheet (). Csstext = ' label {color:red; ' +
This comment only helps understand in the current JS and is not written in CSS
' width:300px;height:150px} ' +
'. Class name {...} '
Article Introduction: There are many ways to clean up floats, like using the clear genus with the BR tag, using the element's overflow, using an empty tag to set the Clear:both, and so on. However, given the compatibility and semantic issues, we
css| Web page
Text property:
The properties here affect the display of text in the Web document.
Text-indent property Describes how the text is indented:
Property name: ' Text-indent 'Property values: | Initial value: 0Fit object: Container
Core tip: designers often use a number of unique font effects and page effects, Shadow is one of them, it can make the page text and elements have three-dimensional effect, thereby being highlighted.
Designers often use a number of unique font
Core tip: When you set these distances, you can use the various length units or proportions you have learned. When using proportional values, the proportional value refers to the dimensions relative to the parent element.
Positioning (left and top)
Web page Production WEBJX article introduction: CSS Weight Loss tool-css Usage.
Front-end build engineers often encounter the scale of the site's products, product quantity, daily topic up and down the line and so on, resulting in the Web
Css|dreamweaver A. CSS Overview
Now the layout of the Web page is becoming more and more complex, many effects need to be implemented through CSS, Dreamweaver MX 2004 has made great improvements in the design of CSS functions. Today to give you a
Web page Production WEBJX article introduction: CSS: Mobile Web Development front-end technology and skills.
We talked about the mobile site in the label, presumably a lot of people also want to know about mobile CSS, this article will be
css| Create | page
A recent reader asked how to create a centered page layout with CSS. What the reader pursues is to achieve such an effect as to design a 800-pixel-wide table on a 1024-pixel page. This is a very extensive page design method,
css| Tutorials | filters | detailed
To make you understand the use of CSS filters, is a good tutorial! I hope to learn CSS useful for you!
1, examples of detailed CSS filter (1) Overview (2005-05-04)
2. Example Detail CSS filter (2) Mask
Let's look at a simple example where mouse events are bound to the keys of a virtual music keyboard. Code Listing 4-1 defines a simple page that contains the original document structure.
Code Listings 4-1 musical.html
Keyboard
We have
1. Basic grammar
The definition of CSS is composed of three parts: selectors (selector), attributes (properties), and values (value).
The basic format is as follows:
selector {Property:value}
(Selector {property: value})
A selector can be a
Different browsers are not consistent with the default styles for the same elements, which is why we write the * {padding:0;marging:0} at the very beginning of the CSS;
But that's not all I'm saying right now. Basically, the two browsers of
Brief tutorials
This is an ultra cool article card UI design effect made with pure CSS3. The article card has a shadow effect, and when the mouse hovers over the card, the description of the article is displayed in the card as a slide
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service