html <pre>标签

  今天浏览网页无意中发现了pre标签,以前没见过呀!  

测试代码
1 <head runat="server">
2 <title></title>
3
4 <style type="text/css">
5 p,pre
6 {
7 background-color: #94C4F3;
8 border: 1px solid #AAAA79;
9 border-radius: 0.5em 0.5em 0.5em 0.5em;
10 height:auto;
11 }
12 </style>
13  </head>
14 <body>
15 <div style=" margin:50px auto; 600px; height:300px; font-size:12px;">
16 <pre>
17 namespace WebEffect.effect
18 {
19 public partial class Html_Pre : System.Web.UI.Page
20 {
21 protected void Page_Load(object sender, EventArgs e)
22 {
23
24 }
25 }
26 }
27 </pre>
28 <p>
29 namespace WebEffect.effect
30 {
31 public partial class Html_Pre : System.Web.UI.Page
32 {
33 protected void Page_Load(object sender, EventArgs e)
34 {
35
36 }
37 }
38 }
39 </p>
40 </div>
41 </body>

  效果

  

  发现两者的区别了嘛?具体什么意思就自己百度吧!

原文地址:https://www.cnblogs.com/xqhppt/p/2043293.html