javaWeb CSS 图像签名

<html>
<head>
<meta charset="utf-8" />
<title>CSS布局之图像签名</title>
<style type="text/css">
#img12 {
    border: #FF00FF solid 2px;
    width: 500px;
    position: absolute; /*让文字不会脱离图片*/ 
    top: 50px;
}

#text {
    color: #0000FF;
    font-size: 24px;
    font-family: "华文隶书";
    position: absolute;
    bottom: 50px;
    right: 100px;
}
</style>
</head>
<body>
    <div id="img12">
        <div id="img"><img src="images/1.jpg" width="500px" height="400" /></div>
        <div id="text">这是谁?————刘亦菲</div>
    </div>
</body>
</html>

 

posted @ 2018-02-07 21:27  Advancing-Swift  阅读(257)  评论(0编辑  收藏  举报