What are the problems encountered in Web development?
This article will explain in detail the problems encountered in Web development. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The following are the problems I encountered in my development and my experience. I spent some time debugging and posting them to avoid detours.
1, xml files as far as possible to utf-8 encoding, gb2312 some words can not be stored, such as?, even if it can be saved also need to be converted, more troublesome, utf-8 is also in line with international norms.
2. In CSS: the pseudo-class hover will become invalid if it is placed before: visited.
3. If the tag does not have a href attribute, all pseudo-classes of its css, such as: hover, are invalid.
4. For references in the form of document.wirte ("") in the js file, the relative path of the file is the path of the html that references the js.
For example: a.htm reference x\ b.jsjs reference x\ c.js, then file should be x\ c.js rather than the direct path c.js of relative b.js, but the @ import,url () reference in css does not have this problem.
5. On the page, sometimes setting the width of talbe to 100% will leave a space on the right side of the scroll bar. Please set it.
6, for commonly used pictures do not use img tags, use and use css to specify its background and width and height, for dynamic (move up to change the background), use the best, do not need to write additional code, as long as the use of pseudo-class: hover, the advantage of using css is to change all at once, which can be well used in skin-changing applications.
7, @ font-face {font-family:comic;src:url (http://valid_url/some_font_file.eot);}
To define a font name that does not exist locally, call the