HTML
$(window).height()可以得到窗口高度,否则就是文档的高度。
参考:https://stackoverflow.com/questions/12103208/jquery-window-height-is-returning-the-document-height
<input type="text" value="3" class="field left" readonly>
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
#demo
{
background:url(bg_apple_little.gif) no-repeat center center;
height:200px;
width:200px;
}
简单的tooltip:
<div title="This is my tooltip">
复杂的tooltip参考:http://www.designer-daily.com/jquery-prototype-mootool-tooltips-12632
用CSS实现:
textarea.fooClass { resize: none; }
myTextView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>"));
热门内容
最新内容
- 1 week 2 days ago
- 1 week 4 days ago
- 2 weeks 6 days ago
- 3 weeks ago
- 3 weeks 1 day ago
- 4 weeks ago
- 4 weeks ago
- 4 weeks ago
- 1 month 1 week ago
- 1 month 1 week ago
最新评论