web front end
-
CSS makes the background transparent text opaque: original by toyean Transparent effects are often used in some special effects or navigation. For example, a lottery page I made requires transparent background and opaque text, but it often encounters the problem of transparent background and text at the same time. The following is my own solution, compatible with IE6/IE7/IE8/Firefox/Safari. The specific code is as follows:<metahttp equiv="Content Type" content="text/html two thousand and eleven ten thousand one hundred and eighty-four -
Solution to invalid min height in IE6 When writing HTML, we often use the css style of min height, but sometimes we encounter that min height is not very compatible in IE6. In order to keep the minimum height when there is less content, we will use the min height attribute to control. How to solve the compatibility problem of min height in IE6? The following is the compatible code two thousand and eleven eight thousand eight hundred and sixty-three -
The display: block of tr in the table is displayed incorrectly in Firefox The solution to display the display: block of the tr in the table in Firefox is to use the display: block attribute when a cell row needs to be displayed, and the display: none attribute when no display is needed. In addition, it displays normally in IE browser without any problems. However, when browsing with Firefox, the layout is disordered. Then I checked the source code through FireBug, debugged it, and found that display: block belongs to two thousand and eleven nine thousand six hundred and forty-seven -
Css code of forced line breaking and non line breaking in chinese and english HTML structure:<pclass="one">1. Only works for English, with letters as the basis for line breaking</p><pclass="two">2. Only works for English, with words as the basis for line breaking</p><pclass="three">3. Only works for Chinese, with forced line breaking</p two thousand and eleven eight thousand and fifteen -
Principle of efficient and clean CSS code Appropriate code comments code comments can make it easier for others to understand your code, and reasonable organization of code comments can make the structure clearer two thousand and eleven six thousand two hundred and fifty-five -
Textarea scroll bar property settings Scrollbar property, style details 1. Setting when overflow content overflows (setting whether the set object displays scroll bars) Setting when overflow content overflows in horizontal direction Overflow-y setting when overflow content overflows in vertical direction The values of the above three property settings are visible (default), scroll two thousand and eleven five thousand six hundred and twenty-nine -
HTML Button.onclick Event Summary HTMLButton.onclick Event Summary two thousand and eleven seven thousand one hundred and sixteen -
Detailed explanation of pure IP database format Since the IP database came into being, the display IP function attached to QQ also came into being. I have a rather narrow experience. It is unknown whether there are other applications. However, the IP database is really a good thing. I think the most popular IP database on the network today should be a pure version (don't beat me if you are wrong). So far, the number of IP records has been close to 30000. For some IPs, it is not too happy that they can even be accurate to the floor two thousand and eleven five thousand six hundred and fifteen -
Js implementation of imitating Sina Weibo back to the top In the web page, if the page is high, in order to facilitate the user to quickly return to the top, a return to top button will be added. On Taobao, the back to top button is displayed only when the scroll distance of the scroll bar is greater than a certain distance; The return top of Renren is directly on the toolbar at the bottom; The return top of Sina Weibo is displayed when the rolling height is greater than 0, and the return top effect is a smooth animation effect. The realization of this article is similar to the effect of Sina Weibo. Sina Weibo has launched a new domain name weibo.com two thousand and eleven eight thousand three hundred and forty-four -
24 common PHP codes 1. Connect to the MYSQL database code<? Php $connect=mysql_connect ("localhost", "root", "root") ordie ("Unable to connect to the database server two thousand and eleven six thousand seven hundred and fifty-five -
21 practical codes of PHP 1. PHP can read random strings This code will create a readable string, making it closer to the words in the dictionary, practical and with password verification function two thousand and eleven six thousand and five hundred -
PHP form submission It is not the first time to write a form and submit it, but I still encountered an unsolvable problem. After studying for nearly a day, I asked more than N netizens, and finally solved the problem. The process was quite tortuous. Thank you for your help. Record here that you can't fall down in the same place in the future two thousand and eleven ten thousand six hundred and twenty-three -
Fourteen Writing Skills of JS Write any programming code, different developers will have different views. But it's always good to refer. Here are 14 best JS code writing tips from Javascript Toolbox. 1. Always use var. In javascript, variables are either global or functional. Using the var keyword will be the key to keep variables simple and clear two thousand and eleven seven thousand seven hundred and fifty -
PHP Variable Summary PHP variables always start with the dollar sign $, followed by the variable name. The variable name follows the naming rule of identifier, that is, the variable name can start with a letter or underscore, and consists of letters, underscores, numbers, or other ASCII characters from 127-255. Note that variables are case sensitive. PHP does not need to display declaration variables. Variable declaration can be performed simultaneously with assignment. A good programming habit is that all variables should be declared before use, preferably with comments two thousand and eleven nine thousand six hundred and thirteen -
The difference and relationship between get and post 1. Get is to obtain data from the server, and post is to transfer data to the server; 2. Get adds the data in the form of variable=value to the URL pointed to by the action, and the two are connected with "?", while the variables are connected with "&". Post... two thousand and eleven six thousand seven hundred and seventy-nine -
Details of Chinese translation of php.ini configuration file The php.ini file must be named 'php. ini' and placed in the directory specified by the PHP INIDir directive in httpd.conf two thousand and eleven seven thousand nine hundred and twenty-seven -
Understand CSS hanging horses and corresponding prevention methods With the popularization of Web 2.0, various web page special effects are used more and more, which also gives hackers an opportunity to take advantage of. They found that CSS code used to make special effects on web pages can also be used to hang horses. Ironically, the CSS hanging horse method actually evolved from the CSS code for preventing E hanging horse. At first, the means of website listing was very simple, but with the wide application of Web2.0 technology, Blog, Wiki and other technologies, various technologies have emerged, including CSS listing, which can be said to be We two thousand and eleven five thousand three hundred and nineteen -
Sort out PHP knowledge encountered in actual combat I haven't learned PHP before, but I just need to use it in a project recently, so I decided to do PHP 1 while learning. In the SQL statement, I can add restrictions: left (text, 20) only takes the first 20 words of text; 2. You can use limitfromRecord and RecordNum as paging. For example, limit0,30 means to traverse 30 records from the first record two thousand and eleven five thousand four hundred and forty-three