UK[klɪə(r)] US[klɪr]
adj.Clear; clear; clear, clear; clear, bright
adv.Completely; clearly; whole
vi.become clear; become clear
vt.sweep, remove; eliminate (suspect); make clear; make clean
n.gap, space
Third person singular: clears Present participle: clearing Past tense: cleared Past participle: cleared Comparative: clearer Superlative: clearest
javascriptclearproperty syntax
Function: Set whether other floating elements are allowed on the side of an element.
Syntax: Object.style.clear=left|right|both|none
javascriptclearproperty example
<html> <head> <meta charset="utf-8"> <style type="text/css"> img { float:left; } </style> <script type="text/javascript"> function clearLeft() { document.getElementById("p1").style.clear="left"; } </script> </head> <body> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg"/> <p id="p1">这是一些文本,这是一些文本,这是一些文本,这是一些文本,这是一些文本</p> <input type="button" onclick="clearLeft()" value="Clear left side of text" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance