To make a font icon, you need to visit this website first, http://fontawesome.io/If it's too slow to open, you can use this, http://www.bootcss.com/p/font-awesome/.It's the same anyway.After downloading, you can see the following files, font fonts, less and scss are CSS source files, SRC is some instance filesWrite your own demo, directory belowThe demo.html code is as followsDOCTYPE HTML>HTML>Head>MetaChar
Http://zhidao.baidu.com/link?url=cvQhh0Q7_ah0qg9tc-2zP0cjB_ Poiiiq6t6rfpp4azppnovjuqyy7tt41tu5pwzrtryimnckdmkav36or-rrafyyghs__ulnjlnioggkyoc How does css make nested div layers not inherit the transparency of the parent div layer? http://blog.csdn.net/foart/article/details/39177653 Div floats on top and makes div background Translucent Code http://xiaohuang.cc/post/282.html/HTTP// Www.w3school.com.cn/
This time to everyone to bring CSS how to make hexagon picture, CSS to make hexagon picture of what to note, the following is the actual case, together to see.
With a simple div with pseudo-elements, you can ' draw ' this hexagon image, the principle is three identical wide-height div, by positioning the rotation to c
This time for everyone to bring CSS to make the mouse up icon rotation, to achieve the mouse move icon rotation of the note what, the following is the actual case, together to see.
The mouse up icon rotation effect is often used in enterprise projects, especially the top navigation bar, such as:
The next step is to use CSS to implement the mouse up icon rotatio
When you want to place a large submenu in a limited navigation menu space, we generally use the form of a Pull-down menu to make up for the lack of space. This article will take you with a minimum of time, using jquery and CSS combined to create a dynamic drop-down menu.
XhtmlThe first is to introduce the jquery library into the head section of the page, which is necessary.
Then I use an
css| Navigation
CSS CodeThe following is a reference fragment:
/* Common Styling * *
/* Set up the overall width of the menu Div, the font and the margins * *
. menu {
Font-family:arial, Sans-serif;
width:750px;
margin:0;
margin:50px 0;
}
/* Remove the bullets and set the margin and padding to zero for the unordered list * *
. menu UL {
padding:0;
margin:0;
List-style-type:none;
}
/* Floating list, so you
(Build)ANIMATE.CSS supports grunt, you can easily create a custom build process. First, you need grunt and other dependencies:$ cd path/to/animate.css/$ sudo npm installNext, run grunt Watch to change and compile your custom build file. For example, you only need a subset of animation effects, just edit the Animate-config.json file and select the animation you need to use."Attention_seekers": {"Bounce": true, "flash": false, "pulse": false, "shake": true, "Swing": True, "Tada": true, "Wobble":
length slightly larger, one is a white triangle. Someone will ask why the white triangle is through: after generation, because: after the white triangle can be generated in: before generated by the red triangle, and the formation of an arrow (be sure to set the top value of positioning, so that the bottom of the two triangle coincident).The JS code is as follows:$ ('. Test '). On (' click ', Function () { $ (this). Toggleclass (' active ');})The arrows rotate 180 degrees when clicked, and
Want to show the title or content of a piece of news in the layout, especially the content, more ... The following approach is to control how much text is displayed by using CSS:First, write in the HTML:After that, you start to set CSS styles:. ellipsis {Height:3em;Line-height:1.5em;width:100%;Overflow:hidden;position:relative;}. ellipsis:after {Background-color: #F2F2F2;Color: #F2F2F2;Display:inline;position:relative;Z-index:1;}. ellipsis span {Posit
Use CSS to make a triangle -/ * Relative positioning * /. Triangle {position:relative; }/* Absolute Positioning */. Triangle span {Position:absolute;top:5px;display:inline-block;/* Inline block * /width:0; height:0;border-width:5px; /* Edge color settings transparent the right-to-left change order on the transparent order to get a positive triangle line at different angles */border-color:transparent red
Bubble dialog box in the Web page is often used to explain the features such as hints, you can vividly vivid reality some users need to pay attention to the text and content, this article describes the use of CSS only to achieve this simple web page effect.
Bubble-like text box, is a very vivid web design means.
It can be used to represent a user's speech.
It can also be used as a prompt for specific information.
Netflix, a DVD rental website,
How to compile CSSCodeIn order to be more efficient? This is a concern of many web page makers and developers. There is no magic. You can make sure that your style sheet is reduced to, but the CSS coding and organization skills are reasonable, it can indeed help you write clearer and more efficient code more efficiently. Naturally, you can reduce the size of the style sheet and reduce the download time.
I
In the setting style, suddenly get need to hide a part of the border, found that can not hide a certain border, wrestling end no fruit, and then I re-write this part of the CSS, of course, not copied, the results before and after a comparison, found the problem!!!This thought wrote Border-left:none, can let left border disappear, but the result is not, spent the Lord many time! Here also have to sigh, the foundation and experience are equally importan
This effect is an effect that someone wrote to me today, before remembering to write a similar effect with the background of a tag. So just came back to write a bit of the effect he asked! By the way to share with you, if you are very creative, then you will be able to make more interesting results.
He proposed the effect, is nine days music home a flash of the effect, to use CSS to imitate the same effect
Using CSS to show text in a line without wrappingGeneric truncation of text (for inline and block):. text-overflow{Display:block; /* Inline objects need to be added */Width:31em;Word-break:keep-all; /* No Line break */White-space:nowrap; /* No Line break */Overflow:hidden; /* Hide content beyond width when content is out of bounds */Text-overflow:ellipsis; /* Display ellipsis (...) when text inside an object overflows; use with Overflow:hidden; */}For
In CSS, there are many ways to hide an element (meaning invisible to the naked eye), some occupy space, some do not occupy space, some can respond to clicks, and others cannot respond to clicks. The following list, choose a suitable for your {display:none;/* Do not occupy space, cannot click */}{Visibility:hidden;/* Occupy space, cannot click */}{position:absolute; top: -999em;/* Do not occupy space, cannot click */}{position:relative; top: -999em;/*
The picture effect of frosted glass makes its display more beautiful, the user experience is better, so it is widely used in mobile computer terminal.such as the iOS system: So now let's take a look at the implementation of the effect of frosted glass:First, this is the main content of HTML: div class = "Container" > div class = "Mat_class" > div > p class = "word" > SHOW time p > div > Here container is used to place textMat_class is a container used to form the ef
Personal understanding, the use of CSS to draw a triangle, in fact, control is border.
the following effects are triangles in 4 directions, respectively: /* up { width : Span style= "color: #0000ff;" >0 ; : 0 ; Border-width : 0 30px 30px ; Border-style : solid ; Border-color : transparent Transparent #333
; /* transparent transparent gray */} /* down { width : 0 ; : 0 ; Border-width : 30px 30px 0 ; Border-style : s
Long ago understand that when the element is fixed width and height, the horizontal vertical high Center method can set the negative value of the margin to the center, this negative value is half the width and height of the element, such as the width of the height is 100px, then use Margin-left:-50px;margin-top: -50px such a way of writing. But what if the width and height of this element are expressed as a percentage?If you use a percentage to set the width, the previous negative method has not
For example, make a small circle (in a red box):How HTML and CSS should be written:css:p span { padding:2px 9px; background: #CCC; Border-radius:50%; Margin-left:5px; Cursor:pointer;} P span.current { background: #F90;}The padding setting allows the interior of the span to occupy an empty space and fill the background color. Margin does not contain a background color.Make a
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.