2016-11-12 67 views
0

我一直在构建网站时遇到问题 - 在移动设备上,如果您用手指拖动,整个网站四处移动,部分移动到屏幕外或在任何地方拖动它。我觉得这是不专业的,真的很难看。我访问过的其他网站似乎已经解决了这个问题,但我一直无法通过查看它们的源代码来弄清楚。有什么想法吗?如何让我的网站不会在移动设备上拖动?

在此先感谢。

+0

阅读关于响应媒体标签 - https://css-tricks.com/snippets/html/responsive-meta-tag/ –

回答

0

大概

<body draggable="false" ondragstart="return false"> 

参见例子使用一个div容器

片断

<div draggable="false" ondragstart="return false"> 
 
Robert Wertheimer Frucht (later known as Roberto Frucht) (9 August 1906 – 26 June 1997)[1][2] was a German-Chilean mathematician; his research specialty was graph theory and the symmetries of graphs. 
 
The Frucht graph. 
 

 
In 1908, Frucht's family moved from Brünn, Austria-Hungary (now in the Czech Republic), where he was born, to Berlin.[2] Frucht entered the University of Berlin in 1924 with an interest in differential geometry, but switched to group theory under the influence of his doctoral advisor, Issai Schur; he received his Ph.D. in 1931.[3][4] Unable to find academic employment in Germany due to his Jewish descent, he became an actuary in Trieste, but left Italy in 1938 because of the racial laws that came into effect at that time.[3][5] He moved to Argentina, where relatives of his wife lived, and attempted to move from there to the United States, but his employment outside academia prevented him from obtaining the necessary visa.[2][5] At the same time Robert Breusch, another German mathematician who had been working in Chile for three years but was leaving for the U.S., invited Frucht to fill his position at Federico Santa María Technical University in Valparaiso, Chile, where Frucht found an academic home beginning in 1939.[1][2][6] At Santa María, Frucht became dean of the faculty of mathematics and physics from 1948 to 1968, and retired to become an emeritus professor in 1970.[2] 
 

 
Frucht is known for Frucht's theorem, the result that every group can be realized as the group of symmetries of an undirected graph,[7][8] and for the Frucht graph, one of the two smallest cubic graphs without any nontrivial symmetries. LCF notation, a method for describing cubic Hamiltonian graphs, was named for the initials of Joshua Lederberg, H. S. M. Coxeter, and Frucht, its key developers.[9] 
 

 
Frucht was elected to the Chilean Academy of Sciences as a corresponding member in 1979.[2] A special issue of the Journal of Graph Theory was published in Frucht's honor in 1982,[2][10] and another special issue of the journal Scientia, Series A (the journal of the mathematics department of Federico Santa María Technical University) was published in honor of his 80th birthday in 1986.[2][11] 
 
</div>

+0

这不起作用 –

+0

我在手机上访问过的其他每个网站都没有这个问题。而且他们没有任何代码:/ –

+0

您是否尝试过在您的身体标记中使用此解决方案? – repzero

相关问题