This exercise is primarily a simple demonstration of the positioning and relative positioning of the data;Here is the location of HTML:1.static PositioningThis is the default way, and for static , left and right are not valid. 2.relative positioning (relative positioning)The element box deviates from the position of its own flow (left and top positioned ), the element remains the shape before the position, and the space it originally occupies remai
CSS exercises-separated by diagonal lines in the navigation bar-use pseudo elements-five trees and ten racks
Start to cut the first image. The first problem is that the top navigation bar is separated by a diagonal line. The idea is to use a pseudo class: before or: after.
Write the html structure first.
Home About Features Blog Shop2
Style again
from the parent element.
Example:1 DOCTYPE HTML>2 HTML>3 Head>4 title>CSS Box-orient Exampletitle>5 style>6 Div.example{7 Display:-moz-box; /*Mozilla*/8 Display:-webkit-box; /*WebKit*/9 Display:Box; /*As specified*/Ten One /*children should be oriented vertically*/ A -moz-box-orient:Hor
Course Hall +
Video Course +
Java
PHP
C Language
Case study +
Programming exercises
Instance operations
Answer Analysis
Communication and learning
Learning center +
Front-end course +
HTML/CSS
JavaScript
JQuery
Mobile Development +
label, margin is the performance attribute, the former belongs to HTML, the latter belongs to CSS. (This is the separation of the structure from the performance phase.)
Well structured HTML pages have almost no label for performance attributes. The code is very clean and concise. For example, the original code
in HTML
CSS super tips
I. Use css abbreviations
Using 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 unless
only center the text), and the second text-align: left; is to place the text in # warp to the left.
15. Import and hide CSS
Because the browser of the old version does not support CSS, a common practice is to use the @ import technique to hide CSS. For example:
@ Import url ("main.css? 6.1.3 ");
However, this method d
some images, preferably dynamic, a station should not load too many resources, so I decided not to use dynamic images, so we can see the following artifact! This can be used as an image. In fact, it is called a sidebar announcement, but as long as the HTML in it is defined as an absolute position, you can place things anywhere on the page, so with HTML and CSS,
In HTML,,Font styleCommon font Properties
Property name
Meaning
Example
Font-family
Set Font type
Font-family: "Official script";
Font-size
Set Font size
font-size:12px;
Font-style
Set font style
Font-style:italic;
Font-weight
Set the weight of a font
Font-weight:bold;
Font
Set all font properties in a decla
In my experience, most of the technology, familiar with the following four types of books can be.
Introduction, in plain language and way to tell the right truth and method, such as head first series
Comprehensive, exhaustive to explore every detail, encountered difficult problems often can be here to get theoretical solutions, such as definitive guide/programming XX series
To describe how to design and solve this problem , such as the Cookbook series, which is often encountered
Career development, code 100 days--2018-04-11Getting and modifying HTML elements and CSS properties through JavaScript is one of its basic functions. For CSS styles, there are usually inline styles, external styles, and embedded style points.Such as:Inline style: id= "box" style= "Width:100px;height:100px;background: #ccc" > Div >External style:rel= "styleshe
, margin is the performance attribute, the former belongs to HTML, the latter belongs to CSS. (This is the separation of the structure from the performance phase.)
Well structured HTML pages have almost no label for performance attributes. The code is very clean and concise. For example, the original code
in HTML
, margin is the performance attribute, the former belongs to HTML, the latter belongs to CSS. (This is the separation of the structure from the performance phase.) There are almost no labels in a well-formed HTML page for performance properties. The code is very clean and concise. For example, the original code
in HTM
1. Element classificationIn CSS, tag elements in HTML are broadly divided into three different types: block elements , inline elements (also called inline elements) , and inline block elements .(1) The commonly used block elements are:Block-level element features:
Each block-level element begins with a new row, and the subsequent element also starts another line. (True overbearing, one block-level
the domain of other programming languages; JavaScript evaluation,javascript expressions that use JS expressions in less or sass files to assign values. --DesertTransfer from: http://www.cn-sass.com/translation/an-introduction-to-less-and-comparison-to-sass.htmlInstallationLess installation and sass installation is different, he does not need to rely on the ruby environment, can be directly installed to use. However, the less installation is divided into two types: client and server-side install
What is HTML?Hypertext Markup Language, Standard Universal Markup Language one of the following applications. " Hypertext " It means that the page can contain pictures, links , even music, program and other non-literal elements. Hypertext Markup Language structure includes " header " section (English: head " body " section (English: body " header " " body " -----from Baidu EncyclopediaIn other words, the front-end interf
; H1>House infomationH1> Section> H1>LocationH1> P>P> Section> Section> H1>BUILDINGH1> P>P> Section> Section> Section> H1>Listing pictureH1> Section>Body>will be outline into such an outline:8. Block-level elements cannot be used inside inline elementsFor example, the following wording is not legal:href= "/listing?id=123"> Div> div>a>A tag is an inline element with a div tag inside the inline element, which may cause the a tag to not be clicked
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.