上一页 1 ··· 46 47 48 49 50

Centering things

摘要: Centering thingsA common task for CSS is to center text or images. In fact, there are three kinds of centering:Centering lines of textCentering a block of text or an imageCentering a block or an image verticallyCentering lines of textThe most common and (therefore) easiest type of centering is that 阅读全文
posted @ 2013-06-21 15:23 TrustNature 阅读(163) 评论(0) 推荐(0)

实用CSS代码

摘要: 1、个性化的圆角代码许多CSS开发者都非常熟悉圆角语法,但如何为每个角设置不同的值?不如看看下面这段代码吧!#container { -webkit-border-radius: 4px 3px 6px 10px; -moz-border-radius: 4px 3px 6px 10px; -o-border-radius: 4px 3px 6px 10px; border-radius: 4px 3px 6px 10px;}/* alternative syntax broken into each line */#container { -webkit-bo... 阅读全文
posted @ 2013-06-21 15:20 TrustNature 阅读(151) 评论(0) 推荐(0)

段落首字符下沉

摘要: p:first-letter{ display: block; margin: 5px 0 0 5px; float: left; color: #ff3366; font-size: 5.4em; font-family: Georgia, Times New Roman, serif;} 阅读全文
posted @ 2013-06-21 14:49 TrustNature 阅读(203) 评论(0) 推荐(0)

Linux whereis

摘要: whereis命令只能用于程序名的搜索,而且只搜索二进制文件(参数-b)、man说明文件(参数-m)和源代码文件(参数-s)。如果省略参数,则返回所有信息。 和 find相比,whereis查找的速度非常快,这是因为linux系统会将 系统内的所有文件都记录在一个数据库文件中,当使用whereis和下面即将介绍的locate时,会从数据库中查找数据,而不是像find命令那样,通 过遍历硬盘来查找,效率自然会很高。 但是该数据库文件并不是实时更新,默认情况下时一星期更新一次,因此,我们在用whereis和locate 查找文件时,有时会找到已经被删除的数据,或者刚刚建立文件,却无法查找到,... 阅读全文
posted @ 2012-12-05 14:30 TrustNature 阅读(182) 评论(0) 推荐(0)

Linux selinux

摘要: SELinux 的启动、关闭与查看1,并非所有的 Linux distributions 都支持 SELinux 的目前 SELinux 支持三种模式,分别如下:•enforcing:强制模式,代表 SELinux 运作中,且已经正确的开始限制 domain/type 了;•permissive:宽容模式:代表 SELinux 运作中,不过仅会有警告讯息并不会实际限制 domain/type 的存... 阅读全文
posted @ 2012-12-05 14:18 TrustNature 阅读(221) 评论(0) 推荐(0)

Linux GRUB维护

摘要: 一、grub rescue> 原因: 已经发现下面几种操作会导致这种问题: 1,想删除ubuntu,于是直接在windows下删除/格式化了ubuntu所在的分区。 2,调整磁盘,利用工具合并/分割/调整/删除分区,使磁盘分区数目发生了变化。 3,重新安装系统,把linux安装到了新分区,原有分区已经格式化,但是没有重新安装grub2。 4,用ubuntu备... 阅读全文
posted @ 2012-12-05 13:55 TrustNature 阅读(306) 评论(0) 推荐(0)

linux下mysql使用select into outfile权限问题

摘要: 环境:centos 6.0 使用mysql: select * from pet into outfile ‘/home/pet.dat’ fields terminated by ‘,' ; 提示:ERROR 1 (HY000): Can't create/write to file '/home/pet.dat' (Errcode: 13) 是权限不对的原因。 尝试:把mysql... 阅读全文
posted @ 2012-12-05 13:49 TrustNature 阅读(6372) 评论(0) 推荐(0)

Linux 用户管理

摘要: 一、简便方法:直接编辑文件 1、编辑/etc/passwd Understanding fields in /etc/passwd The /etc/passwd contains one entry per line for each user (or user account) of the system. All fields are separated by a colon (:) ... 阅读全文
posted @ 2012-12-05 13:43 TrustNature 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50