CSS 字体对齐

text-align:justify; 两边对齐
text-align:left; 左对齐
text-align:right; 右对齐
text-align:center; 中间对齐




    CSS 对齐



    

text-align:justify 两边对齐

Melbourne, Australia (CNN)Stefanos Tsitsipas confirmed his status as one of the brightest hopes in tennis two days ago, upsetting Roger Federer, before becoming the youngest man to reach the Australian Open semifinals in 16 years with a bruising, three-hour quarterfinal win Tuesday. He is not a bad salesman, either. After defeating a brave Roberto Bautista Agut 7-5 4-6 6-4 7-6 (7-2) in a battle of maiden grand slam quarterfinalists, the Greek phenom urged a captive Rod Laver Arena to give his YouTube channel some love. "If you haven't subscribed, please subscribe," Tsitsipas, who chronicles his travels around the world on the channel, told spectators Tuesday. READ: Tsitsipas ousts Federer They will probably do anything he wants, such is the charisma of the 6-foot-4 Greek and their affection in turn for the fast-rising 20-year-old, currently ranked No. 15 in the world.

英国还在为脱离欧盟纠结不已,法国和德国又高调地重温半个多世纪前的睦邻友好、同仇敌忾的誓言,签署了《亚琛条约》,宣告法德友好合作的决心和行动目标。 时间、地点、事件,无不晕染厚重的历史色彩。 法国总统马克龙和德国总理默克尔1月22日在德国西部边境城市亚琛签署两国友好合作条约,与1963年1月22日他们各自的前辈在巴黎签署的《爱丽舍宫条约》遥相呼应。 当年的条约和签约这件事本身,被视为变仇敌为睦邻、化干戈为玉帛、世代友好的历史宣言和象征。 今天的新版友谊宣言,被观察人士解读为意在重振法德轴心在欧盟内的地位。 地点选在亚琛, 更加重了历史和象征色彩。历史上亚琛曾被归入法国版图,阿尔萨斯-洛林地区说法语还是德语曾经是爱不爱国的选择,地区的归属在历史课本上占据了相当篇幅。

text-align:left 左对齐

Melbourne, Australia (CNN)Stefanos Tsitsipas confirmed his status as one of the brightest hopes in tennis two days ago, upsetting Roger Federer, before becoming the youngest man to reach the Australian Open semifinals in 16 years with a bruising, three-hour quarterfinal win Tuesday. He is not a bad salesman, either. After defeating a brave Roberto Bautista Agut 7-5 4-6 6-4 7-6 (7-2) in a battle of maiden grand slam quarterfinalists, the Greek phenom urged a captive Rod Laver Arena to give his YouTube channel some love. "If you haven't subscribed, please subscribe," Tsitsipas, who chronicles his travels around the world on the channel, told spectators Tuesday. READ: Tsitsipas ousts Federer They will probably do anything he wants, such is the charisma of the 6-foot-4 Greek and their affection in turn for the fast-rising 20-year-old, currently ranked No. 15 in the world.

英国还在为脱离欧盟纠结不已,法国和德国又高调地重温半个多世纪前的睦邻友好、同仇敌忾的誓言,签署了《亚琛条约》,宣告法德友好合作的决心和行动目标。 时间、地点、事件,无不晕染厚重的历史色彩。 法国总统马克龙和德国总理默克尔1月22日在德国西部边境城市亚琛签署两国友好合作条约,与1963年1月22日他们各自的前辈在巴黎签署的《爱丽舍宫条约》遥相呼应。 当年的条约和签约这件事本身,被视为变仇敌为睦邻、化干戈为玉帛、世代友好的历史宣言和象征。 今天的新版友谊宣言,被观察人士解读为意在重振法德轴心在欧盟内的地位。 地点选在亚琛, 更加重了历史和象征色彩。历史上亚琛曾被归入法国版图,阿尔萨斯-洛林地区说法语还是德语曾经是爱不爱国的选择,地区的归属在历史课本上占据了相当篇幅。

