In the js script, there are two window.onload
Copy the code code as follows:
window.onload = function(){
alert("aaa");
};
window.onload = function(){
alert("bbb");
};
Only one will be executed. This is the setting of the function itself. It is worth noting that the pop-up is not aaa, but bbb, and the last one is executed.
In css file, css style
Copy the code code as follows:
#checks{
padding-left:20px;padding-top:16px;margin:auto;
}
#checks{
padding-left:80px;padding-top:38px;margin:auto;
}
It is also the later style that takes effect. If the padding-left in the second one is removed, the padding-left in the first one will be used.
in HTML tag
<td style="padding-left:10px;padding-top:8px;margin:auto;" style="padding-left:20px;padding-top:16px;margin:auto;"></td>
This is the first one to take effect, which is different from the above two.
Hope someone can help explain...