Latest web development tutorials

HTML DOM 바디 VLINK 속성

바디 객체 참조 바디 개체

정의 및 사용

VLINK는 속성 집합 또는 속성 값 VLINK 바디 요소를 반환합니다.

VLINK 속성은 클릭 링크 텍스트 색상을 설명합니다.

문법

VLINK 속성 설정 :

bodyObject.vLink="color"

VLINK 속성을 뒤로 :

bodyObject.vLink

描述
color 指定链接颜色。查看完整的 CSS 颜色值


브라우저 지원

Internet ExplorerFirefoxOperaGoogle ChromeSafari

모든 주요 브라우저는 VLINK 속성을 지원


링크를 클릭하고 텍스트의 색상 값을 클릭 한 후 페이지로 돌아 :

<html>
<body id="w3s" link="blue" alink="green" vlink="red">

<p><a href="http://www.w3cschool.cc">W3CSchool.cc</a></p>
<p><a href="http://www.w3cschool.cc/html/">HTML Tutorial</a></p>

<script>
document.write("Link color is: ")
document.write(document.getElementById("w3s").link);
document.write("<br>Active link color is: ")
document.write(document.getElementById("w3s").aLink);
document.write("<br>Visited link color is: ")
document.write(document.getElementById("w3s").vLink);
</script>

</body>
</html>

»시도


바디 객체 참조 바디 개체