XSS-HTML&javaSkcript&CSS&jQuery&ajax-CSS

來源:互聯網
上載者:User

標籤:one   big   選擇   color   amp   處理   selector   name   class   

CSS

1、表單的處理 <style> table, td, th{

                                                 border:1px; solid green;}

                   th{ background-color:green;

                                 color: white;}

                  </style>

      <body> <table>   <tr><th>firstName</th><th>Lastname</th></tr>

                    <tr><td>PEE</td><td>GRR</td></tr>

2、<style><div>{ background-color:lightgrey;

                               width;300px;

                              border:25px solid green;

                           padding:25px;

                             mardin:25px;

}</style>

<body><div>KLNJFSA</div><body>

3、邊框的設定

 <style>

p.one{

border-style:solid;

border-width:5px;

border-color:red

}

p.two{

border-style:solid;

border-width:4px;

border-color:green;}</style>

<body>

 <p class="one">NKNK</p>

<p class="two">SDNKSD</p></body>

4、指定邊距

<style>p{background-color:yellow;}

p.margin{

 margin-top;100px;

margin-bottom:100px;

margin-right;50px;

margin-left;50px;}

<body>

<p>DSDSDD</p>

<p class="margin">DSDSD</p></body>

5、分組選取器Grouping Selectors

 <style>

h1,h2,p{

color:green;}</style>

 <body><h1>DDDD</h1>

<h2>FFFF</h2></body>

6、設定元素的高度  Dimension

  <style>

img.normal{

height:auto;}

img.pig{

height:12px;}</style>

 <body>

<img class="normal" src="pp.gif" width="32" height="234";></body>

<img class="big" src="llsd.gif" width="23" height="23";>

7、按照百分比設定高度

  <style>html{height:100%;}

body{height"100%;}

img.normal{height:auto;}

ing.big{height:50%;}

img.smalll{ height:10%;}</style>

<body><img class="normal" src="sm.gif"  width="2" height="23‘’;>

<img class="small" src="we/gif" width="324" height="23";></body>

 

XSS-HTML&javaSkcript&CSS&jQuery&ajax-CSS

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.