text-align:right 右对齐

Melbourne, Australia (CNN)Stefanos Tsitsipas confirmed his status as one of the brightest hopes in tennis two days ago, upsetting Roger Federer, before becoming the youngest man to reach the Australian Open semifinals in 16 years with a bruising, three-hour quarterfinal win Tuesday. He is not a bad salesman, either. After defeating a brave Roberto Bautista Agut 7-5 4-6 6-4 7-6 (7-2) in a battle of maiden grand slam quarterfinalists, the Greek phenom urged a captive Rod Laver Arena to give his YouTube channel some love. "If you haven't subscribed, please subscribe," Tsitsipas, who chronicles his travels around the world on the channel, told spectators Tuesday. READ: Tsitsipas ousts Federer They will probably do anything he wants, such is the charisma of the 6-foot-4 Greek and their affection in turn for the fast-rising 20-year-old, currently ranked No. 15 in the world.

英国还在为脱离欧盟纠结不已,法国和德国又高调地重温半个多世纪前的睦邻友好、同仇敌忾的誓言,签署了《亚琛条约》,宣告法德友好合作的决心和行动目标。 时间、地点、事件,无不晕染厚重的历史色彩。 法国总统马克龙和德国总理默克尔1月22日在德国西部边境城市亚琛签署两国友好合作条约,与1963年1月22日他们各自的前辈在巴黎签署的《爱丽舍宫条约》遥相呼应。 当年的条约和签约这件事本身,被视为变仇敌为睦邻、化干戈为玉帛、世代友好的历史宣言和象征。 今天的新版友谊宣言,被观察人士解读为意在重振法德轴心在欧盟内的地位。 地点选在亚琛, 更加重了历史和象征色彩。历史上亚琛曾被归入法国版图,阿尔萨斯-洛林地区说法语还是德语曾经是爱不爱国的选择,地区的归属在历史课本上占据了相当篇幅。

text-align:center 中间对齐

Melbourne, Australia (CNN)Stefanos Tsitsipas confirmed his status as one of the brightest hopes in tennis two days ago, upsetting Roger Federer, before becoming the youngest man to reach the Australian Open semifinals in 16 years with a bruising, three-hour quarterfinal win Tuesday. He is not a bad salesman, either. After defeating a brave Roberto Bautista Agut 7-5 4-6 6-4 7-6 (7-2) in a battle of maiden grand slam quarterfinalists, the Greek phenom urged a captive Rod Laver Arena to give his YouTube channel some love. "If you haven't subscribed, please subscribe," Tsitsipas, who chronicles his travels around the world on the channel, told spectators Tuesday. READ: Tsitsipas ousts Federer They will probably do anything he wants, such is the charisma of the 6-foot-4 Greek and their affection in turn for the fast-rising 20-year-old, currently ranked No. 15 in the world.

英国还在为脱离欧盟纠结不已,法国和德国又高调地重温半个多世纪前的睦邻友好、同仇敌忾的誓言,签署了《亚琛条约》,宣告法德友好合作的决心和行动目标。 时间、地点、事件,无不晕染厚重的历史色彩。 法国总统马克龙和德国总理默克尔1月22日在德国西部边境城市亚琛签署两国友好合作条约,与1963年1月22日他们各自的前辈在巴黎签署的《爱丽舍宫条约》遥相呼应。 当年的条约和签约这件事本身,被视为变仇敌为睦邻、化干戈为玉帛、世代友好的历史宣言和象征。 今天的新版友谊宣言,被观察人士解读为意在重振法德轴心在欧盟内的地位。 地点选在亚琛, 更加重了历史和象征色彩。历史上亚琛曾被归入法国版图,阿尔萨斯-洛林地区说法语还是德语曾经是爱不爱国的选择,地区的归属在历史课本上占据了相当篇幅。

MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/text-align
https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align

你可能感兴趣的:(CSS 字体对齐)