初学者,对于自己布局比较困难,使用的是现有网页的模板,上中下结构,中间又分为左右两部分,左边是导航选项,点击后ajax更新右边的内容,现在的问题是我是直接使用的1330固定的宽度,浏览器没有全屏的时候,右边显示的表格就会掉下去,怎么固定在右边不掉啊,谢谢啊
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script></script>
<script></script>
<script></script>
.bigclass {
background-repeat: no-repeat;
background-position: left center;
height: 25px;
width: 150px;
font-size: 18px;
font-style: normal;
font-weight: bold;
text-decoration: none;
text-align: left;
text-indent: 25px;
vertical-align: middle;
line-height: 26px;
cursor: hand;
background-image: url(../images/header13.gif);
margin-bottom: 6px;
margin-left: 31px;
margin-right: 0px;
margin-top: 11px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 1px;
}
.smallclass{
width: 150px;
height: 20px;
line-height: 7px;
}
.hiddendiv {
FILTER: alpha(Opacity=70);
margin: 0px;
padding: 0px;
height: 44px;
width: 150px;
}
.blankdiv {
background-attachment: fixed;
background-repeat: repeat;
background-position: center center;
margin: 0px;
padding: 0px;
height: 27px;
width: 150px;
}
body{
background-color:#f0f0f0;
font-size:12px;
height: 100%;
margin:0 auto;
padding:0px;
}
a{
cursor: hand;
color: #0000FF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
div{
/*border: 1px #000000 solid;*/
}
#contain{
position: relative;
margin:0 auto;
padding:0px;
/*background-color:#FFFFFF;*/
width: 100%;
height: auto;
text-align: center;
}
#contain #header{
position: relative;
text-align: right;
background-image: url(../images/headerlogo.gif);
background-position: center bottom;
background-repeat:no-repeat;
line-height: 36px;
width: 1310px;
height: 90px;
top:20px;
left:20px;
}
#contain #left{
position: relative;
left: 20px;
top:20px;
float: left;
clear:left;
width: 217px;
height:700px;
background-color:#f3fde8;
}
#contain #right{
position:relative;
top:20px;
float: right;
clear:right;
width: 1093px;
height: 700px;
right:18px;
background-color:#f9fef4;
/* background-image: url(../images/centertop.gif);*/
background-position:top;
background-repeat:no-repeat;
}
#fir{
background-image:url(../images/signout.gif);
background-position: center;
background-repeat:no-repeat;
left:20px;
width:217px;
height:32px;
line-height: 32px;
color: #FFFFFF;
font-style: inherit;
font-size:18px;
}
#showmenu{
position: relative;
height: 700px;
}
/* 对于显示列表的修饰 */
#showarticle{
font-family: "Trebuchet MS", sans-serif;
font-size: 16px;
font-weight: bold;
line-height: 1.4em;
font-style: normal;
border-collapse: separate;
}
#showmenu .shownodes thead th{
padding:15px;
color:#fff;
text-shadow:1px 1px 1px #568F23;
border:1px solid #93CE37;
bord-bottom:3px solid #9ED929;
background-color:#9DD929;
background: -webkit-gradient(
linear;
left-bottom,
left-top,
color-stop(0.02, rgb(123,192,67)),
color-stop(0.51, rgb(139,198,66)),
color-stop(0.87, rgb(158,217,41))
);
background: -moz-linear-gradient(
center bottom,
rgb(123,192,67) 2%,
rgb(139,198,66) 51%,
rgb(158,217,41) 87%
);
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
-moz-border-radius:5px 5px 0px 0px;
border-top-left-radius:5px;
border-top-right-radius:5px;
}
#showmenu .shownodes thead th:empty{
background:transparent;
border:none;
}
#showmenu .shownodes tbody th{
color:#fff;
text-shadow:1px 1px 1px #568F23;
background-color:#9DD929;
border:1px solid #93CE37;
border-right:3px solid #9ED929;
padding:0px 10px;
background:-webkit-gradient(
linear,
left bottom,
right top,
color-stop(0.02, rgb(158,217,41)),
color-stop(0.51, rgb(139,198,66)),
color-stop(0.87, rgb(123,192,67))
);
background: -moz-linear-gradient(
left bottom,
rgb(158,217,41) 2%,
rgb(139,198,66) 51%,
rgb(123,192,67) 87%
);
-moz-border-radius:5px 0px 0px 5px;
-webkit-border-top-left-radius:5px;
-webkit-border-bottom-left-radius:5px;
border-top-left-radius:5px;
border-bottom-left-radius:5px;
}
#showmenu .shownodes tbody td{
padding:10px;
text-align:center;
background-color:#DEF3CA;
border: 2px solid #E7EFE0;
-moz-border-radius:2px;
-webkit-border-radius:2px;
border-radius:2px;
color:#666;
text-shadow:1px 1px 1px #fff;
}
#contain #rowfooter {
position: relative;
color:#555;
font-size:18px;
height: 50px;
padding:20px 0 40px;
text-align: center;
float:none;
margin-bottom: auto;
clear: both;
}
回复讨论(解决方案)
#contain {
position: relative;
margin: 0 auto;
padding: 0px;
/*background-color:#FFFFFF;*/
width: 100%;
height: auto;
text-align: center;
display:table;
}
楼主试试
把#contain #left的width值改为17%; #contain #rightr的width值改为83%.
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
#contain {
position: relative;
margin: 0 auto;
padding: 0px;
/*background-color:#FFFFFF;*/
width: 100%;
height: auto;
text-align: center;
display:table;
}
楼主试试
把#contain #left的width值改为17%; #contain #rightr的width值改为83%.
首先,谢谢帮我解答,按百分比可以,我试了一下,但是浏览器窗口一旦缩小了,图片部分缩小的很严重,估计是因为写了太多具体的宽度吧,协调性不太好,还是谢谢啊
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
非常感谢,你给的这个布局非常好,我会尝试用下你给的布局模板

