Recently, I have conducted direct mail promotion for the application. During this period, I encountered some minor problems. I will record it here.
1. JavaScript is not allowed in direct mail, which is very depressing, so all interactions can only be achieved with the help of html native things. When implementing the button, the button was originally used as a button tag, but later it was found that the function of submitting the form could not be completed under ie. For some reason, it was later changed to the input tag, which was successful.
2. The cursor:hand property is not supported in firefox, so in firefox, the mouse shape is set to a hand shape, so you need to do it like this: cursor:pointer. But this makes me feel bad, so I have no choice but to hack: cursor:pointer;*cursor:hand
3. The native tags of html have default styles, so after I set the padding-bottom of h1, I found that the display of ie and firefox is inconsistent. Later, I learned that both margin and padding of this tag should be set to 0 first. Therefore, the beginning of the css of many pages is *{margin:0; padding:0;}, but it seems that using * is not recommended. You can consider yui's reset css.
4. Try to use pictures in many places in direct mail. A wd told me that because the email may have many restrictions on the content of the email, many css attributes are not guaranteed to be able to be used. They said that direct mail is the most technically unrelated, haha, so I quickly got it over and cut the page myself and exercised. The job without technically unrelated work is suitable for me now.