Use the CSS real combat a concise and practical horizontal navigation menu, in order to make you easy to understand, we have added a note for each CSS definition, I believe that you will be able to create a tutorial on this menu, you can certainly use CSS to write a more beautiful navigation menu, the following start t
. Define body style
Define the body style of the entire page first, with the following code:
body {margin:0px;padding:0px;Background:url (.. /images/bg_logo.gif) #FEFEFE no-repeat right bottom;font-family: ' Lucida Grande ', ' Lucida Sans Unicode ', ' Arial ', ' New song Body ', Arial,verdana,sans-serif;COLOR: #666;font-size:12px;line-height:150%; }
The function of the above code in the last day of the tutorial is detailed, you should see it. The bor
The font size of the serial number displayed in most browsers is the same as that of the text by default. This is a simple CSS tutorial that uses ordered lists and paragraph tags to design a trendy numbered list.
Summary
Define the
1. Html source code
Write an ordered list and do not forget to wrap the text with
Copy to ClipboardReference: [www.bkjia.com] This is displayed by default.
2. ol Elemen
CSS getting started Tutorial: sinking the first word of a webpage: First-letterVersion: CSS2 compatibility: IE5.5 +Syntax:Selector: first-letter {sRules}Note:Set the style of the first character in the object.This pseudo object only acts on block objects. To use this attribute for inline elements, you must first set the height or width attribute of the object, set the position attribute to absolute, or set
attribute, but this syntax is not widely supported at this time.4.2 Text-shadowValue: Offsetx,offsety,blur,colorYou can set multiple sets of shadows separated by commas.4.3 text-emphasisUsed for accent marks. Browser support is still poor at the moment.5. Writing mode5.1 derectionValue: Ltr,rtlSpecifies the orientation of the elements in the row, the direction of the table column layout, the direction of the horizontal overflow, and so on5.2 Unicode-bidiValue: Normal,embed,bidi-overrideIn combi
> user's normal declaration > browser Default statementSecond, in the developer's statement by the cumulative weight value to determine the priority
Type (high to low)
Weight
Description
Important statement
Infinitely large
!important
Inline declaration
1000
Style
ID Selector
100
#id
class, attribute selection, and pseudo-classes
10
Elements and pseudo-objects
shadows, respectively. The "Positive" parameter is a Boolean value, and if True (not 0), a visible projection is established for any non-transparent pixels. If it is "Fasle (0)", then create a transparent effect for the transparent pixel portion
Normal text
Text after DropShadow (color=gray,offx=5,offy=5.positive=0)
6. Glow Filter
Grammar:
{Filter:glow (Color=color,strength)}
When you use the "Glow" property on an object, the edge of the object produce
Only for novice reference study, we welcome you to propose more ways to achieve.
The above is the HTML and CSS to do Web Instance Tutorial: Page List interlaced content, more related articles please pay attention to topic.alibabacloud.com (www.php.cn)!
whole page body. The Code is as follows:Example Source Code [www.52css.com] body {MARGIN: 0px;PADDING: 0px;BACKGROUND: url (../images/bg_logo.gif) # fefefefe no-repeat right bottom;FONT-FAMILY: 'lucida grande', 'lucida Sans Unicode ', '',' ', arial, verdana, sans-serif;COLOR: #666;FONT-SIZE: 12px;LINE-HEIGHT: 150% ;}The role of the above Code is described in detail in the previous day's tutorial. you should understand it at a glance. Set the border t
frequently, you will find that almost every entry in it uses this kind of navigation method. If the browser cannot find a named anchor that is already defined, it will be positioned at the top of the document.
Other tricks
1) Link Add text tip You can use the Title property to hover over a hyperlink to display a text comment for that hyperlink. such as . Move the mouse over the link to see the effect: Home 2) Link to email address as long as the link href attribute is set t
This article mainly introduces Dom + CSS for the basic tutorial, the need for friends can refer to the following
1. Use getElementsByTagName to modify class categories or append categories
The code is as follows:
css| Tutorial | style sheet
classIn order to define the Web page format more accurately, it is necessary to make the same selectors can be categorized, and can be different categories for different style design. The basic format is as follows:
Selector. Category name {property: value}
A category name can be referenced in an character of an HTML ID:
Instance:
ID
ID, which is to send an "id" to
css| Tutorial | style sheet
● specificity
This section describes the "specificity"that is used to determine style precedence. The "specificity" high priority applies to "specificity" and the number of elements in the selector selector and the attributes of the element.
How do you calculate the "specificity" value of a selector? involves three items:
1. Number of selector ID identifier attributes aNote: A pr
css| Tutorial | Conditional boundary superposition is a fairly simple concept. However, when you lay out a Web page in practice, it can cause a lot of confusion. Simply put, when two vertical boundaries meet, they form a boundary. The height of this boundary is equal to the larger of the height of two overlapping boundaries.
When an element appears above another element, the bottom boundary of the first e
The ideal goal of this navigation menu is:
1. Beautiful and personalized.
2. Clear structure, clear semantics, and no redundant labels.
3. The presentation, structure, and behavior are separated by three layers without intrusion.
4. It is conducive to data output of background programs.
5. The menu has a changed effect.
6. The menu items after clicking can be highlighted.
7. Adaptive text width. The button can change as long as the text content is changed.
8. compatible with mainstream browsers.
PHP + HTML + JavaScript + Css implements simple crawler development and javascriptcss. PHP + HTML + JavaScript + Css implements simple crawler development, and javascriptcss develops a Crawler. First of all, you need to know what your crawler is intended. I am going to use PHP + HTML + JavaScript + Css to find different websites for simple crawler development, ja
There are many examples of html+css, the following list of commonly used columns, for beginners to learn the reference.
Html+css instance effect (1): Mouse over change text
The above is the HTML and CSS to do the page instance tutorial: Mouse over the text changes the content, more related articles please pay attent
In web authoring, there are many terms, such as: CSS, HTML, DHTML, XHTML, and so on. In the following article we will use some basic knowledge of HTML, and before you learn this introductory tutorial, make sure you have a certain HTML base. Let's start by using DIV+CSS to design your Web page layout in one step.
All the design of the first step is the idea, wel
1. Page Layout and planning
There are many terms in web page creation, such as CSS, HTML, DHTML, and XHTML. In the followingArticleWe will use some basic knowledge about html. Before you start this tutorial, make sure that you have a certain HTML base. Next we will start to use Div + CSS for webpage layout design step by step.The first step of all designs is t
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.