搜索
首页web前端html教程网页布局_html/css_WEB-ITnose

初学者,对于自己布局比较困难,使用的是现有网页的模板,上中下结构,中间又分为左右两部分,左边是导航选项,点击后ajax更新右边的内容,现在的问题是我是直接使用的1330固定的宽度,浏览器没有全屏的时候,右边显示的表格就会掉下去,怎么固定在右边不掉啊,谢谢啊
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    
    TSLink
    
    <script></script>
    <script></script>
    <script></script>

    




    

    

        

        

    

    


        

            
                  
        


        
 

        
Nodes

        

            
            
        

        
Manage

        

            
            
            
        

        
Firmware

        

            

        

        
About

        

            

        


    

    

        

    

    
 © Copyright Texas Instruments Incorporated. All rights reserved.





.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">


    ****信息管理系统
    


    
****信息管理系统

    

        
    

    

    
版权所有©


非常感谢,你给的这个布局非常好,我会尝试用下你给的布局模板
声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
从文本到网站:HTML的力量从文本到网站:HTML的力量Apr 13, 2025 am 12:07 AM

HTML是一种用于构建网页的语言,通过标签和属性定义网页结构和内容。1)HTML通过标签组织文档结构,如、。2)浏览器解析HTML构建DOM并渲染网页。3)HTML5的新特性如、、增强了多媒体功能。4)常见错误包括标签未闭合和属性值未加引号。5)优化建议包括使用语义化标签和减少文件大小。

了解HTML,CSS和JavaScript:初学者指南了解HTML,CSS和JavaScript:初学者指南Apr 12, 2025 am 12:02 AM

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

HTML的角色:构建Web内容HTML的角色:构建Web内容Apr 11, 2025 am 12:12 AM

HTML的作用是通过标签和属性定义网页的结构和内容。1.HTML通过到、等标签组织内容,使其易于阅读和理解。2.使用语义化标签如、等增强可访问性和SEO。3.优化HTML代码可以提高网页加载速度和用户体验。

HTML和代码:仔细观察术语HTML和代码:仔细观察术语Apr 10, 2025 am 09:28 AM

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

HTML,CSS和JavaScript:Web开发人员的基本工具HTML,CSS和JavaScript:Web开发人员的基本工具Apr 09, 2025 am 12:12 AM

HTML、CSS和JavaScript是Web开发的三大支柱。1.HTML定义网页结构,使用标签如、等。2.CSS控制网页样式,使用选择器和属性如color、font-size等。3.JavaScript实现动态效果和交互,通过事件监听和DOM操作。

HTML,CSS和JavaScript的角色:核心职责HTML,CSS和JavaScript的角色:核心职责Apr 08, 2025 pm 07:05 PM

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

HTML容易为初学者学习吗?HTML容易为初学者学习吗?Apr 07, 2025 am 12:11 AM

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。

HTML中起始标签的示例是什么?HTML中起始标签的示例是什么?Apr 06, 2025 am 12:04 AM

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

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解锁Myrise中的所有内容
4 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

SublimeText3 Linux新版

SublimeText3 Linux新版

SublimeText3 Linux最新版

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

螳螂BT

螳螂BT

Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。