1

我一直在为我正在开发的这个音乐博客启动一个定制设计,但我在使用 Android 4.0 浏览器时遇到了一些问题。

它在 Android 2.x(以及我尝试过的所有其他浏览器)上运行良好,但是当我尝试在运行 4.1 或更高版本的设备(浏览器堆栈模拟器)上加载它时,页面加载并且所有文本、图形等都消失了。唯一出现的是 SoundCloud 嵌入。

关于这里可能出现什么问题的任何想法?浏览器从 4.0 到 4.1 发生了什么变化,导致我的网站在新设备上无用?

http://chune.me/

谢谢!

更新

将问题归结为我的 CSS 重置......如果有人知道是什么导致它在这里,我很想知道。我刚决定用一个新的……奇怪。

/**
 * reset.css
 *
 * Adapted from:
 * Normalize.css by Nicolas Gallagher and Jonathan Neal: https://github.com/necolas/normalize.css/
 * HTML5 boilerplate: http://html5boilerplate.com/
 * HTML5 Doctor Reset by Eric Meyer and Richard Clark: html5doctor.com/html-5-reset-stylesheet/
 *
 * Modified by Elliot Jay Stocks
 */

html, 
body, 
div, 
span, 
object, 
iframe, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
p, 
blockquote, 
pre, 
abbr, 
address, 
cite, 
code, 
del, 
dfn, 
em, 
img, 
ins, 
kbd, 
q, 
samp, 
small, 
strong, 
sub, 
sup, 
var, 
b, 
i, 
dl, 
dt, 
dd, 
ol, 
ul, 
li, 
fieldset, 
form, 
label, 
legend, 
table, 
caption, 
tbody, 
tfoot, 
thead, 
tr, 
th, 
td, 
article, 
aside, 
canvas, 
details, 
figcaption, 
figure, 
footer, 
header, 
hgroup, 
menu, 
nav, 
section, 
summary, 
time, 
mark, 
audio, 
video                                                   { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; }        

article, 
aside, 
details, 
figcaption, 
figure, 
footer, 
header, 
hgroup, 
nav, 
section                                                 { display: block; }

audio, 
canvas, 
video                                                   { display: inline-block; *display: inline; *zoom: 1; }

audio:not([controls])                                   { display: none; }

[hidden]                                                { display: none; }

html                                                    { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body                                                    { margin: 0; }

h1, h2, h3, h4, h5, h6 { font-weight:normal; }          

a                                                       { color:blue; }

a:focus                                                 { outline: thin dotted; }

li                                                      { list-style:none; }

abbr[title]                                             { border-bottom:none; }

b, 
strong                                                  { font-weight: 700; }

i,
em,
dfn                                                     { font-style: italic; }

hr                                                      { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins                                                     { background: #ff9; color: #000; text-decoration: none; }

mark                                                    { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

pre, 
code, 
kbd, 
samp                                                    { font-family: monospace, monospace; _font-family: 'courier new', monospace; }

pre                                                     { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q                                                       { quotes: none; }

q:before, 
q:after                                                 { content: ""; content: none; }

small                                                   { font-size: 85%; }

sub, 
sup                                                     { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }

sup                                                     { top: -0.5em; }

sub                                                     { bottom: -0.25em; }

img                                                     { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

label                                                   { cursor: pointer; }

input, 
select, 
textarea                                                { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

button, 
input                                                   { line-height: normal; *overflow: visible; }

button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"]                                    { cursor: pointer; -webkit-appearance: button; }

input[type="checkbox"], 
input[type="radio"]                                     { box-sizing: border-box; }

input[type="search"]                                    { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration         { -webkit-appearance: none; }

button::-moz-focus-inner, 
input::-moz-focus-inner                                 { border: 0; padding: 0; }

textarea                                                { overflow: auto; vertical-align: top; resize: vertical; }

table                                                   { border-collapse: collapse; border-spacing: 0; }

td                                                      { vertical-align: top; }
4

0 回答 0