gpt4 book ai didi

javascript - 我无法让这个背景出现在 div 中

转载 作者:行者123 更新时间:2023-11-28 15:00:46 24 4
gpt4 key购买 nike

有人能指出我正确的方向吗?我不明白为什么我不能将 achtergrond_homepage.png 作为圆 Angular 背景。

编辑:看起来灰色总是在一切之上。会不会是javascript部分控制的?

这是CSS:

   @charset "utf-8";
/* CSS Document */

html, body {
color: #444141;
font-family: 'trebuchet ms' !important;
font-size: 12px;
margin: 0px;
padding: 0px;
height: 100%;
background: #eaeade;}
.justyParagraph {
text-align: justify;}
a img {
border: 0;}
.clearer {
clear: both;}


.rounded_corners{
background: url(../images/achtergrond_homepage.png) no-repeat left bottom;
color:#FFF;
padding: 8px;
width: 380px;
border: 2px solid #4e4b4b;
height: 450px;

}

div#blockdark {
height: 517px;
left: 450px;
position: absolute;
top: 130px;
z-index: 1000000;
width: 360px;
visibility: visible;


}

这是 HTML

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Test</title>
<link rel="bookmark" href="/favicon.ico" />
<link rel="shortcut icon" href="/favicon.ico" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/excanvas.js" type="text/javascript"></script>
<script src="js/jQuery.min.js" type="text/javascript"></script>
<script src="js/roundCorners.jQuery.js" type="text/javascript" ></script>

<script type="text/javascript">
$(window).load(function(){
$('.rounded_corners').bg(['20px', '20px', '20', '20']);
});
</script>
</head>

<body>
<div id="blockdark">
<div class="rounded_corners">

<div> <h1> Title </h1> </div>

<div> Content </div>


</div>
</div>
</body>
</html>

这是一个例子,可能和圆 Angular 的javascript有关?

http://www.coldcharlie.nl/test/

最佳答案

尝试将 display: block 添加到 .rounded_corners。此外,您似乎还缺少 .rounded_corners

background 行中的 ;

关于javascript - 我无法让这个背景出现在 div 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2325283/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com