Skip to content

Instantly share code, notes, and snippets.

@reygreen1
Created February 3, 2015 07:28
Show Gist options
  • Save reygreen1/b433bd1d14ad523b56bc to your computer and use it in GitHub Desktop.
Save reygreen1/b433bd1d14ad523b56bc to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<style type="text/css">.aaa {line-height:250px;border:#999999 dashed 1px;}
.aaa a{display:inline-block;vertical-align: middle;line-height:1.5em;font-size:12px}
</style><p class="aaa"><a>这里是高度为150像素的标签内的多行文字,文字大小为20像素。<br />这里是第二行,用来测试多行的显示效果。</a> </p>
// alert('Hello world!');
function onkeypress_callback(evt) {
var eType = evt.type; // Will return "keypress" as the event type
var eCode = 'keyCode is ' + evt.keyCode;
var eChar = 'charCode is ' + evt.charCode;
alert ("Captured Event (type=" + eType + ", key Unicode value=" + eCode + ", ASCII value=" + eChar + ")"); }
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment