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