返回列表

坑爹的UC浏览器之title_bg

默认分类 2014/10/31 04:22

如下所示代码在UC手机浏览器下会出现宽度问题,只有将title_bg改成其他名字才能正常显示。

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>moban</title>
<!-- <link href="css/reset.css" rel="stylesheet" type="text/css"/> -->
<link href="css/index.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
    img {border: 0px;}
    title_bg {}
</style>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('refresh').innerHTML += Math.random();
    }
</script>
</head>

<body>
<button style="position: absolute;z-index:999999;top:50px;left:100px;" id="refresh" onclick="window.location.reload();">refresh</button>

<div class="title_bg"><img src="img/all_02.jpg" width="1
0%" style="display:block;"></div>

</body>
</html>