gpt4 book ai didi

jquery - CSS 框被切断?

转载 作者:行者123 更新时间:2023-12-01 08:26:13 27 4
gpt4 key购买 nike

我放入了一个红色的 css 框,由于某种原因,左下角被切断了,有解释吗(下图)

<!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>Untitled Document</title>
<script src="http://cdn.jquerytools.org/1.2.4/full/jquery.tools.min.js"></script>
<style type="text/css">
<!--
#test {
background-color: #F00;
height: 375px;
width: 69%;
}

.imz{
margin-bottom:-1%;

}

-->
</style></head>

<body>

<!-- the tabs -->
<span class="tabs">
<a href="#"><img src="../../images/security_tabs.png" class="imz" style="float: left;" /></a>
<a href="#"><img src="../../images/security_tabs.png" class="imz" /></a>
<a href="#"><img src="../../images/security_tabs.png" class="imz" /></a>
</span>

<div id="test">
<!-- tab "panes" -->
<div class="panes">
<div>First tab content. Tab contents are called "panes"</div>

<div>Second tab content</div>
<div>Third tab content</div>
</div>
<div id="test">
</div>

<!-- This JavaScript snippet activates those tabs -->
<script>

// perform JavaScript after the document is scriptable.
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("span.tabs").tabs("div.panes > div");
});
</script>

</body>
</html>

alt text

最佳答案

你还有第二个<div id="test"> 。摆脱它。

关于jquery - CSS 框被切断?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3627616/

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