This XML file does not appear to have any style information associated with it. The document tree is
生活随笔
收集整理的這篇文章主要介紹了
This XML file does not appear to have any style information associated with it. The document tree is
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
先寫一段代碼:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>用瀏覽器打開如下:
加上 xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en" lang= "en"? ? ? 后,代碼如下:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>或者:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" ><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>?
總結
以上是生活随笔為你收集整理的This XML file does not appear to have any style information associated with it. The document tree is的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTML <!DOCTYPE> 标签
- 下一篇: const_iterator简单介绍