无标题文档
h1{background:red;}
/*这是Css注释*/
p{color:greenyellow;}
div{font-size: 30px;}
.one{color: yellow;}
#two{font-size: 40px;}
#bgimg{background-image:url("Demo_png.png");}
四川信息职业技术学院
贵州赤水市
四川泸州
hello world
你好世界
行内样式css展示
外链式css展示
背景颜色
背景图片
演示效果
演示效果
演示效果d
演示效果s
演示效果
演示效果
-----------------------------------------------------------------------------------------------
@charset "utf-8";
/* CSS Document */
s{color: darkorchid;}
.bg{width:100px;height:auto;background:#4EAD79;}
#bgimg{width:500px;height:500px;background:red; background-image:url("Demo_png.png");background-repeat:no-repeat; background-position: center;}/*背景平铺,不平铺*/
原文:https://www.cnblogs.com/glkj/p/11031100.html