首页 >

自定义容器和字体大小_CSS/HTML

web前端|css教程自定义容器和字体大小_CSS/HTML
自定义容器和字体大小
web前端-css教程
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>


Home


ps在线 源码,c语言vscode多文件,ubuntu卸载root,tomcat正在启动不了,爬虫搜课件,php 对象的比较,seo人群知识点总结,房屋租赁网站 源码,登陆页面下载html模板下载地址lzw


body
{
margin: 1em;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}

body *
{
margin: 0;
}

#content
{
padding: 1em;
background-color: #BBDDFF;
background-image: url(column_bg.jpg);
background-repeat: repeat-y;
background-position: 30em 0;
text-align: left;
}

#content p
{
margin-bottom: 1em;
}

#footer
{
margin-top: 1em;
padding: 1em;
background-color: #0066CC;
text-align: left;
}

#footer a
{
color: #FFFFFF;
}

#header
{
margin-bottom: 1em;
padding: 1em;
background-color: #0066CC;
color: #FFFFFF;
text-align: left;
}

#leftContent
{
padding-right: 10em;
}

#options
{
margin-bottom: 1em;
text-align: right;
}

#options a
{
color: #000000;
}

#rightContent
{
float: right;
width: 8em;
}

#widthContainer
{
font-size: 0.8em;
width: 40em;
margin: auto;
}

.clearer
{
clear: both;
}



<!–


function scaleWidth()
{
var optimalLineLength = “35em”;
var extraAccounting = “12em”;
var minimumTextHeight = “10px”;
var windowWidth = document.body.clientWidth;
var optimalSize = windowWidth / (parseInt(optimalLineLength) + parseInt(extraAccounting));

if (optimalSize >= parseInt(minimumTextHeight))
{
document.body.style.fontSize = optimalSize + “px”;
}
else
{
document.body.style.fontSize = parseInt(minimumTextHeight) + “px”;
}

return true;
}


function textSize(size)
{
var theContainer = document.getElementById(“widthContainer”);
var increment = 0.1
var currentSize = parseFloat(document.getElementById(“widthContainer”).style.fontSize);

if (!currentSize)
{
currentSize = 0.8;
}

if (size == “smaller”)
{
theContainer.style.fontSize = (currentSize – increment) + “em”;
}
else
{
theContainer.style.fontSize = (currentSize + increment) + “em”;
}

return true;
}


–>


安卓8.1源码,vscode无法键入代码,Ubuntu改xfce,tomcat 主从复制,e4a数据库SQLite,大有爬虫,php 判断变量的类型,连江有效的seo公司,游戏源码怎么搭建网站,系统后台模板下载lzw
md5加密解密源码,vscode怎么配置c项目,ubuntu 删除 etc,tomcat访问外网地址,爬虫mongodb教程,php 二叉树查找,什么是seo知乎优化,网站上传安装,模板仿制工具lzw

Text smaller |
Text bigger