js为字符串添加样式
来源:互联网 发布:刀路预览软件 编辑:程序博客网 时间:2024/06/17 13:12
var txt="Hello World!"
1.放大
3.加粗
5.闪烁
8.设置字体颜色
10.转换为小写
12.居中
14.链接
document.write("<p>Link: " + txt.link("http://www.w3school.com.cn") + "</p>")
1.放大
document.write("<p>Big: " + txt.big() + "</p>")
2.缩小
3.加粗
document.write("<p>Bold: " + txt.bold() + "</p>")
4.斜体
5.闪烁
document.write("<p>Blink: " + txt.blink() + " (does not work in IE)</p>")
6.固定
document.write("<p>Fixed: " + txt.fixed() + "</p>")
7.中横线
8.设置字体颜色
document.write("<p>Fontcolor: " + txt.fontcolor("Red") + "</p>")
9.设置置顶大小
10.转换为小写
document.write("<p>Lowercase: " + txt.toLowerCase() + "</p>")
11.转换为大写
12.居中
document.write("<p>Subscript: " + txt.sub() + "</p>")
13.居上
14.链接
document.write("<p>Link: " + txt.link("http://www.w3school.com.cn") + "</p>")
- js为字符串添加样式
- 通过js为表单添加CSS样式
- 使用document.write方法,为字符串添加样式
- js通过判断地址字符串,来添加样式
- 为select添加样式
- 为<hr>添加样式
- js 控制样式添加
- js添加样式class
- js字符串样式
- JQuery为元素添加样式
- JQuery为元素添加样式
- JQuery为元素添加样式
- 为GirdView添加CSS样式
- JQuery为元素添加样式
- JQuery为元素添加样式
- jquery 为 Table 添加样式
- JQuery为元素添加样式
- JQuery为元素添加样式
- Linux下tomcat的catalina.out文件过大,以及目录更改解决办法
- 如果哪天没有动力,看看这些短语。。
- CPU性能评估标准
- oracle 自治事务 PRAGMA AUTONOMOUS_TRANSACTION
- 编程找出1000以内的所有完数
- js为字符串添加样式
- Android ListView 去除边缘阴影、选中色、拖动背景色等
- 美国人教你这样用Google,你真的会变特工
- 服务器Java虚拟机(JVM)中的内存设置详解
- shell script 单引号和双引号
- 隐藏UITabBar
- 对于 Oracle 的 rownum 问题
- u-boot-2011.09在ST2410上启动流程分析
- 分析一个程序