Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the problems encountered in Web development?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report