当前位置: css > CSS框架 >

Blueprint CSS framework 分析(7)

时间:2010-01-05 20:47来源:网络 作者:秩名 点击:
*Fortextfields,useclass.titleor.text *Forinlineforms,use.inline(evenwhenusingcolumns) --------------------------------------------------------------*/ label{ font-weight : bold ;} fieldset{ padding :
 
  •    * For text fields, use class .title or .text     
  •    * For inline forms, use .inline (even when using columns)     
  •         
  • -------------------------------------------------------------- */     
  •      
  • label       { font-weightbold; }      
  • fieldset    { padding:1.4emmargin0 0 1.5em 0border1px solid #ccc; }      
  • legend      { font-weightboldfont-size:1.2em; }      
  •      
  •      
  • /* Form fields     
  • -------------------------------------------------------------- */     
  • /*这种方式的selector不错*/     
  • input[type=text], input[type=password],      
  • input.text, input.title,       
  • textarea, select {       
  •   background-color:#fff;       
  •   border:1px solid #bbb;       
  • }      
  • /*获取到焦点时改变边框颜色,不用JS就能实现,很实用*/     
  • input[type=text]:focus, input[type=password]:focus,       
  • input.text:focus, input.title:focus,       
  • textarea:focus, select:focus {       
  •   border-color:#666;       
  • }      
  •      
  • input[type=text], input[type=password],      
  • input.text, input.title,      
  • textarea, select {      
  •   margin:0.5em 0;      
  • }      
  •      
  • input.text,       
  • input.title   { width300pxpadding:5px; }      
  • input.title   { font-size:1.5em; }      
  • 顶一下
    (2)
    100%
    踩一下
    (0)
    0%
    ------分隔线----------------------------
    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    评价:
    表情:
    用户名:密码: 验证码:点击我更换图片
    推荐内容