美文网首页
css样式问题

css样式问题

作者: 本人七彩奇彩 | 来源:发表于2017-08-25 09:42 被阅读0次

1. css 样式


1-1. 插入不同大小图标后面字体不同下沉位

  html:     
  <div class="user-info clearfix">
     <span class="pull-left"><i class="icon_user"></i> 美腻的坑队友狂魔
     </span>
     <span class="pull-right"><i class="icon_tip"></i> 预览要求</span>
   </div>
  css:
  .icon_user,.icon_tip{background: url('../images/icon.png') no-repeat; display:inline-block; position:relative; top:3px;}
  .icon_user{width:22px; height:22px; background-position:-31px -348px; top:5px;}
  .icon_tip{width:14px; height: 14px; background-position:-31px -5px ;}

解决(不是特别友好):

 .templet_container .user-info .pull-left{position: relative; top:-2px;}

相关文章

  • CSS基础样式总结

    二、CSS基础样式 1、CSS样式简介 (1)内联样式 在标签内部通过style属性设置元素的样式存在问题:使用内...

  • css样式入门书目录

    css样式-字体属性 css样式-背景属性 css样式-边框属性 css样式-列表属性 css样式-定位属性 cs...

  • css样式问题

    1. css 样式 1-1. 插入不同大小图标后面字体不同下沉位 解决(不是特别友好):

  • CSS要点记录

    CSS要点记录 CSS 指层叠样式表 (Cascading Style Sheets) 多种样式时的优先级问题 数...

  • [jQuery]设置css样式

    获取css样式 设置单个css样式 设置多个css样式

  • CSS基础-1

    CSS简介 基本使用 CSS的样式选择器 表格样式 CSS盒子模型 margin的问题 布局的三大标签 块标签 内...

  • 浏览器兼容性问题

    样式兼容性问题(css):可以重置全局样式(自己手写reset.css)也可以使用 Normalize.cssie...

  • CSS基础(二)

    1 - CSS样式的引入 CSS样式的引入可以采用三种方式: 内联式css样式 嵌入式CSS样式 外部式CSS样式...

  • 切图需要的准备

    样式 重置样式(reset.css) 公共样式(commo.css) 独立样式(例如首页:index.css) 重...

  • jQuery学习:css操作/属性操作

    css操作 修改单个样式.css(name,value) 修改多个样式.css(obj) 获取样式.css(nam...

网友评论

      本文标题:css样式问题

      本文链接:https://www.haomeiwen.com/subject/pqtudxtx.html