我有这个代码:
<select>
<option value="c">Klassen</option>
<option value="t">Docenten</option>
<option value="r">Lokalen</option>
<option value="s">Leerlingen</option>
</select>
Run Code Online (Sandbox Code Playgroud)
在iPhone上运行全屏网络应用程序.
从此列表中选择内容时,iPhone会放大select-element.并且在选择某些内容后不会缩小.
我怎么能阻止这个?或缩小?
文本在Chrome中正确显示.我希望它在所有浏览器中以这种方式显示.我怎样才能做到这一点?
我能够在Safari中解决这个问题 -webkit-font-smoothing: antialiased;
铬:

火狐:

h1 {
font-family: Georgia;
font-weight: normal;
font-size: 16pt;
color: #444444;
-webkit-font-smoothing: antialiased;
}Run Code Online (Sandbox Code Playgroud)
<h1>Hi, my name</h1>Run Code Online (Sandbox Code Playgroud)
还有一个JSFiddle:http://jsfiddle.net/jnxQ8/1/
我做了一个小3d引擎.
但我在旋转功能方面遇到了一些问题.它们使物体不时伸展开来.这是数学:
this.rotateX = function(angle) {
var cos = Math.cos(angle);
var sin = Math.sin(angle);
for(var i = 0; i < this.points.length; i++) {
this.points[i].y = sin * this.points[i].z + cos * this.points[i].y;
this.points[i].z = -sin * this.points[i].y + cos * this.points[i].z;
}
}
this.rotateY = function(angle) {
var cos = Math.cos(angle);
var sin = Math.sin(angle);
for(var i = 0; i < this.points.length; i++) {
this.points[i].x = cos * this.points[i].x - sin * this.points[i].z;
this.points[i].z = sin * this.points[i].x + cos …Run Code Online (Sandbox Code Playgroud) 为什么我用这段代码得到这个错误:Uncaught SyntaxError: Unexpected token {在第1行.
var cube_points = {
{'x' : 100, 'y' : 100, 'z' : 100},
{'x' : 100, 'y' : 100, 'z' : -100},
{'x' : -100, 'y' : 100, 'z' : -100},
{'x' : -100, 'y' : 100, 'z' : 100},
{'x' : 100, 'y' : -100, 'z' : 100},
{'x' : 100, 'y' : -100, 'z' : -100},
{'x' : -100, 'y' : -100, 'z' : -100},
{'x' : -100, 'y' : -100, …Run Code Online (Sandbox Code Playgroud) 我得到了这段代码:
function server_request(module,section,action,data) {
data['module'] = module;
data['section'] = section;
data['action'] = action;
var responsetxt = null;
$.post('../application/server.php', data, function(data) {
responsetxt = data;
});
return responsetxt;
}
它回归了null吗?
我想要的是让server_request函数返回responseText?但在某种程度上它不起作用,为什么?以及如何让它发挥作用?