1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 .div1{ 8 width: 300px; 9 height: 300px; 10 border:50px dashed green; 11 font-size: 60px; 12 color: #fff; 13 padding: 30px; 14 margin: 30px; 15 background: #fff url(bac.jpg) 0 0 no-repeat; 16 background-clip: border-box; 17 /*background-clip: padding-box;*/ 18 /*background-clip: content-box;*/ 19 } 20 </style> 21 </head> 22 <body> 23 <div class="div1">事後覅計劃公交窖口換IP感受</div> 24 </body> 25 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 .div1{ 8 width: 300px; 9 height: 300px; 10 border:50px dashed green; 11 font-size: 60px; 12 color: #fff; 13 padding: 30px; 14 margin: 30px; 15 background: #fff url(bac.jpg) 0 0 no-repeat; 16 background-clip: border-box; 17 /*background-clip: padding-box;*/ 18 /*background-clip: content-box;*/ 19 } 20 </style> 21 </head> 22 <body> 23 <div class="div1">事後覅計劃公交窖口換IP感受</div> 24 </body> 25 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 .div1{ 8 width: 300px; 9 height: 300px; 10 border:50px dashed green; 11 font-size: 60px; 12 color: #fff; 13 padding: 30px; 14 margin: 30px; 15 background: #fff url(bac.jpg) 0 0 no-repeat; 16 background-clip: border-box; 17 /*background-clip: padding-box;*/ 18 /*background-clip: content-box;*/ 19 background-origin: border-box; 20 } 21 </style> 22 </head> 23 <body> 24 <div class="div1">事後覅計劃公交窖口換IP感受</div> 25 </body> 26 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 .div1{ 8 width: 200px; 9 height: 200px; 10 border:50px dashed green; 11 font-size: 60px; 12 color: #fff; 13 padding: 100px; 14 margin: 30px; 15 background: #f00 url(bac.jpg) 0 0 no-repeat; 16 background-clip: content-box; 17 background-origin: content-box; 18 } 19 </style> 20 </head> 21 <body> 22 <div class="div1"></div> 23 </body> 24 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 .div1{ 8 width: 200px; 9 height: 200px; 10 border:50px dashed green; 11 padding: 100px; 12 margin: 30px; 13 background: #000 url(bac.jpg) 0 0 no-repeat; 14 /*background-size:400px 400px;*/ 15 /*background-size:100% 100%;*/ 16 /*background-size:auto;*/ 17 background-size:cover; 18 /*background-size:contain;*/ 19 } 20 </style> 21 </head> 22 <body> 23 <div class="div1"></div> 24 </body> 25 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 body{ 8 color: #fff; 9 background: #000; 10 } 11 div{ 12 color: #fff; 13 font-size: 50px; 14 font-weight: bold; 15 background: rgba(255,255,255,0.5); 16 position: absolute; 17 } 18 </style> 19 </head> 20 <body> 21 <div>會後集合與交通</div> 22 </body> 23 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 div{ 8 height: 100px; 9 width: 100px; 10 background: -webkit-gradient(linear,left center,right center,from(yellow),color-stop(0.5,black),color-stop(0.5,#fff),to(blue)); 11 } 12 </style> 13 </head> 14 <body> 15 <div></div> 16 </body> 17 </html>
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style type="text/css"> 7 div{ 8 height: 100px; 9 width: 100px; 10 border-radius: 50px; 11 background: -webkit-gradient(radial,30 30,1,30 30,100,from(#fff),color-stop(0.3,yellow),to(blue)); 12 } 13 </style> 14 </head> 15 <body> 16 <div></div> 17 </body> 18 </html>