【发布时间】:2016-12-04 14:48:18
【问题描述】:
我有一个问题,Chrome 在我的正文上添加了一个用户代理样式表,因此正文比我在 Css 中定义的要大...
我阅读了很多关于用户代理样式表的内容,但我找不到解决方案,它用我的实际 Css 代码覆盖主体用户代理样式表...
Chrome 会向其中添加该文本,当我删除它时,它就像我希望网站一样......(但当我刷新它时,它当然像以前一样) - 你可以在图片中看到它......
Where the red cross is should be no text... then it would work...
html{
overflow-y: scroll;
}
body {
background-color: #BDBDBD;
color: #000000;
font-family: AcmeFont, 'Lucida Grande', sans-serif;
text-align: left;
}
.BODY{
margin: 0 auto;
width:70%;
clear: both;
}
<!DOCTYPE html>
<html>
<head>
<title>Website Title</title>
<meta charset="UTF-8" >
<link href="css/style.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="BODY">
</body>
</html>
【问题讨论】:
标签: php css google-chrome stylesheet