Is it valid XHTML/good practice to have links of the following form? //www.example.com/foo/bar.html是一個沒有協議有效XHTML的鏈接?即<a href="//www.example.com/">
If the current page is HTTP, then the link points to: http://www.example.com/foo/bar.html 如果當前頁面是根據HTTPS固定,則該鏈接指向:https://www.example.com/foo/bar.html
換句話說,是
< A HREF = 「// www.example.com/」 >
XHTML 1.1有效嚴格?而且,它受到很多/所有瀏覽器的支持嗎?
我想的很多。感謝您的答覆。只是爲了不讓W3C警察不高興。 :P我的所有網頁必須是有效的XHTML,你知道。 – BMiner 2011-04-20 19:58:49