美文网首页
微信小程序样式基础

微信小程序样式基础

作者: 部落大圣 | 来源:发表于2018-02-09 22:35 被阅读40次

    样式选择器

    基本选择器

    基本选择器
    css选择器
    伪类选择器

    CSS伪类选择器

    http://www.w3school.com.cn/css/css_pseudo_classes.asp

    /**index.wxss**/
    .body{
      height:30%;
      width: 30%;
      background-color: royalblue;
    }
    .image{
      height: 100%;
      width: 100%;
      /* border:seashell 1px solid;  */
      background-color: white; 
      /* margin:10rpx; */
      /* padding:50rpx; */
      text-align: center;
      border-radius: 50%;
    
    }
    .body:active{
      height:30%;
      width: 30%;
      background-color: rebeccapurple;
    }
    view{
      background-color: seashell;
      border-radius: 20px;
    }
    view text{
      color:blue;
      font-size:35px;
      font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif;
    }
    text::first-letter{
      color:yellow;
    }
    

    相关文章

      网友评论

          本文标题:微信小程序样式基础

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