Full use of CSS for instance
The code is as follows
Copy Code
Using JS to Example
HTML code
The code is as follows
Copy Code
JS Codevar fancyform = {Start:function (elements,
Tip: You can modify some of the code before running
zishu.cn test 64d/47 Hits pixu 24d/35 hits scholar 6 6d/87 hits revealed 40d/34 hitslivid old 42d/36hits SmallJade 63d/67 hitspixu & Lt;p > Source address for
Transparency often produces good web page visual effects. First, we provide CSS transparent code compatible with mainstream browsers: The code is as follows:Copy code . Transparent_class {Filter: alpha (opacity = 50 );-Moz-opacity:
I. Translucent webpage backgroundTranslucent webpage background The code is as follows:Copy code Opacity: 0.8;Filter: "progid: DXImageTransform. Microsoft. Alpha (opacity = 80 )"; The CSS method in IE6 solves the problem of PNG image
In the previous article, we have already mentioned the usage of CSS attributes such as positioning, layout, and CSS size. Today we will talk about the other two important attributes of CSS, Margin) and Padding (inner Padding ). These two attributes
Force do not wrapCSS settings do not change rows:Overflow: hidden hideWhite-space: normal defaultPre line breaks and other blank characters will be protectedNowrap forces all text to be displayed in the same row until the text ends or encounters a
I have never been too clear about vertical-align's attributes. Today I just met a friend who asked me related questions, so I did some research on it myself, I found that this is not a simple thing. All the things I share here are for abandoning the
CSS displays a line of text at the bottom of the image to describe the content of the image. It is used as the image Title. The title text and background can be set to Translucent. When the mouse passes through the image, the border is changed.Code
Once I wrote a web page, it was not difficult to learn css as a whole, but it was just element positioning, and I had always had a thorough understanding. Today, based on the concept of practice, after careful testing, I have concluded the following
Example The code is as follows:Copy code Img {Height: 15px;Width: 15px;}Img: hover {Height: Pixel px;Width: Pixel px;} Transition is used to specify the time required for state changes. The code is as follows:Copy code Img {Transition: 1 s;}
The following figure shows a simple design at the bottom of my website (menu and copyright notice) in the small window.The html structure is very simple: The code is as follows:Copy code Home About Services Portfolio Blog
There are many use cases of high-level layout. Many times, in order to meet the requirements of a column's background or border, the height of the outer frame is the same, and is not affected by the dynamic change height of other columns. Generally,
Inline-block, which is hard to understand and has attractive display methods, is only a lot of promises, but little to be fulfilled. I have received such PSD files many times:After reading it, I began to cry.This type of layout is usually a piece of
Method 1,If you use an image to write it on an image,Method 2: static packageIn this way, we wrap each letter in a span, and then set its display attribute to block in CSS. The code is as follows:Copy code Vertical Text N E T T U T S
Each segment contains two Chinese characters. In fact, 2em is indented in the first line. The code is as follows:Copy code to indent the first line of text in css, you only need to use text-indent. Length unit em. The font size relative to
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