html宽度设置100%后浏览器里怎么只有一半

html宽度设置100%后浏览器里怎么只有一半,第1张

html宽度设置100%后浏览器里只有一半,以以下代码为例

检测一下body的css里面是否定义了宽度

另外,也可以给body一个属性width:1200%;

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8"

/>

<title>无标题文档</title>

<style type="text/css">

<!--

body{ padding:0pxmargin:0px}

.top{ width:100%height:80pxborder:1px #000 solidmargin:0px auto

display:block}

.top1{ width:1200pxheight:80px}

-->

</style>

</head>

<body>

<div class="top">

<div class="top1"></div>

</div>

</body>

</html>

分类: 电脑/网络 >>互联网

问题描述:

提示说“这个页面上的Script有1错误。行:56,字符:3,代码:0 错误:语法错误

下面是源文件61行以前

<!DOCTYPE PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "w3/TR/x1/DTD/x1-transitional.dtd">

<xmlns="w3/1999/x">

<head>

<title>小草的天空</title>

<meta -equiv="Content-type" content="text/charset=GBK">

<link href="/style/mon/css/main.css" type=text/css rel="stylesheet"/>

<link id="css_main" href="/style/lotuscss/main.css" type=text/css rel="stylesheet"/>

<link href="/style/mon/css/remind.css" type=text/css rel="stylesheet"/>

<style type=text/css id="$_definecss">

body{

}

#pagebody a, span.modulelink{

}

#pagebody{

}

.userdefineclass_all{

border-style:solid!important

}

.userdefineclass{

border-bottom-style:solid!important

border-left-style:solid!important

border-right-style:solid!important

}

.userdefineclass_notpbt{

border-left-style:solid!important

border-right-style:solid!important

}

#spacename {

font-family:隶书!important

}

#spacedesc {

font-family:宋体!important

}

</style>

</head>

<link rel="stylesheet" type=text/css href="/style/mon/css/home.css"/>

<link rel="stylesheet" type=text/css href="/style/lotuscss/home.css"/>

<link rel="stylesheet" type=text/css href="/style/mon/css/blog.css"/>

<link rel="stylesheet" type=text/css href="/style/lotuscss/blog.css"/>

<link rel="stylesheet" type=text/css href="/style/mon/css/ment.css"/>

<link rel="stylesheet" type=text/css href="/style/lotuscss/ment.css"/>

<link rel="stylesheet" type=text/css href="/style/lotuscss/editor.css">

<link rel="stylesheet" type=text/css href="/style/mon/css/editor.css">

<script type=text/javascript src=/style/lotusjs/theme.js></script>

<script type=text/javascript src=/0001/js/gen/JavascriptCore.js></script>

<script src=/style/lotusjs/theme.js></script>

<script type=text/javascript src=/0001/js/gen/prevHome.js></script>

<script>

<!----><![CDATA[><!--

var stpath = '/style/lotus/'

var hostId='1862255'

--><!]]>

</script>

<body onload="loadPreviewBodyContent()">

解析:

这要看你的电脑了!因为你应该下载!不过你不要去有病毒的网站

这是我要告诉你的 其他我就没的说了!88


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7556786.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-07
下一篇 2023-04-07

发表评论

登录后才能评论

评论列表(0条)

保存