javaweb学习笔记

css选择器

标记选择器

 <style>
        a{
                  front-size:9px;
                  color:#f97;
          }
</style>

类别选择器


```r

```r

```html
<style>
   .one{
	font-family:宋体;
                font-size:24px;
                color:red;
           }
    .two{
               font-family:宋体;
               font-size:16px;
               color:red;
           }
    .three
           {
                font-family:宋体;
                font-size:12px;
                color:red;
            }
</style>
</head>
<body>
   <h2 class="one">应用了选择器</h2>
   <p>正文内容1 </p>
   <h2 class="two">应用了选择器</h2>
   <p>正文内容2 </p>
   <h2 class="three">应用了选择器</h2>
   <p>正文内容3 </p>
</body>

id选择器


```html
<style>
  #frist{
           font-size:18px
           }
  #second{
           font-size:24px
           }
          #three{
                     font-size:36px
                     }
</style>
<body>
          <p id="frist">ID选择器</p>
          <p id="second">ID选择器2</p>
          <p id="three">ID选择器3</p>
</body>
css3 div层控制

```html
<title>使用css2对页面中的文字添加色彩边框</title>
<style>
#boarder{
        margin:3px;
        width:180px;
        padding-left:14px;
        border-width:5px;
        border-color:blue;
        border-style:solid;
        height:104px;
}
</style>
</head>
<body>
<div id="boarder"> 文字一<br>
    文字二<br>
    文字三<br>
    文字四<br>
    文字五<br>
</div>
</body>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值