阅读背景:

常用 css html 样式

来源:互联网 
CSS基础必学列表
CSS width宽度
CSS height高度
CSS border边框
CSS background背景
CSS sprites背景拼合
CSS float浮动
CSS margin外边距
CSS padding内边距
CSS color字体颜色
CSS font-size字体大小
CSS font-family字体
CSS font-weight字体加粗
CSS display显示与隐藏
CSS overflow隐藏与滚动条
CSS position定位
CSS text-align内容水平位置
CSS text-indent缩进
CSS text-decoration下划线
CSS clear清除浮动
CSS cursor鼠标手势光标
CSS font文本
CSS font-style文本斜体
CSS font-variant缩小大写字母
CSS id CSS class
left right top bottom
css letter-spacing字间距
CSS line-height行高
css min-width最小宽度
css max-width最大宽度
CSS min-height最小高度
css max-height最大高度
CSS text-transform英文大小写
css text-overflow省略号
CSS white-space不换行
css z-index重叠顺序
letter-spacing; 来设置字与字间距_字符间距离,字体间距css样式
margin:0 auto;div居中
text-align:center;文字居中
border-radius:5px;圆角边框
 position: absolute;绝对定位
 position: relative;相对定位
box-shadow: 0px 0px 0px 10px #ccc;边框阴影
opacity: 1; cssdiv透明度
cursor: pointer;所有div移上去显示手型
 文字效果(a链接样式去除)
text-decoration:none 无装饰,通常对html下划线标签去掉下划线样式
text-decoration:underline 下划线样式
text-decoration:line-through 删除线样式-贯穿线样式
text-decoration:overline 上划线样式

cursor其他取值  

auto                    :标准光标  
default                 :标准箭头  
pointer, hand                   :手形光标  
wait                     :等待光标  
text                      :I形光标  
vertical-text          :水平I形光标  
no-drop                :不可拖动光标  
not-allowed           :无效光标  
help                     :帮助光标  
all-scroll         :三角方向标  
move                     :移动标  
crosshair           :十字标  
e-resize  
n-resize  
nw-resize  
w-resize  
s-resize  
se-resize  
sw-resize
line-height 行高

选择器
 .oang4:hover{
         background-color: red;
     }鼠标经过样式变红色

{
p:before
{ 
content:"台词:";
}在每个 CSS基础必学列表
CSS width宽度
CSS height高度
CSS bord



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: