Basic Html learning (W3school-based network tutorial) and w3school network tutorial
// Prevent garbled characters
Add in head
// Format the external style sheet in the head.
// Use the html style sheet for formatting
// Bgcolor defines the
CSS: Table style (set the style of the table border/text/background), css table border
You can use CSS to create exquisite tables.
Code organized from w3school: http://www.w3school.com.cn
:
Code:
CSS table style (1) province area
Because the tr in the table is not a single border, you need to set the border-collapse and border-collapse attributes to set whether the border of the table is merged into a single border, it is also displayed separately as in standard HTML.
border-
First, W3school data:For separate settings as shown in the table above, there is no doubt. However, when abbreviated:Border-image:url (/i/border.png) round;One parameter: Image address;Two-parameter, three-parameter: only fill in one time to
2. CSS Box Model2.1CSS Box Model OverviewThe CSS box model specifies how the element frame handles element content, padding, borders, and margins.CSS Box Model OverviewThe inner part of the element box is the actual content, and the content is
To view the source code of a Web page only need to right click on the blank space to view the Web page source or Ctrl+u.Download the Text editor editorBefore learning HTML and CSS, we need a text editor, the computer's own Notepad can write HTML
CSS box model, css box
December
Chapter 4 css beginners
1. Each HTML element corresponds to a display box, but not all elements are displayed on the screen.
2. The real method for displaying HTML elements as CSS display boxes is called "visual
2016-10-22"CSS Primer Classic", chapter 6th1. Each HTML element corresponds to a display box, but not all elements are displayed on the screen.The real way that 2.HTML elements display a box for CSS is called "visual formatting." Visual formatting
First, the Basic Law:
The first character of the class name cannot use a number, otherwise it will not work in Firefox;
Do not leave spaces between attribute values and units, otherwise it will not work correctly in Firefox or Netscape.
These two days to do the front page to find a person in the CSS front-end method A lot of basic knowledge has forgotten, the evening and search for learning, the relevant content extracts summarized.A CSS rule consists of two main parts: a selector,
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.