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;-W3CDTDXHTML1.0TransitionalEN & quot; www. w3.orgTRxhtml1DTD Han Shunping _ php from entry to proficient _ video tutorial _ 21st lecture _ answer student question _ learning notes _ 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, p has many id selectors and many elements in p use class. what is the rule or reason for it to choose?
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 p 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