Vertical navigation menu is also an important form of Web application, the so-called vertical navigation menu refers to the left or right side of the Web page from top to bottom arrangement of a navigation form. Let's look at the effect first!
Premise: Bubble box or cue box is a very common Web page, there are many ways to achieve it, we used to cut the picture and then through the "positioning" way to locate the corresponding location, but in this way maintenance is very troublesome,
This article mainly shared the response-style navigation bar specific code for your reference, the specific content as follows
1. Basic navigation bar NavBar Navbar-default Navbar-header Navbar-brand nav Navbar-nav2. Forms in the navigation bar
Font size using px
Declare CSS within a single line
Compare the following two:
H2 {font-size:18px border:1px solid blue; color: #000; Background-color: #FFF;}
H2 {
font-size:18px;
BORDER:1PX solid blue;
Color: #000;
Background-color: #FFF;
}
The
First to show you the effect of the picture, if you feel good, please refer to the implementation of the code Oh!
Html:
Application identification 1 + X --> Application identification: --> Cancel Save OK
The word "CSS" is so strange that it seems to me more like a label that identifies a particular state.
And the classes in the program.
Pseudo-Class with: Following the selector, identifies some states
:: Indicates CSS3 some new pseudo class, the
Using CSS to set the height and line-height of select is invalid in some versions of Android, but can be added by adding "-webkit-appearance:listbox;" property to resolve the bug, the full instance code is as follows:
. styled-select
Details of the specific code are as follows:
The basic idea first hides (Dispaly:none) again displays, the translucent mask layer passes
z-index:9998;z-index:9999;
The bigger the value, the higher the front.
Index.html
jquery click
FloatingIn a standard document flow, a block-level element automatically stretches in the horizontal direction until the bounds of the element that contains it, arranged in the vertical direction and in the other block-level elements.To implement
RGBA
Background:rgba (0, 118, 160,. 25);
The first three values are RGB color values, the last value is the horizontal transparency (0 = transparent, 1 = opaque).
RBGA can be applied to any color-related attributes such as font color, border color,
Clear float is a function that every web foreground designer must master.
Why is it so hard to float?
Because floating causes the current label to float, it affects both the front and back labels, the position of the parent label, and the width
Copyright information area (bootstrap) at the bottom of the website, and copyright information bootstrap
The power of bootstrap is beyond doubt. Therefore, the "raster system" of bootstrap can be used in the copyright information area at the bottom
Understanding and usage of callback functions in js, js callback Functions
Understanding and usage of callback functions in js
I. Functions of the callback function
The js Code goes down to the next line, but sometimes we need to wait until an
Html css style sheet layout and htmlcss style sheet Layout
I. position: fixed
Lock location (relative to the browser location), such as the pop-up window in the lower right corner of some websites.
Example:
Ii. position: absolute
1. The outer
The small navigation bar has big secrets ., Navigation bar secret
The author recently joined FreeCodeCamp, A GitHub open-source project, and is also a recognized online school. At FreeCodeCamp, the author encountered difficulties following the
Add scroll = "no" to to hide the scroll bar;Add style = "overflow-x: hidden" to to hide the horizontal scroll bar. Add style = "overflow-y: hidden" to hide the vertical scroll bar.1. Completely hiddenAdd scroll = "no" to hide the scroll bar;2.
The display: inline-block attribute is often exposed when CSS is used for performance. Whether it's a friend who has been familiar with Web standards or standards for a long time, metropolis is confused and vague about this attribute.Display: inline-
Please note that some CSS pseudo-class attributes are not supported by all browsers, but four pseudo-classes can be safely used on links.A pseudo-category is like a bolt that specifies the selector status or associates a selector. Their form is as
Now IE7 has been launched for a period of time and penetrated into users. We don't have to wait too long to use more advanced CSS on the page. The two most useful items will be the Child and Adjacent Sibling selector. It is now time to use them to
If 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
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service