CSS背景图片拉伸
来源:百度知道 编辑:UC知道 时间:2024/05/27 01:24:49
如果能将背景图片拉伸
在下面代码中修改
/* Top Panel - wrapper for start button, menu bar & nav bar */
/*****************************************************************************/
.top-panel{
padding: 3px;
background-image: url(images/rebar1.PNG);
flow: horizontal;
}
在.top-panel样式里添加display:table
或者在调用这个CSS的DIV里添加
<div style="clear:both"></div
好像无效,,,最好能详细说明,举个例子
在下面代码中修改
/* Top Panel - wrapper for start button, menu bar & nav bar */
/*****************************************************************************/
.top-panel{
padding: 3px;
background-image: url(images/rebar1.PNG);
flow: horizontal;
}
在.top-panel样式里添加display:table
或者在调用这个CSS的DIV里添加
<div style="clear:both"></div
好像无效,,,最好能详细说明,举个例子
水平方向重复:background-image: url(images/rebar1.PNG) repeat-x;
垂直方向重复:background-image: url(images/rebar1.PNG) repeat-y;
二者都重复:background-image: url(images/rebar1.PNG) repeat;
在.top-panel样式里添加display:table
或者在调用这个CSS的DIV里添加
<div style="clear:both"></div>