Han Shunping _ php from entry to proficient _ video tutorial _ 21st _ answer student question _ study NOTE _ source code illustration _ PPT document arrangement Question 1: ie8, when the page uses & lt ;! DOCTYPEhtmlPUBLIC & quot; -// W3C // DTDXHTML1.0Transitional // EN & qu Han Shunping _ php: Getting started to proficient _ video tutorial _ 21st _ answer student question _ study NOTE _ source code illustration _ PPT document arrangement
Question 1:
In ie8, when the page uses
The alt of the image does not take effect-> title is recommended for compatibility.
Question 2:
ID selector and class selector
In the case of the cute house mentioned above, div has many id selectors and most of the elements in div use class. What are the rules or reasons for this?
The ID selector has low reusability, high priority, and unique usage. Therefore, if a style is only used for an html element, select the ID selector. For example, the above div element will not be reused, and it will be almost unchanged after it is fixed, giving it the ID selector. If a style may be used for multiple html elements, the class selector should be given priority. for example, the element will be reused in many places.
Han Shunping _ php from entry to proficient _ video tutorial _ learning notes _ source code illustration _ PPT document arrangement _ Directory