css背景属性介绍(编辑修改稿)内容摘要:

mage:url(C:\Documents and Settings\Administrator\桌面\)。 backgroundrepeat:norepeat。 backgroundposition:20px 60px} /style /head body p这个 HTML 使用了 CSS 的 backgroundposition 属性。 这个属性和backgroundimage 属性连在一起使用,决定了背景图片的最初位置。 /p p上面的代码表示背景图片的初始位置距离网页最左面 20px,距离网页最上面 60px。 /p /body /html 背景属性 (background) 这个属性是设置 背景相关属性的一种快捷的综合写法, 包括 backgroundcolor, backgroundimage, backgroundrepeat, backgroundattachment, backgroundposition。 body {background:99FF00 url(../images/css_tutorials/) norepeat fixed 40px 100px} 上面的代码表示,网页的背景颜色是翠绿色,背景图片是 图片 ,背景图片不重复显示,背景图片不随内容滚动而动,背景图片距离网页最左面 40px,距离网页最上面 100px。 演示示例 html head title背景属性 background/title style type=text/css body {background:99FF00 url(../images/css_tutorials/) norepeat fixed 40px 100px} /style /head body p这个属性是设置背景相关属性的一种快捷的综合写法, 包括 backgroundcolor, backgroundimage, backgroundrepeat, backgroundattachment, backgroundposition。 /p p这个 HTML 所用的背景属性表示,网页的背景颜色是翠绿色,背景图片是 图片,背景图片不重复显示,背景图片不随内容滚动而动,背景图片距离网页最左面 40px,距离网页最上面 100px。 /p p这个属性是设置背景相关属性的一种快捷的综合写法, 包括 backgroundcolor, backgroundimage, backgroundrepeat, backgroundattachment, backgroundposition。 /p p这个 HTML 所用的背景属性表示,网页的背景颜色是翠绿色,背景图片 图片,背景图片不重复显示,背 景图片不随内容滚动而动,背景图片距离网页最左面 40px,距离网页最上面 100px。 /p p这个属性是设置背景相关属性的一种快捷的综合写法, 包括 backgroundcolor, backgroundimage, backgroundrepeat, backgroundattachment, backgroundposition。 /p p这个 HTML 所用的背景属性表示,网页的背景颜色是翠绿色,背景图片是 图片,背景图片不重复显示,背景图片不随内容滚动而动,背 景图片距离网页最左面 40px,距离网页最上面 100px。 /p /body /html CSS 边框属性 边框风格属性 (borderstyle) 这个属性用来设定上下左右边框的风格,它的值如下:  none (没有边框,无论边框宽度设为多大 )  dotted (点线式边框 )  dashed (破折线式边框 )  solid (直线式边框 )  double (双线式边。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。