随笔分类 -  CSS

CSS属性
摘要:cursor 属性 1、cursor属性: 一些不同的光标: cursor 属性规定要显示的光标的类型(形状)。 该属性定义了鼠标指针放在一个元素边界范围内时所用的光标形状 可能的值 需使用的自定义光标的 URL。 注释:请在此列表的末端始终定义一种普通的光标,以防没有由 URL 定义的可用光标。 阅读全文
posted @ 2017-07-22 16:33 michellexiaoqi 阅读(156) 评论(0) 推荐(0)
css,查询相应标签,div等
摘要:1、类名 .类别 例子: 查询类名为“useradd” .useradd{ margin-top:50px; margin-left:200px;} 2、属性找 例子:查询类为useradd下的input,属性为“text”。 .useradd input[type=text]{ width:400 阅读全文
posted @ 2017-07-22 15:16 michellexiaoqi 阅读(383) 评论(0) 推荐(0)
CSS ,浮动,clear记录,和一些转载别处
摘要:DIV+CSS clear both清除产生浮动 我们知道有时使用了css float浮动会产生css浮动,这个时候就需要清理清除浮动,我们就用clear样式属性即可实现。 clear 属性规定元素的哪一侧不允许其他浮动元素 1、clear语法:clear : none | left|right| 阅读全文
posted @ 2017-07-22 15:05 michellexiaoqi 阅读(312) 评论(0) 推荐(0)
border inset outset ,border-radius
摘要:例子: div{ width:256px; height:256px; border: 10px inset #f00; margin:0 auto; border-radius:255px; } 阅读全文
posted @ 2017-07-08 13:58 michellexiaoqi 阅读(564) 评论(0) 推荐(0)
距离,margin padding ,width height 用法 ,记录
摘要:margin:0 auto 表示什么意思 margin后面如果只有两个参数的话,第一个表示top和bottom,第二个表示left和right 因为0 auto,表示上下边界为0,左右则根据宽度自适应相同值(即居中) 阅读全文
posted @ 2017-07-08 13:36 michellexiaoqi 阅读(243) 评论(0) 推荐(0)
用JS改变的元素CSS样式,css里display :none 隐藏 block 显示
摘要:CSS样式的引用有3种方式:style引用、class引用、id引用,所以js改变元素的样式我们也分3种来说。 1.js改变由style方式引用的样式:方法一:document.divs.style.cssText="border:1px solid #000000;color:#FF0000";方 阅读全文
posted @ 2017-07-01 21:33 michellexiaoqi 阅读(2439) 评论(0) 推荐(0)