css
涯一涯二涯三
这个作者很懒,什么都没留下…
展开
-
css基础
css 书写格式 在head内用 <style type='text/css'> 使用选择器 选择器名{ } p { } #id{ } 注:任何标签都有id属性,页面不能出现相同的id. id命名规则: 1.必须以字母开头; 2.大小写区分; 3.可以有数据下划线; 4.不能与标签名一样;(可以使用与标签名相似,...原创 2018-05-17 00:15:00 · 214 阅读 · 0 评论 -
css基础
css之盒子模型与导航条 盒子模型 盒子中想要文本垂直居中 要使用 line-weight 行高=盒子高 text-align 文本对齐方式 left right center justify(两端对齐) 导航条制作过程 导航条的四种状态 link 未访问状态 hover 接触状态 active 激活状态 visited ...原创 2018-05-17 12:05:45 · 99 阅读 · 0 评论 -
css基础
div 圆角 border-radius: 10px; 矩形变成圆。border-radius设置成width的一半,并且width=height css文件 #testcss{ width: 200px; height: 200px; background-color: antiquewhite; border-radius: 100px; } ...原创 2018-05-22 19:33:44 · 230 阅读 · 0 评论 -
当窗口上下滚动时,能始终固定在视野顶端的div属性
当窗口上下滚动时,能始终固定在视野顶端的是 <div style=”position:fixed;top:0;”></div>转载 2018-11-26 21:00:25 · 1541 阅读 · 0 评论