html如何解决兼容问题
HTML兼容问题是指在不同浏览器中,HTML代码的显示效果和功能表现不一致的问题,为了解决HTML兼容问题,可以采用以下方法:,1、使用CSS样式重置,浏览器对元素的默认样式有所不同,这可能导致页面在不同浏览器中的显示效果不一致,为了解决这个问题,可以使用CSS样式重置来消除浏览器默认样式的差异,常用的CSS样式重置方法有:,使用Eric Meyer的CSS重置: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin:0; padding:0; border:0; fontsize:100%; font:inherit; verticalalign:baseline; } body { lineheight:1; } ol, ul { liststyle:none; } blockquote, q { quotes:none; } blockquote:before, blockquote:after, q:before, q:after { content:''; content:none; } table { bordercollapse:collapse; borderspacing:0; } ,使用Normalize.css: html...