<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>css初始化代碼,採集騰訊,百度的初始化代碼</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布爾教育 http://www.itbool.com" />
</head>
<body>
<div>相同的li在不一樣的瀏覽器下,顯示大小也不同</br>
若是想杜絕,用css強制讓元素的屬性值都同樣,</br>
減小不兼容問題</br>
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
</ul>
</div>
</body>
</html>css
/**********************************************************************************/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>一個大圖作多個div的背景圖,調整大小</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布爾教育 http://www.itbool.com" />
<style>
body{
background: blue;
background-image: url('small.png');
background-repeat: no-repeat;
background-attachment: fixed;/*固定背景圖片的位置*/
background-position: -150px -530px;
background: url('small.png') no-repeat;
}
</style>
</head>
<body>
</body>
</html>瀏覽器