1. Try to encode the XML file in utf-8. Some words in gb2312 cannot be stored. For example, even if it can be stored, it needs to be converted, which is more troublesome. utf-8 also complies with international standards. 2. If the pseudo-class:hover is placed before:visited, it will be invalid. 3. If the <a> tag does not have a href attribute, all pseudo-classes such as:hover for its css are invalid. 4. References in the js file using document.wirte("<script language='javascript' src='" + file + "'></" + "script>" are all referenced to the js The path to html. For example: a.htm refers to xb.js, b.js refers to xc.js, then the file should be xc.js instead of the direct path c.js relative to b.js, and @import in css ,There is no problem with the url() reference 5. In the page, sometimes the width of talbe is set to 100% and there will be a blank in the scroll bar on the right. Please set <body style="overflow:auto"> 6. Do not use img tags for commonly used pictures. Use <span><a> and use css to specify its background and width and height. For dynamic (move up and change the background), it is best to use <a>, and there is no need to write additional code. , just use pseudo-class:hover. The advantage of using css is to change all changes at once, which can be used well in skin changing applications. 7. @font-face {font-family:comic;src:url( http://valid_url/some_font_file.eot );} 8. Several CSS 9. The document.createElement of firefox does not support HTML tags in the content, nor does it support innerText, but supports innerHTML. You can use innerHTML to specify its content. 10. The width of DropDownList in the .net control is not colored under firefox, so you need to directly define style='width:10px;' 11. The cursor of css in firefox does not support hand, use pointer instead. 12. The scroll bar in the iframe needs to be set style='overflow:hidden' in the iframe tag. It cannot be set only in the body, as there will be problems in firefox. 13. When setting the onpropertychange event, pay attention to using event.propertyName to filter the property change event. When setting this event, the onpropertychange property has actually changed, so it will be executed automatically once. 14. The support version for XSL in js5.6 is relatively low, such as document function, it is not supported. 15. The slice function is slower than directly looping to get array fragments. 16. When nextSibling obtains the next object, you need to pay attention to not having spaces between the two nodes, otherwise it is easy to not get the correct object. 17. When there is Chinese, CreateTextFile must specify the third parameter to true, otherwise it cannot be written to Chinese, which is a write error. 18. Use ADODB.stream when saving Chinese text, and do not use fso because FSO does not support utf-8 format.
Define a font name that is not locally located, and call <span style="font-family:comic;font-size:18pt>aa</span>
div { overflow: hidden;text-overflow:ellipsis; }
td { vertical-align : middle; }
[u]To force overflow to occur and apply the ellipsis value, the author must set the white-space property value of the object to nowrap. [/u] If there is no line break opportunity (for example, the width of the object container is narrow and there is a long text without reasonable lines breaking), it is also possible to overflow without applying nowrap.
In order for the ellipsis value to be applied, this property must be set to an object with an invisible area. The best option is to set the overflow property to hidden.