标签:
一、理论:二、实践:
1.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> div{ width : 200px; margin : 20px auto; outline : 10px solid #ccc; padding : 20px } </style> </head> <body> <div>快上八个菜</div> </body> </html>2.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> .form1 textarea{ background:#123586; resize:none; } .form2 textarea{ background:#298529; resize:both; } </style> </head> <body> <form action = "#" method="post" class = "form1"> <textarea name = "test" rows = "15" cols = "20" placeholder="修改文本域大小" ></textarea> </form> <form action = "#" method="post" class = "form2"> <textarea name = "test" rows = "15" cols = "20" placeholder="修改文本域大小" ></textarea> </form> </body> </html>
标签:
原文地址:http://blog.csdn.net/bwshqh/article/details/50927670