Some interesting CSS questions (15th) -- about CSS keywords initial, inherit and unset, inheritunset
Start this series and talk about some interestingCSSQuestions and question types are not empty. What to think of is not only to broaden the problem-solving ideas, but also to involve CSS details that are easy to ignore.
Compatibility is not taken into consideratio
Baidu front-end Technical College-Xiaowei College (HTML + CSS course tasks), Xiaowei cssTask 1: Basic HTML coding course overview
Job submission deadline: 04-24Important
The course tasks of Baidu frontend Institute of Technology are designed by Baidu frontend engineers for students with different levels of knowledge on the frontend. We try our best to ensure the quality of the course content and the rationality of the learning difficulty, but even so,
Table of Contents
CSS Properties
CSS Rules
You style HTML elements via CSS properties. Different HTML elements May has Different CSS properties you can set. CSS properties can be organized into CSS rules. A
Refer to the Packaging tutorial:Http://www.cnblogs.com/tugenhua0707/p/4069769.htmlHttp://www.cnblogs.com/tugenhua0707/p/4982646.htmlHttp://www.tuicool.com/articles/viequayKey points of implementation:1, how to Run Gulp task, join the new good one the following tasks:// Grammar Check function () { gulp.src (' js/**/*.js '). Pipe (Jshint ()) . Pipe (Jshint.reporter (' default ')) ;});Then run on the command line: Gulp Jshint2, why install the global also to install the local, refe
, ABC shared these 12 copies.On the flat-screen medium screen, the uplink a accounted for 8 copies B accounted for 4 copies, AB shared these 12, the downlink a accounted for 10 parts B accounted for 1 parts C accounted for 1 parts, ABC shared these 12 copies.On the PC's big screen, the uplink a accounted for 4 copies B accounted for 8 copies, AB shared these 12 parts, the downlink a accounted for 1 parts B
CSS English name cascading style Sheet, Chinese name is cascading style sheet, is used to control the page style and allows to separate the style information from the Web page content of a markup language, DIV+CSS is the web design standards, it is a Web page layout method. In contrast to the traditional way of positioning by table layout, it can be used to separate the page content from the presentation. M
Are you learning CSS layouts? Are you still unable to fully master the pure CSS layout? There are usually two situations that hinder your study:
The principle of CSS processing page. Before you consider the overall performance of your page, you should first consider the semantics and structure of the content,
Then add CSS
The theoretical basis is necessary, practice is the way to promote and understand the theory, both of which are equally important, and any design and development personnel to leave the balance, regardless of which side, will be fan or left or right error. But what's the use of the method I'm talking about in practical applications? Obviously, it is not able to create rounded rectangles, nor can we create a breakdown of the layout, it is even more impossible to give us a fixed in the document the
" tag corresponding to the source code.Let's talk about how to copy the source code of the Baidu menu.(1), according to the Sub-label, gradually look up the parent tag, such as the above "news" corresponding to the parent tag with the Class name tab DIV tag, in the upper level of class= "NV" Div, through the page elements of the background color, you can determine whether the element is selected or included, such as Click Class = "NV" Div, the menu changes to:(2) Basic can be determined, class=
of the selector where the pseudo-element appears. It would be illegal to write P:before em.P:before{content: "Text"}4: After the content is inserted after the element contentBy default, this pseudo-element is an inline element that inherits the attributes of an elementP:after{content: "Text"}9. Property SelectorThe property selector selects elements based on their attributes and attribute values1. Simple attribute Selectora[href][title]{color:red;} #div [Class]{color:red;}. box[id]{color:red;}i
conditional version
! : Select all versions except the conditional version, regardless of height
1. Css If hack conditional syntax
Only all win systems can be identified with IE
Only IE5.0 can identify
IE5.0 shifting IE5.5 can be identified
Only IE6 can be recognized
IE6 and the ie5.x below IE6 can be identified
Only IE7 can be recognized
IE7 as well as IE6 and ie5.x below IE7 can be identified.
Only IE8 can be recognized
Only IE9 can be reco
Css1. Processing of Forms 2, 3. Setting of border4. Specify margin6, set the height of the element Dimension7. Set the height according to the percentageXss-htmljavaskcriptcssjqueryajax-css
SRC1:OK, CSS3 3D transform transform, that's it! Evaluation: Explain the basic concepts and principles of CSS 3D transform, super easy to understand, read clairvoyant Ah!!! A humorous programmerNotes:First, 4 concepts1, Breach: three methodsThree methods in 3D transform:(1) Rotatex (angle): Front push down(2) Rotatey (angle): Turn Around(3) Rotatez (angle): Lying in a horizontal hug2. Essential Perspective (Perspective, perspective)No perspective, no
This method will be the address of the CSS file with JavaScript to output, and encrypt characters, we try, what way can show these? Think about it.
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
-level label nor a container-level label. Just use the label form to represent the picture.
Text-level tags are: Span,p,u,i,em,strong ...Container-level labels are: Div,h,li,dt,dd ... block-level elements and inline elements
CSS divides HTML elements into two blocks of block-level elements and inline elements . By display:inline/block The default style to the element, the main difference is that the block-level elements occupy the entire row, while th
1 Block-level elements and inline elements
1 Block-level elements
Occupy a row and cannot be tied to any other elements
Can accept wide, high
If you do not set the width, the width defaults to 100% of the father.
2 in-line elements
Alongside other inline elements
cannot be set wide and high. The default width is the width of the text.
In HTML, we have divided the tags into classes, at that time: text-level, container-level.
Text level: P, span, a, B, I, U, EM
Container level: Div, H Series, Li
1 areas in the box
The main attributes of a box are 5: width, height, padding, border, margin.
Width is the meaning of "breadth", which refers to the width of the content, not the width of the box.
Height is the meaning of "altitude", the height of the CSS refers to the level of the content, not the height of the box
Padding is the meaning of "inside margin"
Border is "border"
Margin is "outside margin"
true possession width = left border + Left p
Article Introduction: 2 hours to learn CSS to make Web pages.
The first step: Planning the Web site, this tutorial will be illustrated as an example to build a Web site
1. Planning the website, this tutorial builds the Web site as an example of the following illustration.
The basic layout is shown in the following figure:
Consisting mainly of five parts:
1.Main navigation navigation bar with button effects. width:760px height:50px
Css
one. Selector modePattern/meaning/content description
*
matches any element. (Universal selector)
E
Matches any element e (for example, an element of type E). (type selector)
E F
Matches any descendant element F of element E. (descendant selector)
E > F
Matches any child element F of element E. (sub selector)
E:first-child
When Element e is the first child element in its parent element, the match element E. (: First-child pseudo Class)
E:link e:v
The use of this property in the project sets the vertical display of the text, but it can only be used in IE, and there is no good workaround in other browsers.
Grammar:
WRITING-MODE:LR-TB TB-RL
Parameters:
LR-TB: Left-right, up-down
TB-RL: Up-down, right-left
Description
Sets or retrieves the intrinsic writing direction of the object's content block. Western languages are left-right, up-and-down writing methods. But Asian languages often write in the upper-down, right-left ways.
When this prope
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.