一个css平铺问题
CSS code:
body{
width:100%;
font-size:12px;
font-family:tahoma,arial,'宋体';
color:#666666;
float:none;
background: url(/images/bg.gif) left top repeat-y;
text-align:center;
margin:0 auto;
padding:0px;
}
为什么不能向Y轴平铺?只能显示最左边的一条线出来。使用background: url(/images/bg.gif) left top repeat;可以平铺,但是我不需要x轴啊
头部DHTML的问题。搞定了
!:(还是不行。我日啊
哪位看看,着急啊
为什么不把代码拆开写呢?
body { background-image:url(images/bg.gif); background-position:top left; background-repeat:repeat-y;}
还有:{ float:none;}这句话的含义你清楚吗?这句是没有必要写的。
很有可能的就是你用其他的DIV层把body也盖住了,比如定义了一个#container { width:98%;}
把整个代码发上来看看吧。
把高加上试试。。。
相关问答:
display:inline-block;
overflow:hidden;(网络上查找是影藏溢出,但是测试起来感觉不太明白)
position:relative;(绝对定位,不知道对不对)
position:absolute;
这四个属性在CSS里面出现频率比较高,高手指点 ......
HTML code:
<div id="DivC" style="float:left; height:25px; width:100%;">
<div id="Div1" style="float:left; height:25px; width:[color=#FF0000]X[/colo ......
CSS 代码
.style7
{
width:115px !important;width:120px;padding:5px;
}
<td class="style7">
<%=Html.Pas ......
虽然这个问题不属于PHP版块的,但是还是发在这里 喜欢这个版块
问题描述 : 插入地图的按钮点了没反应! 什么原因 ,增加小区的按钮点了有反应!!代码如下
PHP code:
<!DOCTYPE html PUBLIC & ......
我的框架的代码:
<frameset rows="80,*">
<frame name="top" src="a.html">
<frameset cols="150,*"> ......