Implement tooltip prompt box, CSS arrow and shape in pure CSS, tooltipcss
This section describes how to use CSS to make prompt boxes, arrows, and other shapes like tooltip!
First introduce CSS: after Selector
Definition and usage: (See w3school: after selector)
: The after s
, therefore, search the next, decide to use plug-in solves:1. Using the Jquery.nicescroll.min.js plugin// jquery.nicescroll.min.js plug-in jquery.nicescroll v3. 7.6 1 . Support Div,iframe,html, etc. 2. Compatible with ie7-8, Safari,firefox,webkit Core Browser (Chrome,safari) and the scroll bar of the smart device browser 31.8 Cursorcolor-Sets the scrollbar color, the default value is "#000000"Cursoropacitym
Chapter 5 Use CSS styles
Key points of this ChapterApply styles to HTML documentsCSS style code writing rulesTypes and usage of CSS style selectors
Directory:5.1 apply styles to HTML documents5.2css style coding rules5.3css style Selector5.4 style priority
5.1 apply styles to HTML
1. webpage content
The webpage content is the information encoded in the HTML page, which can be found between the HTML Tag's switch tags. These tags define the content structure.
Example:
The webpage content is: this is a car2: Display ModeThe display method of the content is not defined by HTML. It is determined by CSS
Author: Tang GuohuiInstance webpage: http://www.hsptc.com/css2.htmlPrefaceIf you want to try to typeset web pages without using tables, you can use CSS to typeset your web pages, that is, you can often use DIV to orchestrate your web page structure, or you want to learn about the standard design of web pages, or your boss wants you to change the traditional form layout mode to improve the competitiveness of enterprises, one of the things you must unde
rule before the current rule.
On any element.
Delete a feature.
Delete selected features.
Any features.
Delete rule
Delete selected rules and all related features.
On any rule or selector.
On the "CSS" tab, change the numeric CSS value.
The CSS attribute value can be changed like almost any other attribute
Basic CSS knowledge (color, pseudo class, Box Model), css
6, Set the color unit
L normal English word {color: attribute value red ;}
This method is simple and convenient. However, different colors may be displayed in different browsers.
* Primary colors-red, green, and blue
L octal color
Format: rgb (number,Number,Number), The number range is 0 ~ 255 r Red g gree
can consider adding a background database to allow users to log on. At the same time, I also found some problems. At the beginning, JS and CSS were not separated from HTML, and they were all written in the same page. The distinction between different class selectors is also unknown. Almost all are id selectors. There are also poor color matching and design, and the div is messy. I didn't understand it at t
do you call it a box? Let's start with the attribute names we often hear in web design: content, padding (padding), Borders (border), boundaries (margin), and CSS box patterns.
Pages stacked by "box"
Now how much of the CSS box m
Align-itemsThe Align-items property applies to all Flex containers, which are used to set the default alignment of each flex element on the side axis, as well as a response from one of the respondents:Align-items and Align-content have the same functionality, but the difference is that it is used to center each single-row container instead of the entire container.Align-contentThe Align-content property applies only to multiple lines of flex containers, and when there is extra space on the side a
The "abstract" box model is an important concept in CSS, although the CSS does not have a single Property object, but it is an important part of the ubiquitous CSS. Mastering the principle of the box model and how to use it can greatly enrich the performance of
This article mainly introduces the HTML+CSS implementation of the Single box, check box beautiful style, the need for friends can refer to the following
1. Background map
Html
Css
. cart-checkbox.checked { background-p
Introduction to Javaweb (v)-html/css/javascript Basics
tags (space-delimited): Javaweb
Original address DTD document model and HTML base
is the most popular document model, that is, the HTML5 model. the meaning of common labels
utf-8.
Viewport is used to configure some of the parameters of the user's portal, mainly for setting parameters such as the zoom ratio
Proficient in CSS and HTML design patterns chapter 1 (easily deal with CSS)
Proficient in CSS and HTML design patterns chapter 2 (HTML design patterns)
Proficient in CSS and
navigation (Main menu)
Sub Menu
Search box
Ribbon (e.g. shopping cart, cashier)
Footer (copyright and related legal notices)
We usually use DIV elements to define these structures, like this:
This is not a layout, it is a structure. This is a semantic description of the content block. When you understand your structure, you can add the corresponding ID to the div. The div container can contain any
"). Bind ("MouseLeave", function () {$ ("#searchresult"). empty ();$ ("#searchresult"). CSS ("display", "none");});});Set query result DIV coordinatesfunction Changecoords () {var left = $ ("#areaName") [0].offsetleft; Gets the distance from the leftmost end, the pixel, the integer typevar top = $ ("#areaName") [0].offsettop + 26; Get the distance from the top, pixel, Integer (20 is the height of the search
With the popularity of HTML5, more and more new functions are applied. The combination of HTML5 and css3 can easily achieve many cool effects. This article explains how to use HTML5 and css3 to create a cool search box that automatically obtains focus and supports voice input.
Html
We place a search form Form on
, frames, and other HTML elements used for representation.
2. Improve the page browsing speed. The CSS method saves at least 50% of the file size than the traditional web design method.
3. Shorten the revision time. You can simply modify several CSS files to redesign a site with hundreds of pages.
4. Powerful font control and layout capabilities.
Box Model ------ CSS, model ------ css
The inner world of the box
1. Model
Eyes through CSS
In CSS, all elements of HTML are regarded as boxes: paragraphs, titles, block reference
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.