The hreflang property sets or returns the base language of the target URL.
linkObject.hreflang=languagecode
The following example returns the language code of the link element:
<html> <head> <link rel="stylesheet" type="text/css" hreflang="us-en" id="style1" href="try_dom_link.css" /> </head> <body> <script type="text/javascript"> x=document.getElementById("style1"); document.write("Language code=" + x.hreflang); </script> </body> </html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲瑥V大熱心網(wǎng)友會為你解答?。?點(diǎn)擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號