HTMLdiv文字垂直居中居中问题

安全检查中...
请打开浏览器的javascript,然后刷新浏览器
< 浏览器安全检查中...
还剩 5 秒&浏览器的兼容模式下的button中文字垂直方向不居中显示
来源:博客园
&#13;&button style="cursor:vertical-align:" &删除&/button&&#13;&#13;&#13;这时候垂直不居中。&#13;&#13;&button style="cursor:vertical-align:height:21" &删除&/button&&#13;&#13;&#13;这时候垂直居中了。对它添加了height样式。&#13;
免责声明:本站部分内容、图片、文字、视频等来自于互联网,仅供大家学习与交流。相关内容如涉嫌侵犯您的知识产权或其他合法权益,请向本站发送有效通知,我们会及时处理。反馈邮箱&&&&。
学生服务号
在线咨询,奖学金返现,名师点评,等你来互动后使用快捷导航没有帐号?
只需一步,快速开始
查看: 19311|回复: 9
内容垂直居中问题
UID525648在线时间 小时积分722帖子离线17479 天注册时间
高级会员, 积分 722, 距离下一级还需 278 积分
本帖最后由 bdwokucha 于
13:33 编辑
&!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&&
&meta http-equiv=&Content-Type& content=&text/ charset=gb2312& /&
&title&无标题文档&/title&
&div style=& text-align: height:30&&
&input style=& width:80 height:30 font-size:16px& type=&button& value=&确定& /&
&a style=&font-size:16 line-height:30 text-decoration:none& href=&javascript:;&&[取消]&/a&
&提示:您可以先修改部分代码再运行
大家看看 为什么& &后边的取消不能垂直居中。。。。& &ie6里的问题
UID393032在线时间 小时积分631帖子离线17479 天注册时间
提示: 作者被禁止或删除。
UID525648在线时间 小时积分722帖子离线17479 天注册时间
高级会员, 积分 722, 距离下一级还需 278 积分
<font color="#00exp 发表于
看不懂看不懂。
&!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&&
&meta http-equiv=&Content-Type& content=&text/ charset=gb2312& /&
&title&无标题文档&/title&
&div style=& text-align:&&
&input style=& width:80 height:30 display:inline- font-size:16& type=&button& value=&确定& /&
&a style=&font-size:16 height:30 line-height:30 display:inline- vertical-align: padding-bottom:3& href=&javascript:;&&[取消]&/a&
&提示:您可以先修改部分代码再运行
UID461278在线时间 小时积分1923帖子离线17479 天注册时间
银牌会员, 积分 1923, 距离下一级还需 1077 积分
以前用过这样的:
div *{vertical-align:}
UID570842在线时间 小时积分124帖子离线17479 天注册时间
初级会员, 积分 124, 距离下一级还需 76 积分
&!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/ charset=gb2312& /&
&title&无标题文档&/title&
&/head&
&body&
&div style=& text-align: height:30&&
&&&input style=& width:80 height:30 font-size:16px& type=&button& value=&确定& /&
&&&a style=&font-size:16 line-height:30 text-decoration:vertical-align:& href=&javascript:;&&[取消]&/a&
&/div&
&/body&
&/html&复制代码
UID570842在线时间 小时积分124帖子离线17479 天注册时间
初级会员, 积分 124, 距离下一级还需 76 积分
&!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/ charset=gb2312& /&
&title&无标题文档&/title&
&/head&
&body&
&div style=& text-align: height:30&&
&&&input style=& width:80 height:30 font-size:16px& type=&button& value=&确定& /&
&&&a style=&font-size:16 line-height:30 text-decoration:vertical-align:& href=&javascript:;&&[取消]&/a&
&/div&
&/body&
&/html&复制代码
UID557939在线时间 小时积分129帖子离线17479 天注册时间
初级会员, 积分 129, 距离下一级还需 71 积分
&!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&&
&meta http-equiv=&Content-Type& content=&text/ charset=utf-8& /&
&title&无标题文档&/title&
&div style=& text-align: height:30&&
&input style=& width:80 height:30 font-size:16vertical-align:& type=&button& value=&确定& /&
&a style=&font-size:16 line-height:30 text-decoration:vertical-align:& href=&javascript:;&&[取消]&/a&
&提示:您可以先修改部分代码再运行
UID557939在线时间 小时积分129帖子离线17479 天注册时间
初级会员, 积分 129, 距离下一级还需 71 积分
input 和 a都加上vertical-align:
UID635917在线时间 小时积分204帖子离线17479 天注册时间
提示: 作者被禁止或删除。
UID57734在线时间 小时积分1643帖子离线17479 天注册时间
银牌会员, 积分 1643, 距离下一级还需 1357 积分
本帖最后由 cloudboy 于
16:44 编辑
&!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&&
&meta http-equiv=&Content-Type& content=&text/ charset=gb2312& /&
&title&无标题文档&/title&
&div style=& text-align:height:30 line-height:30&&
&input style=& width:80 height:30 display:inline- font-size:16& type=&button& value=&确定& /&
&a style=&font-size:16 height:30 line-height:30 display:inline- vertical-align: padding-bottom:3& href=&javascript:;&&[取消]&/a&
&提示:您可以先修改部分代码再运行
&!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&&
&meta http-equiv=&Content-Type& content=&text/ charset=gb2312& /&
&title&无标题文档&/title&
&div style=& text-align:&&
&input style=& width:80 height:30 display:inline-float: font-size:16& type=&button& value=&确定& /&
&a style=&font-size:16 height:30 line-height:30 display:inline- vertical-align: padding-bottom:3 display: float:& href=&javascript:;&&[取消]&/a&
&提示:您可以先修改部分代码再运行
Powered by

我要回帖

更多关于 div内文字垂直居中 的文章

 

随机推荐