摘要:
<body bgcolor="" text="" link="" alink="" vlink="" topmargin="" leftmargin="">可以用CSS控制的就不要用HTML来控制<style> body{ margin:0px; padding:0px; background:red; color:green;` }</style><br> 换行<pre>保留文字在源代码中的格式 阅读全文
摘要:
<head> <title> 1.只存在一个 显示在浏览器的标题栏上 2.有利于搜索引擎找到对应的页面 3. </title> <base href="http://www.baidu.com"> 这是文件中的所有基址 如果有引入../src/logo.gif 则最终显示的将会是 "http://www.baidu.com/src/logo.gif" <link rel="stylesheet" type="text/css" href="test.c 阅读全文
摘要:
<html> <head> 不会显示在浏览器中,包括基本的描述,整个网页的公共属性 </head> <body> 网页的主题内容 </body></html> 阅读全文
摘要:
sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysqlsudo apt-get install phpmyadmin 阅读全文
摘要:
方法一<?phpheader('Content-type:text/html; charset=gb2312');echo "这样输出就不会乱码";$abc = "这样就会乱码了";echo $abc;?>方法二<?phpecho "这样输出就不会乱码";$abc = "这样就会乱码了";echo html_entity_decode($abc, ENT_QUOTES, 'gb2312');echo $abc;?>加入 <HEAD> 中<?e 阅读全文