html - 看起来很流畅的文字

标签 html css

<分区>

我网站上的所有字体都是方形的,就像网站上的这段文字一样。

如果您访问 http://www.momondo.dk/并观看该文本,它有点“尖锐或流畅”,我如何才能在我自己的网站上获得它?

最佳答案

这是由于他们使用的字体:

这将是 CSS:

    h1 {
    font-family: 'Open Sans', sans-serif;
    }

另外,添加这个:

 .title h1 {
    color: #c6aefb;
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    padding: 20px 30px 5px;
    }

编辑:

添加这段代码:

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

现在只添加:

font-family: 'Open Sans', sans-serif;

关于html - 看起来很流畅的文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21499489/

相关文章:

javascript - 如何在标签中显示富文本区域的内容

javascript - 如何根据选择的选项将数据输出到表

jquery - CSS - 当 child 固定时 parent 消失(即使它的高度已设置)

html - css 简单布局与 flex

html - 使用 CSS 在 div 中居中图像,周围留有空白

Javascript : Why Can’t I Read the ‘object.style.left’ & ‘object.style.top’ values?

css - 用于 Oracle 数据库应用程序的 Rich Internet Application (RIA)

html - 让 <embed> 占据整个高度

android - 如何让图像显示在 phonegap 应用程序上

jQuery 成功/错误函数