【CSS】文本对齐(左右均对整齐)及断行
来源:互联网 发布:linux下驱动会不会掉 编辑:程序博客网 时间:2024/06/14 11:52
<div style="width:400px; margin:30px auto;padding:15px; border:1px solid #ccc; text-align:justify;text-justify:inter-ideograph; word-wrap:break-word;overflow:hidden;"><p>由最好的选手组成的队伍能赢,因此你要发现和留住最好的选手;不要思虑过头,以致延误行动;不管你处在什么业务部门,都要不断与别人分享自己的学习经验;保持积极向上的态度,并要感染他人;永远不要把自己当做受害者;还有,天啊——保持快乐。</p> <p>Everyone seems to want to know how to meditate these days. From BabyBoomers to Generation-Xers, anxious teens to aging retirees, harriedhousewives to hurried executives, heart-attack sufferers to weekend athletes,more and more people are seeking solutions for the stressful, time-urgent, overstimulatedlives we lead. Because the media and mainstream medicine havefailed to provide satisfying answers, people are turning in increasing numbersto time-honored practices like meditation for proven remedies to cure life’s ills.</p> <p>Whatever you want to do, wherever you want to go, it's just upto you.</p></div>
让文本内容在右边界对整齐
text-align:justify; (Firefox) text-justify:inter-ideograph; (IE)
让文本自动断行
word-wrap:break-word; overflow:hidden;
效果如下图:
- 【CSS】文本对齐(左右均对整齐)及断行
- Css之中英文左右(两端)对齐
- 文本左右对齐排版--shell
- CSS 文本对齐
- CSS 文本两端对齐
- css:文本两端对齐
- css:文本两端对齐
- css:文本两端对齐
- css 文本两端对齐
- css 文本两端对齐
- css 文本两端对齐
- css 文本两端对齐
- css 文本两端对齐
- css单行文本两端对齐
- css 文本两端对齐
- CSS入门之文本样式用法(文本对齐,首行缩进,文本竖排,文字方向)
- 【css基础】文本对齐,水平对齐,垂直对齐
- 【css基础】文本对齐,水平对齐,垂直对齐
- VS2012下基于Glut OpenGL GL_QUAD_STRIP示例程序:
- onchange,onpropertychange,oninput键盘输入和js赋值时区别,以及输入密码时显示的是星号
- [未更新] 正则表达式学习
- Java基础重温(-)编译-javac命令,Applet
- CXF配置,ant文件说明及运行,运行cxf中带的项目
- 【CSS】文本对齐(左右均对整齐)及断行
- polyline转polygon AE(转)
- 画一个白色的矩形
- 第十次实验任务
- c++ java c#语言特性对比
- Zend Studio 10 汉化——在线语言包安装步骤
- CF 162(div2)
- 锥形螺旋曲线的绘制
- Android之IphoneTreeView带组指示器的ExpandableListView