+ -
当前位置:首页 → 问答吧 → button的文字怎么垂直居中呢???如何设置背景透明

button的文字怎么垂直居中呢???如何设置背景透明

时间:2011-01-14

来源:互联网

button如何设置背景透明,文字怎么垂直居中呢???

作者: kaiqian831122   发布时间: 2011-01-14

transparent这个属性是所有浏览器都支持的吗?半透明的属性是设置哪个???

[ 本帖最后由 kaiqian831122 于 2011-1-14 12:00 编辑 ]

作者: kaiqian831122   发布时间: 2011-01-14


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <div style="background:#39C"> <p>&nbsp; </p> <p> <input type="submit" name="button" id="button" value="提交" style=" background:none; height:50px; line-height:50px;" /> </p> <p>&nbsp;</p> </div> </body> </html>
 提示:您可以先修改部分代码再运行

作者: jiege8848   发布时间: 2011-01-14


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <div style="background:#39C"> <p>&nbsp; </p> <p> <input type="submit" name="button" id="button" value="提交" style=" background:url(http://bbs.blueidea.com/images/default/agree.gif) no-repeat 5px 5px; height:30px; line-height:30px;" /> </p> <p>&nbsp;</p> </div> </body> </html>
 提示:您可以先修改部分代码再运行

作者: jiege8848   发布时间: 2011-01-14