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 day 15 hours ago
- 1 day 17 hours ago
- 4 days 16 hours ago
- 4 days 16 hours ago
- 4 days 16 hours ago
- 4 days 16 hours ago
- 5 days 17 hours ago
- 3 weeks 1 day ago
- 1 month ago
- 1 month ago
最新评论