HTML是一種用於構建網頁的語言,通過標籤和屬性定義網頁結構和內容。 1)HTML通過標籤組織文檔結構,如、。 2)瀏覽器解析HTML構建DOM並渲染網頁。 3)HTML5的新特性如、、增強了多媒體功能。 4)常見錯誤包括標籤未閉合和屬性值未加引號。 5)優化建議包括使用語義化標籤和減少文件大小。

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

HTML的作用是通過標籤和屬性定義網頁的結構和內容。 1.HTML通過到、等標籤組織內容,使其易於閱讀和理解。 2.使用語義化標籤如、等增強可訪問性和SEO。 3.優化HTML代碼可以提高網頁加載速度和用戶體驗。

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代碼” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代碼”代碼“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML、CSS和JavaScript是Web開發的三大支柱。 1.HTML定義網頁結構,使用標籤如、等。 2.CSS控製網頁樣式,使用選擇器和屬性如color、font-size等。 3.JavaScript實現動態效果和交互,通過事件監聽和DOM操作。

HTML定義網頁結構,CSS負責樣式和佈局,JavaScript賦予動態交互。三者在網頁開發中各司其職,共同構建豐富多彩的網站。

HTML適合初學者學習,因為它簡單易學且能快速看到成果。 1)HTML的學習曲線平緩,易於上手。 2)只需掌握基本標籤即可開始創建網頁。 3)靈活性高,可與CSS和JavaScript結合使用。 4)豐富的學習資源和現代工具支持學習過程。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

SAP NetWeaver Server Adapter for Eclipse
將Eclipse與SAP NetWeaver應用伺服器整合。

禪工作室 13.0.1
強大的PHP整合開發環境

SecLists
SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

Dreamweaver CS6
視覺化網頁開發工具

MantisBT
Mantis是一個易於部署的基於Web的缺陷追蹤工具,用於幫助產品缺陷追蹤。它需要PHP、MySQL和一個Web伺服器。請查看我們的演示和託管服務。