如何更改整个网站的字体或整个HTML?

时间:2015-11-13 08:43:33

标签: html

我有WhatsCast.in而且我想更改整个网站的字体或HTML文件..帮助..我是新编码所以告诉我在哪里放代码等等... 提前致谢。

2 个答案:

答案 0 :(得分:1)

// use it for writing: stream.write(byte[]) // (make sure to write as biggest data chunks as possible) // or wrap it around some other streams like DataOutputStream private OutputStream stream; // ServiceConnection implementation @Override public void onServiceConnected(ComponentName name, IBinder service) { try { ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); stream = new ParcelFileDescriptor.AutoCloseOutputStream(pipe[1]); Parcel data = Parcel.obtain(); FileDescriptor readFileDescriptor = pipe[0].getFileDescriptor(); data.writeFileDescriptor(readFileDescriptor); service.transact(IBinder.FIRST_CALL_TRANSACTION, data, null, 0); } catch (Exception e) { e.printStackTrace(); } Log.d(TAG, "onServiceConnected " + stream); } 声明放入正文选择器:

@Override
public IBinder onBind(Intent intent) {
    Log.d(TAG, "onBind ");
    return binder;
}

IBinder binder = new Binder() {
    @Override
    protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
        ParcelFileDescriptor pfd = data.readFileDescriptor();
        final InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
        // do something with a 'stream', start a new Thread for example and read data in a loop
        ...
        ...
        return true;
    }
};

页面上的所有元素都将继承此font-family(当然,除非您稍后覆盖它)。

答案 1 :(得分:1)

Here's可供选择的网络安全字体列表

HTML

<html class="myFontClass">

</html>

CSS

.myFontClass{
    font-family: Helvetica; 
}