body {
background-color: #4dc6ff;
}
.paragrafacasa {
width: 500px;
margin-right: auto;
margin-left: auto;
background-color: #e8e8e8;
border: 2px solid black;
border-radius: 8px;
margin-top: 100px;
}
.paragrafacasa p {
font-size: 30px;
text-align: center;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title> Here is title </title>
</head>
<body>
<div class="paragrafacasa">
<p> Here is my text </p>
</div>
</body>
</html>
刚刚完成了网站的编辑,但是当我发布Samsung Internet应用程序时,background-color
上没有显示div
。
一切在Chrome中都能正确显示,只有Samsung Internet遇到此问题。下面我附上2个屏幕截图,以更好地理解。有解决办法吗?