当前位置:知识百问>百科知识>空间背景代码怎么做?

空间背景代码怎么做?

2023-08-24 19:34:36 编辑:join 浏览量:608

空间背景代码怎么做?

*背景设置*/body{}中加入background:url(http://hi.baidu.com/0454ldk)repeat-x#FFFFFF注:repeat背景图像在纵向和横向上孙者平铺no-repeat背景图像不平铺repeat-x背景图像在横向上平铺repeat-y背景图像在纵向平铺/*半透明设置*/.modbox,.modbl,.modbc,.modbr{filter:alpha(opacity=80);-moz-opacity:0.8;width:auto!important;width:100%}/*解决回车换两行的问题*/Shift+回车/*全能隐藏代码*/display:none/*不停变换空间背景图片*/http://magic.qtutu.com/参数color:green表示字体颜色。font-size:14px表示字体大则余薯小。font-family:Georgia,黑体表示英文字体和中文字体border:1px表示边框的粗细。solidgreen表示边框的颜色。background-color:black表示背景色。/*最顶部加字方法!*/#tabline{margin-top:-490px;right:0px;line-height:8px;background:url(图片地址)no-repeatbottom;padding-bottom:40px;margin-bottom:10px}图片上面打上你要的字~欢迎光临http://hi.baidu.com/0454ldk/*添加LOGO*/#main{background:url(顶部LOGO)no-repeat10px0px;}/*10px0px;距顶部距左*/#layout{width:980px;margin-left:0px;background:url(底部LOGO)no-repeatbottom0px;padding-bottom:80px}/*margin-left:0px底部图片距离最左边长度;bottom0px边框大小;padding-bottom:80px主体模块最下端距离底部图片最顶端距离*//*添加小背景图片*/.stage{background:url(小背景图片)repeat-y0px0px}/*0px0px距左距顶(建议为0)*//*空间整体毁磨宽度*/#main{width:740px!important;text-align:center}或#main{width:80%!important}/*版块长度及间距*/#layouttd.c2t1{padding-left:55px;width:570px}/*最左版块*/#layouttd.c2t2{width:60px}/*左右两版块间距*/#layouttd.c2t3{width:260px;padding-right:30px}/*第2竖列版块信息*//*定义阅读文章时文章块宽度距左长度*/.stagepad{width:570px;margin-left:44px;}.stagepada:link{text-decoration:none;font-weight:bold}.stagepada:visited{text-decoration:none;font-weight:bold}/*文章虚线边框*/#m_blogdiv.cnt{color:#333333;line-height:20px;font-size:14px;border:1pxdashed#090688;background:#Ffffff;PADDING:10px;}/

标签:代码,背景,空间

版权声明:文章由 知识百问 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.zhshbaiwen.com/article/241248.html
热门文章