First, CSS commonly used font properties
1. Font settings
Fonts are set by the Font-family property in the CSS.
Font-family: "Bold";
2. Size of the font
Use Font-size to set the size of the text font-size:16px; PX is a unit of length, 1px means
CSS support a variety of unit forms, such as percentages, PX, PT, REM, and so on, the percentage and px are commonly used units, with the mobile end and response to the popular, REM, VH, VW also began to be widely used, these units you may not know,
Today share a 3D button that is implemented with a pure CSS.
CSS clever use of box-shadow to achieve the three-dimensional 3D objects, when the button is pressed to modify the Box-shadow and top values.
It feels like there's a button that's being
Understanding Photoshop (PS) CSS Chettu required tools
Adobe Photoshop is usually called PS.
div CSS Prerequisite cut diagram Tool PS screenshot
Most of the understanding of Photoshop is limited to "a good image editing software", do not know
Taobao web pages use import, while many websites use link. Of course, some websites with relatively simple pages and high traffic directly write CSS in html code? What are their differences? Is it better to use import or link for css? I learned
In fact, a Box consists of many rows and many elements. vertical-align only acts on elements in the same row, and its vertical is not relative to the entire Box. A 60 PX height is defined above, but there are many lines in this Box, and the text
Parse CSS list style attributes list-styleThe list-style attribute can be frequently used in list-item objects on pages, but it is rarely used. Generally, it is almost OK to reset the entire page to none. Many people may not know the details of the
You can easily understand the origin position, that is, the background-position in the upper left corner of the block element indicates that the offset origin of the image and the coordinate origin is not dynamic, the X coordinate of the image is
The code for commenting on the involved conditions is as follows: The code is as follows:Copy code The usage instructions are as follows: The code is as follows:Copy code . Test {/* For non-ie browsers */}. Ie. test {/* Style
Web developers can identify divs and other format page elements by creating CSS classes and id names. For developers, when naming and redefining CSS selectors for XHTML tags (tags), they must ensure that they exactly match the predefined tags, but
Most of the time, you can see that the buttons in FLASH can be animated, while most buttons made in HTML are switched to a single frame. In fact, it is also feasible to make animations.Let's take a look at the preview image below.Move the mouse up,
Example: top of DIV page layout (margin-left method)Left CenterMiddle rightBottomCode: The code is as follows:Copy code top left Center middle right bottom
If you use the traditional method to make this flip menu, you need to cut the image into at least 10 blocks, add JS code, and add behavior on the image button. Now it is fully implemented using CSS, you only need one image, as shown in the following
Because style table items are composed of attributes and their values, it is necessary to understand the various units of the attribute values. In CSS, different units are different from those in HTML.1. Length unitUnit Type descriptionCmWidth of m
I. In-lineIn-row styles use the style attribute directly in html tags. text Set the paragraph text to red.However, remember that the final HTML should be independent and use the presentation document, so the intra-row style should be avoided
At-rules sub-installs different CSS rules and applies them to specific scenarios.ImportingImport @ rules reference other styles. For example, if you want to add another style to the current style, you can do this:@ Import url(addonstyles.css );This
I am doing the DIV layout code in this way. I don't know what to say, but I don't know what to say. Let's take a look.I divide the class into two types: layout class, style class, layout class is skeleton, style class is clothesFor example:For
Style = "filter: filter name (attribute 1 = value 1, attribute 2 = value 2 ......)"The "filter name" is the name you see in the filter drop-down list of the DW style setting module. You only need to enter a number for the attribute value.The
Tip: you can modify some code before running Css controls Image transparency codeCSS effectTest result 1 Test result-change angleModify. border-top and. the width value of border-left in perspective-B. The larger the value is,
Yii2 uses a more standard method to introduce js and css files through the AppAsset: register ($ this) method. In the Yii2 example, layouts main. php has its usage: AppAsset: register ($ this ).There is an assets directory in the WEB directory,
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.