Name of file

xiaoxiao2021-03-06  112

1. Each directory should include a default HTML file, file name unified use of index.htm

2. Part name unified use of lowercase English letters, numbers and underscores.

3. The guiding ideology of naming principles is that every member of your own and working group can easily understand the meaning of each file. Second, when we use the "Decoction Orders" in the folder, the same Classical files can be arranged together so that we can find, modify, replace, compute loads, and the like.

4. In the following section, "News" (including "Domestic News" and "International News") describes the naming principle of the HTML file:

☆ Open news directory in the root directory

☆ First default news name index.htm

☆ All news belonging to "Domestic News" is named: China_1.htm, China_2.htm, ...

☆ All news belonging to "International News" is named: International_1.htm, International_2.htm, ...

☆ If the number of files is two digits, name the first nine files: china_01.htm, China_02.htm to ensure that all files can be properly sorted in the folder.

5. The naming principle of the picture follows the following specifications:

☆ The name is divided into two or two parts of the head, separated by underline.

☆ The header represents the large-class properties of this picture, such as advertisements, signs, menus, buttons, and more.

☆ General:

Place the advertisement on the top of the page, the decorative pattern, etc. We are named: banner iconic picture We named: logo is not fixed on the page and the small picture with links We have named button on the page. One location continuous appearance, the same link section of the same link, we name: Menu Decorated Photo We name: PIC without links to indicate the title of the title Title We name: Title is in accordance with this principle.

☆ The tail portion is used to represent the specific meaning of the picture.

☆ The following is a few samples, everyone should be able to understand the meaning of the picture: banner_sohu.gif banner_sina.gif menu_aboutus.gif menu_job.gif title_news.gif logo_police.gif logo_national.gif pic_people.jpg pic_hill.jpg.

Website directory setting specification

Principles of catalog: Provide the clearest and easy access to the minimum level.

Root directory. The root directory refers to the storage directory of the index file pointing to the DNS domain name server. The server's FTP upload directory defaults to the HTML root directory file root directory only allows the index.html and main.html files, as well as other must-have system files. Each language version is stored in an independent directory. Existing Version Language Set to: Simplified Chinese / GB Traditional Chinese / BIG5 English / EN Situation / JP

Each main function (main menu) establishes a corresponding independent directory.

Image of the root directory is stored in the public picture directory, and private pictures in each directory are stored in their respective independent images directory. For example: / menu1 / images / menu2 / images

All js files are stored in the root directory / script All CSS files Style STYLE directory in the root directory All CGI programs are placed in the root of the root directory / cgi_bin directory The Head area refers to the of the home page HTML code The content between . Must join the label

1. Company copyright notice

2. Web Display Character Set Simplified Chinese: Traditional Chinese: English: 3. Web Page Maker Information

4. Website introduction

5. Search keyword

6. CSS specification for web pages (see Directory and Naming Specifications)

7. Web Title xxxxxxxxxxxxxxxxx </ Title></p> <p>Can choose to join the label</p> <p>1. Set the expiration time of the web page. Once the web page expires, you must re-access on the server. <Meta http-equiv = "expiRES" content = "WED, 26 Feb 1997 08:21:57 GMT"></p> <p>2. Prohibit the browser from calling the page content from the cache of the local machine. <Meta http-equiv = "pragma" Content = "no-cache"></p> <p>3. Used to prevent others from calling your page in the frame. <Meta http-equiv = "window-target" Content = "_ TOP"></p> <p>4. Automatically jump. <Meta http-equiv = "refresh" Content = "5; URL = http://www.yahoo.com"> 5 refers to time stays for 5 seconds.</p> <p>5. Web Search Robot Wizard. Used to tell the search robot which pages require an index, which pages do not need indexes. <Meta name = "robots" Content = "none"> Content Parameters include All, None, INDEX, NOINDEX, FOLLOW, NOFOLLOW. The default is all.</p> <p>6. Favorites icon <link rel = "shortcut icon" href = "favicon.ico"></p> <p>All JavaScript calls Try to take an external call. <Script language = "javascript" src = "script / xxxx.js"> </ script></p> <p>Attached <body> Tag: <body> tag is not a Head area, here emphasizes that in order to ensure the browser compatibility, you must set the page background <body bgcolor = "# ffffff"> website file naming specification file naming principle: The least letters achieve the most easily understood.</p> <p>The index file is unified using the index.html file name (lowercase) index.html file unified as a "bridge page", does not make specific content, just as a jump page and a Meta tab. Main content page for main.html</p> <p>Press the English translation of the menu. For example: About Us / Aboutus Information Feedback / FeedBack Products / Product All One English Word File Name must be lowercase, all combination English word file names the second first letter uppercase; all file names are connected Underscore</p> <p>Image naming principles are named in image English letters. The principle of size is written. For example: the picture of the website sign is logo.gif mouse sense effect picture naming specification as "picture name _ on / off". For example: menu1_on.gif / menu1_off.gif</p> <p>5. Other file naming norm 1.js naming principle is named functional English words. For example: The JS file name of the advertising bar is: ad.js2. All CGI file suffixes for all CGI profiles for config.cgi</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-99183.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="99183" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.050</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'N5c2fER9P_2BLmNJGm09L47D85_2Bu_2FAedNVtXNWmpRJkPOWliUQUT7Sa1NN1jGTNxLBjN7BvP5UGEzQQmSn_2Fo1Nqg_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>