0

我正在寻找有关创建带有图像和文本换行的纯色表格的 CSS 代码。这将在 Squarespace 中使用。有谁知道我怎么能得到它?

    <html>
    <head>
        <style type="text/css">
            .mycss {
                background-color: #997E6E;
                border: 21px solid #997E6E;
                color: #FFFFFF;
                font-family: arial, helvetica, sans-serif;
                font-size: 15px;
                font-weight:normal;
                letter-spacing: 1pt;
                line-height:1;
                word-spacing: 2pt;
                text-align: left;
            }
        </style>
    </head>
    <body>
        <p class="mycss">
            As my teacher says, our bodies are the best technology we have! Through it, we can transform ourselves from being blocked and out of balance into being energetic, clear-minded and open-hearted.
        </p>
    </body>
</html>
4

1 回答 1

0

如果您在开发人员平台之外执行此操作...

我会把类放在一个 div 而不是 p

<div class="mycss">
    <p> As my teacher says, our bodies are the best technology we have! Through it, we can transform ourselves from being blocked and out of balance into being energetic, clear-minded and open-hearted.</p>
</div>

你的CSS看起来很好的边界。如果要在此 div 内将图像浮动到右侧,请添加

.mycss img { 
float:right;
}
于 2014-06-30T02:07:09.290 回答