好东西,一起来分享,自己设置博客背景的一些小技巧,拿去感觉好就关注一下;
设置自己的背景颜色
<table><tr><td bgcolor=#000322>
这里是背景颜色
td>tr>table>
这里是背景颜色 |
换行示例:
<table><tr><td bgcolor=#000123>
<li>
网络分层模型OSI和TCP/IP四层模型
li>
<li>
网络分层模型OSI和TCP/IP四层模型
li>
td>tr>table>
效果:
|
设置字体大小颜色:
<table><tr><td bgcolor=#000123>
<li> <font size="6" color="#1FFFFF">
网络分层模型OSI和TCP/IP四层模型
font>
li>
<li>
网络分层模型OSI和TCP/IP四层模型
li>
td>tr>table>
|
设置代码块的背景颜色:
<tr>#000>
"en-US" dir="ltr">
"western">"#1FFFFF">
#include <stdio.h>
#include "io.h"
void set_fl(int fd, int flags)
/* flags are file status flags to turn on */
{
int val;
if ( (val = fcntl(fd, F_GETFL, 0)) < 0)
{
printf("fcntl F_GETFL error");
exit(1);
}
val |= flags; /* turn on flags */
if (fcntl(fd, F_SETFL, val) < 0)
{
printf("fcntl F_SETFL error");
exit(1);
}
}
void clr_fl(int fd, int flags)
{
int val;
if ((val = fcntl(fd, F_GETFL, 0)) == -1)
{
perror("fcntl error!");
exit(1);
}
val &= ~flags; /* turn flags off */
if (fcntl(fd, F_SETFL, val) == -1)
{
perror("fcntl error!");
exit(1);
}
return;
}
</font>
>
</body>
>
</td>></table>
效果:
#include
#include "io.h"
void set_fl(int fd, int flags)
/* flags are file status flags to turn on */
{
int val;
if ( (val = fcntl(fd, F_GETFL, 0)) < 0)
{
printf("fcntl F_GETFL error");
exit(1);
}
val |= flags; /* turn on flags */
if (fcntl(fd, F_SETFL, val) < 0)
{
printf("fcntl F_SETFL error");
exit(1);
}
}
void clr_fl(int fd, int flags)
{
int val;
if ((val = fcntl(fd, F_GETFL, 0)) == -1)
{
perror("fcntl error!");
exit(1);
}
val &= ~flags; /* turn flags off */
if (fcntl(fd, F_SETFL, val) == -1)
{
perror("fcntl error!");
exit(1);
}
return;
}
你可能感兴趣的:(linux,嵌入式-Linux)