Wrapping lines for plain text paragraphs
Case Description: In practical applications we often encounter such a problem, is a paragraph of text, with a clear width, the need for text to automatically wrap. (pictured below)
Case study: The above
Background-size value type: One or 2 values that can be either pixel px, percent% or auto, or a specific value cover, contain.Background-size can set 2 values, 1 are required, and 1 are optional.The 1th value specifies the width of the background
Defining IDs in XHTML, Classs are all used, mainly the aspect CSS defines the style to be able to wear at a glance. So, CSS naming is for reference only.
(1) Page structure class
Container: Container
Page Header: Header
Content:
*{margin:0; padding:0;} html,body{width:100% height:100%; body{background: #fff URL (/eg/eg_2014_01_02_14_50.jpg) center no-repeat; let the background picture in the body label vertically centered &L t;h3> label background picture Horizontal
As shown in the picture effect:
First look at the XHTML code:
item one subitem one subitem two subitem" three subitem four item two item three item four
See how CSS is fixed for a long time related elements:
Each time you encounter a Chinese composition page, you need to indent each paragraph at the beginning of the two grid. Before the silly, with the program detection tags to the beginning of the Chinese paragraph of the empty two-pane indentation,
When we define the div width, inside the content may be more, will be super out, will div or form to support the big, deformation of the impact of the Web page beautiful, introduce a method, with CSS forced to hide unwanted content and automatically
The principle of the button adaptation is to use a label and I tag each one of the background combination into a button to achieve adaptive, the implementation of CSS style and HTML structure as follows, interested friends can refer to the following
Basic knowledge of application
The application of CSS is not difficult, but please refer to the basic understanding here, some words have a little basic concepts, for you look at the back of the teaching will be helpful, it looks like it will not
Picture frame effect Presumably everyone knows it, then how to use CSS to achieve it? Here is a good example, interested friends can refer to the following
Effect chart1, CSS style
Copy Code code as follows:
. pic. box{
Background:url
This article mainly introduces the JS batch operation CSS Properties. Need friends can come to the reference, I hope to help you. Code as follows: We write CSS styles in JS usually in the following two ways: in general, we use JS to set the
To set a specific CSS property or set multiple CSS properties, here's a good example of the followingSet CSS properties to set the specified CSS properties, use the following syntax: The code is as follows: CSS ("PropertyName", "value"); The
First declare:
Although I have been working on the front end of the web for many years, the technical requirements of the post are not high. Html,css used more, javascript their original little, basically copy modified, so they really do write,
Brief tutorials
This is a team who uses pure CSS3 to introduce animation effects. The effect is laid out using the bootstrap grid system, where the description will have some animated effects when the mouse hovers over the pictures of each team
Common text styles are as follows:
text text Styles titlethis is a tesT Text,this is a test text,this was a test textthis is a test text,this was a test text,this is a Test textthis is a test text,this was a test text,this is a test
The left-right three-column page layout is very common, so let's take a look at the CSS fixed-width three-column layout using example parsing, including equal-width equidistant arrangement methods:
Fixed width three column layoutThis is very basic,
This article for you to share how to use CSS3 to turn the image into a gray model of the effect, the implementation is very simple, the need for friends can reference.
Instance code:
The code is as follows:
http://www.php.cn/;/a > "> http://www.
Basic
To see the simplest notation of a descendant selector, the strong tag belongs to the descendants of the P tag, and the I label belongs to the strong tag descendant:HTML code:
my name is lidaze hahah.
CSS code:
P Strong {
The box is the basic concept in CSS, and we need to use it to configure the appearance of the elements and the overall layout of the document.
1. Apply padding to elements
The app padding adds white space between the element content and the
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