1
chone 2011-09-16 17:52:18 +08:00
单纯css好像不容易做到把,js根据页面宽度变化来放大可能能达到目的
|
3
NemoAlex 2011-09-16 18:27:23 +08:00
http://www.apple.com.cn/safari/features.html
很想知道“新的全屏 JavaScript API”在哪里可以找到文档 |
4
Livid MOD Safari 的这个 features 页面真是壮观。
|
5
sparanoid MOD |
6
chone 2011-09-16 19:07:59 +08:00
@TashinV
var FULL_CLASS = 'fullmode'; var addCssClass = function(el, className) { removeCssClass(el, className); el.className += ' ' + className; }; var removeCssClass = function(el, className) { el.className = el.className.replace(className, ''); }; window.addEventListener('resize', function() { var body = document.body; if (screen.width == window.outerWidth && screen.height == window.outerHeight) { // 我不太确认window.fullScreen是否也能工作 addCssClass(body, FULL_CLASS); } else { removeCssClass(body, FULL_CLASS); } }, false); ///css body.fullmode {zoom: 114%;} |
8
Numbcoder 2011-09-16 19:39:55 +08:00
稀饭lz的头像、,
|