web front end
-
CSS with text exceeding the number of characters displayed with ellipsis Text exceeds the number of characters CSS displayed with ellipsis two thousand and eleven six thousand three hundred and fifty-five -
CSS HACK of IE8 -- 9 People who have followed IE8's cshack believe that everyone is using this hack, which is&ldquo\ 9” Csshack: two thousand and eleven five thousand and ninety-two -
JS achieves very gorgeous gear effect JS achieves very gorgeous gear effect two thousand and eleven six thousand eight hundred and fifty-four -
Stay time script on this page This page dwell time script two thousand and eleven three thousand eight hundred and six -
JAVASCRIPT judges password strength JS determines password strength two thousand and eleven five thousand and eighty-eight -
Commonly used anti copy code for web pages The best anti copy code 1: (Paste this code into the body to effectively prevent the selection, anti copy and right mouse button) two thousand and eleven fourteen thousand two hundred and twenty-three -
Several classic CSS techniques 1. Use line height to center vertically. When using a container with a fixed width and a row needs to be centered vertically, use line height (the height is the same as that of the parent container) two thousand and eleven four thousand one hundred and ninety-three -
There are big articles in small font family Today, I encountered a problem when writing HTML. All words on the page are required to use Microsoft Yahei font, so I wrote Font family in CSS: "Microsoft Yahei". Yahei font is also installed in the font folder of the system, but it is still displayed as Song typeface when browsing the page. In the past, it was no problem to write like this when reconstructing the page, So where exactly is the problem two thousand and eleven six thousand nine hundred and ten -
Pure CSS perfectly solves the problem of horizontal and vertical centering DIV of pictures Pure CSS perfectly solves the problem of horizontal and vertical centering DIV of images, and is compatible with mainstream browsers such as Firefox, IE5.0, IE5.5, IE6, IE7, Safari, Opera, etc two thousand and eleven four thousand five hundred and sixteen -
Two Methods of Website Grey Whenever a major disaster or memorial event occurs in the country, in order to remember the compatriots who died in the disaster, the major websites have turned their pages into gray to show their condolences; Tencent, Sina, Yahoo and other portal websites have also become gray. Here are two ways to gray websites: two thousand and eleven seven thousand seven hundred and twenty-six -
Non negligible z-index attribute The parameters of the z-index attribute in CSS: z-indexauto | numberauto: default value number: unitless integer, which can be negative. In pages with absolute positioning layers, sometimes you are troubled by layers. In CSS, the z-index attribute can solve this problem. The larger the value of z-index, the more it will be displayed on the top. It is applicable to positioning elements (position: relative or absolute). It is used to determine whether the element is perpendicular to the two thousand and eleven eight thousand five hundred and sixty-two -
Several ways to add QQ, MSN, Aliwangwang, Skype session buttons to the website Several ways to add QQ buttons two thousand and eleven seven thousand two hundred and eighty-nine -
Web Page Basics -- Usage of Named Anchors Naming anchor: It means that the user sets tags in the document. These tags are usually placed at or at the top of a specific topic of the document. Then create links to these named anchors, which can quickly take the viewer to the specified location. What exactly is html anchor? In simple terms, for example, for a long article, if you want to look at it accurately by segment, you can use anchor points. The purpose of adding id is to make it more compatible. The value of. href should be consistent with the name id, and must be preceded by "#" to two thousand and eleven seven thousand eight hundred and twenty -
MYSQL Command Collection 1、 Connect MYSQL. Format: mysql-h host address - u user name - p user password 1. Connect to MYSQL on the local machine. First open a DOS window, then enter the directory mysql bin, and then type the command mysql-uroot-p. After entering, you will be prompted to enter the password. Note that there can be spaces or no spaces in front of the user name, but there must be no spaces in front of the password, otherwise you will be asked to re-enter the password. If you have just installed MySQL, the superuser root does not have a password two thousand and eleven three thousand eight hundred and sixty-six -
Different CSS hack writing methods for different browsers Every time I want to find something, I have to slowly look through some of the things I have collected. It takes so much time each time. In addition, sometimes I forget where it was when it was stored for a long time. In order to facilitate query and reading, I decided to collect some CssHack two thousand and eleven eight thousand one hundred and fifty-nine -
Five Methods of Adding Links to FLASH Files (1) Add code to the event handling function of the button (2) Add code to the event handling function of the film clip (3) Add code to the frame, and input code directly on the frame two thousand and eleven thirteen thousand three hundred and thirty -
Research and Solution on Text Alignment of Check Box and Radio Box In my personal opinion, the mainstream text size of most Chinese websites is 12px, because under the current high-resolution display screen, the pixels of 11px Chinese characters begin to be irregular, and the text is not as good as that of 12px. 12px text is both the mainstream and the bottom line. However, 12px text is not aligned with the radio box and check box two thousand and ten five thousand four hundred and seventy-eight -
What is CSS hack? What is CSShack? Because different browsers, such as InternetExplorer6, InternetExplorer7, Mozilla Firefox, have different understanding of CSS parsing, the generated page effect will be different, and the page effect we need will not be obtained. At this time, we need to write different CSS for different browsers, so that it can be compatible with different browsers at the same time, and can get me in different browsers two thousand and ten five thousand two hundred and twenty-four