CMS:Magento社区(我不认为这是importat)。
我使用的是在fontsquirrel上加载的字体。 在Firefox上,它看起来很棒,但在Internet Explorer(11)上,这种字体只适用于某些没有逻辑的元素。
这是一个示例页面:http://www.prodottipet.simply-webspace.it/index.php/roditori.html 菜单上的“Cani - Roditori - Gatti - Pesci - Uccelli”就是一个例子。
1)如果字体没有加载correclty,为什么有些元素会使用这种字体?所以我不认为这是问题。
import datetime
import MPU6050
import math
import time
import numpy
import RPi.GPIO as GPIO
import time
import sys
GPIO.setmode(GPIO.BCM)
TargetSampleTime= 20 #int(sys.argv[1])
TargetRate= 500 #float(sys.argv[2])
GPIO.setup(24,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)
mpu6050 = MPU6050.MPU6050()
mpu6050.setup()
mpu6050.setGResolution(2)
mpu6050.setSampleRate(TargetRate)
mpu6050.enableFifo(False)
time.sleep(0.01)
print "Capturing in {0} ms at {1} samples/sec".format(TargetSampleTime, mpu6050.SampleRate)
mpu6050.resetFifo()
mpu6050.enableFifo(True)
time.sleep(0.01)
Values = []
Total = 0
def my_callback(channel):
print "Rising edge detected on 24"
GPIO.remove_event_detect(24)
GPIO.cleanup()
a = datetime.datetime.now()
# read MPU6050 from FIFO
while True:
Values.extend(mpu6050.readDataFromFifo())
b = datetime.datetime.now()
dt = int((b-a).microseconds/1000)
if dt >= TargetSampleTime:
break;
b = datetime.datetime.now()
Total = len(Values)/14
print "Capture in {0} ms".format((b-a).microseconds/1000)
print "Captured {0} samples".format(Total)
if Total > 0:
Status = mpu6050.readStatus()
if (Status & 0x10) == 0x10 :
print "Overrun Error! Quitting.\n"
quit()
# writing IMU data to txt
print "Saving RawData.txt file."
FO = open("RawData.txt","w")
FO.write("GT\tGx\tGy\tGz\tTemperature\tGyrox\tGyroy\tGyroz\n")
fftdata = []
for loop in range (Total):
SimpleSample = Values[loop*14 : loop*14+14]
I = mpu6050.convertData(SimpleSample)
CurrentForce = math.sqrt( (I.Gx * I.Gx) + (I.Gy * I.Gy) +(I.Gz * I.Gz))
fftdata.append(CurrentForce)
FO.write("{0:6.3f}\t{1:6.3f}\t{2:6.3f}\t{3:6.3f}\t".format(CurrentForce, I.Gx , I.Gy, I.Gz))
FO.write("{0:5.1f}\t{1:6.3f}\t{2:6.3f}\t{3:6.3f}\n".format(I.Temperature,I.Gyrox,I.Gyroy,I.Gyroz))
FO.close()
quit()
# detect shutter button press
GPIO.add_event_detect(24, GPIO.RISING, callback=my_callback, bouncetime=100)
raw_input("Listening...")
答案 0 :(得分:0)
检查你的html
,你有font-family:, serif !important
的嵌入式样式,这是无效的,我猜不会被IE 11以外的浏览器忽略。只需删除它。
您可以通过运行IE Inspector(F12)来跟踪css
继承。你会看到:
嵌入式/内部css
优先于外部样式表。